-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Dynamic linking compilation crashes with -g #24166
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
Comments
Can you trying installing the |
@sbc100 Here is it:
|
I don't see the emcc command line here. Perhaps you could have your compile script echo the commands? Especially the ones that fail? Also, sadly the wasm-ld command here is using a response file which makes it hard to see that is being passed to wasm-ld. I'm also somewhat surprised as the lack of information in the output that comes with the But just having the full emcc and wasm-ld commands would be useful. |
@sbc100 here is it, those command just executed from this file: https://github.com/quanterion/WASMDynamicLinking/blob/main/CompileToWasm.sh
anyway linked repo is the very minimal repro https://github.com/quanterion/WASMDynamicLinking |
Tried to compile simple repo at https://github.com/quanterion/WASMDynamicLinking with debug information enabled (adding -g to compilation flag) results in crash:
user@comp:~/WASMDynamicLinking$ ./CompileToWasm.sh PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. emcc: error: '/home/rem/emsdk/upstream/bin/wasm-ld @/tmp/emscripten_4yn7fmll.rsp.utf-8' failed (received SIGSEGV (-11))
through compilation works just fine if remove "-g" flag from https://github.com/quanterion/WASMDynamicLinking/blob/main/CompileToWasm.sh
The text was updated successfully, but these errors were encountered: