-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Different libc.a for macOS arm64 and Linux x86_64 #23379
Comments
To find if this is an llvm, emscripten, or binaryen issue, link with |
Thanks for you instruction. There are 2 executions of wasm-ld. The second one causes difference (with same normalized response file provided). A |
By checking wasm-ld's log, I think the first difference comes from different emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libc.a. |
Yeah I think it's exactly the issue. A diff of
|
emscripten/tools/system_libs.py Lines 232 to 243 in 6bed395
So this doesn't seem reproducible cross macOS and Linux CC @sbc100 Does it make sense to always treat FS as case insensitive? |
Sure that sounds like a good idea. Would you like to send a PR? Is macOS really case insensitive by default? I had not realized that. Strange. |
We have an option for that (inspired by MacOS, I think?): Lines 1013 to 1017 in bcad96d
Use it with |
Oh, wait, ignore my last comment 😆 I was mixed up by the runtime filesystem and the emsdk build. |
Yes!
Yes. The |
I'm testing reproducibility by compiling on Linux and macOS fcitx-contrib/fcitx5-js#18. Everything works fine except for .wasm. A wasm2wat and diff produces below and more
I also tested the link command below with EMCC_DEBUG. Order of imports differs from /tmp/emscripten_temp/emcc-00-base.wasm.
It seems imports are sorted in test as well.
emscripten/test/test_other.py
Line 8864 in 5ac384b
Not sure if it's a emscripten issue or llvm issue.
Version of emscripten/emsdk:
Please include the output
emcc -v
hereFailing command line in full:
Not failing.
Full link command and output with
-v
appended:The text was updated successfully, but these errors were encountered: