Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./amalgamate.sh doesn't seem to be usable on ARM64 musl-libc Linux systems #273

Open
ell1e opened this issue Apr 4, 2023 · 0 comments · May be fixed by #294
Open

./amalgamate.sh doesn't seem to be usable on ARM64 musl-libc Linux systems #273

ell1e opened this issue Apr 4, 2023 · 0 comments · May be fixed by #294

Comments

@ell1e
Copy link
Contributor

ell1e commented Apr 4, 2023

It appears that ./amalgamate.sh doesn't seem to be usable on ARM64 musl-libc Linux systems, my wild guess is it's because the clang test compile possibly uses libasan which if I'm not entirely wrong is not available for musl-libc:

-- The C compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Zip files: miniz.c;miniz.h;examples/example1.c;examples/example2.c;examples/example3.c;examples/example4.c;examples/example5.c;examples/example6.c;ChangeLog.md;readme.md;LICENSE
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/Develop/project/vendor/miniz/_build
Test compile with GCC...
_build/amalgamation/miniz.c:3185:9: note: '#pragma message: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.'
 3185 | #pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
      |         ^~~~~~~
Test compile with GCC ANSI...
_build/amalgamation/miniz.c:3185:9: note: '#pragma message: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.'
 3185 | #pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
      |         ^~~~~~~
/usr/bin/clang
Test compile with clang...
main.c:1:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
int main() { return 0; }
        ^
         void
1 warning generated.
_build/amalgamation/miniz.c:3185:9: warning: Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files. [-W#pragma-messages]
#pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.")
        ^
1 warning generated.
/usr/bin/ld: cannot find /usr/lib/clang/15.0.7/lib/linux/libclang_rt.ubsan_standalone-aarch64.a: No such file or directory
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)

Could this be fixed so that assembling the header file works properly on these systems, e.g. by allowing the clang compile to fail or not using libasan for that by default? Or is there a different command from the things in the repository I am meant to run to assemble the header file from a dev version checkout from the repository that'll skip the compile test entirely? Any ideas would be appreciated!

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 a pull request may close this issue.

1 participant