-
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
Unable to resolve undefined symbol error related to emscripten_longjmp #23731
Comments
Maybe the problem is that you've commented out |
Hey @hoodmane, Thanks a lot for the reply. Please feel free to educate yourself with what I am working on here #23442 (comment). Might answer any doubts you have. Now replying back .... Hmmm doesn't " Giving some more context.
I see the correct LLVM IR being generated
And I think the correct WASM file generated
But the dlopen step fails and I see this error
IMP: The above was the case when I was building my toy project with -fexceptions. And hence I thought that now that we pass the wasm exceptions flag to clang-repl we should do the same while linking . So it was then that I switched here from excpetions to wasm-exceptions
|
After the latest step when I realized that maybe
Note that after I updated my CMakeLIsts.txt file .... I kinda trying to forecfully handle this variables. I tried
add_compile_options(-Wall -pedantic -fPIC -fwasm-exceptions) |
When I try to maybe ignore the symbol (using
|
Maybe someone could educate me on what this symbol is ? Where is it excpected to come out of ? When i build with EMCC_DEBUG=1 .... I see this happening during the link step. So hopefully I am not missing any library that we need to link against !!!
|
I think the You need to pass |
Opened an issue requesting a better error message here: |
Hmmm, unfortunately it didn't help :\ I just updated the cmake file to use
And yeah for the linking I was already doing
But yeah I think you're correct. I wasn't sure if emscripten_longjmp is something that should play a role if we move to wasm-exceptions (or like if it should even be exported ?) |
There should be no symbol called |
Can you do:
ripgrep should come back with no hits if it's been built correctly. |
Ahhh I see, thanks a lot for this (I need to educate myself with how ripgrep works) but yeah I see
Which I think means that I need to build llvm with -fwasm-exceptions too which I have missed out on somewhere. |
Continuation on #23442 (comment)
I am trying to run clang-repl in the browser and run a code block having a try-catch block.
i) CompilerModule.cpp : Simply creates a interpreter and run the Parse and Excute functions.
The text was updated successfully, but these errors were encountered: