clang-9: error: unable to execute command: Segmentation fault (core dumped)
Closed this issue · 4 comments
Hi @Yongli0510, this is clearly not supposed to happen. Could you share the test.cc file you are compiling, so I can then reproduce and fix the problem?
Hi @Yongli0510, this is clearly not supposed to happen. Could you share the test.cc file you are compiling, so I can then reproduce and fix the problem?
@carlopi
Thanks for attention! The test.cc is a filter I'm writing for envoy and I want to compile it to test.wasm.
Because the file format limit of github, I have to rename the test.cc to test.txt, so you maybe change it to test.cc yourself:
test.txt
Thanks again!
Are you by any chance compiling this project example?
This is meant to work with the Emscripten toolchain, since it uses toolchain-specific attributes.
Adding the right Cheerp's attributes (eg. [[cheerp::jsexport]]
instead of __attribute__((visibility("default")))
) it should be possible to compile this with Cheerp, but I haven't tried (yet).
The problem is now solved on master, there were some problems related to indirect tagging of lambdas that has been properly solved.
The codebase now compiles, but as mentioned it will require to be tagged with the proper attributes (mainly [[cheerp::jsexport]] to force functions to be externally visible).
Thanks for signaling the issue!