emscripten icon indicating copy to clipboard operation
emscripten copied to clipboard

Warning: _Unwind_RaiseException is not correctly implemented

Open Midar opened this issue 10 months ago • 0 comments

Version of emscripten/emsdk: emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.69 () Debian clang version 19.1.7 (3) Target: wasm32-unknown-emscripten Thread model: posix InstalledDir: /usr/lib/llvm-19/bin

I'm currently trying to use exceptions in Objective-C using emscripten. I've already worked around the missing _Unwind_GetIP (why is this missing to begin with?) in my EH personality, however, ultimately, it fails as soon as an exception is actually thrown with:

Warning: _Unwind_RaiseException is not correctly implemented

With the core part of the unwinder missing for exceptions, how do C++ exceptions even work? How am I supposed to work around this? I've found __throw_exception_with_stack_trace, however, trying to use that, I get a linker error.

Midar avatar Apr 22 '25 14:04 Midar