Skip to content

Conversation

@repzilon
Copy link
Contributor

@repzilon repzilon commented Nov 2, 2025

Supplies a few ifdef for recent musl releases whose file I/O routines do not need the 64 suffix to support files larger than 2 GiB, unlike glibc.

What issue(s) does this PR address?

Fixes #5612.

Does this PR introduce new feature(s)?

No new features introduced.

Does this PR introduce any breaking change(s)?

Possibly. I only tested on Alpine Linux 3.21 x86, which is a musl only distribution. Build testing against glibc is needed.

Additional information

Changes in src/ints/bios_disk.cpp should not be that large. Probably some line ending (CRLF vs LF) mishandling. I have a much smaller patch file as an alternative.

Mainly file I/O C library routines do not need the 64 suffix to support files larger than 2 GiB on musl, as musl came after such large files became commonplace.
@repzilon repzilon marked this pull request as ready for review November 2, 2025 16:34
@repzilon
Copy link
Contributor Author

repzilon commented Nov 4, 2025

I built and ran the executable yesterday on macOS Sonoma with the patch applied without issue.

@joncampbell123 joncampbell123 merged commit 39a8b65 into joncampbell123:master Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure on musl libc due to lack of explicit lfs64 functions

2 participants