The earlier workaround continues to do the trick for the Firefox build; I've only had to add a line for __cxa_begin_catch(). Here is the patch I'm using now:
--- a/memory/mozalloc/mozalloc.cpp +++ b/memory/mozalloc/mozalloc.cpp @@ -157,3 +157,15 @@ size_t moz_malloc_enclosing_size_of(cons return 0; #endif } + +#if defined(__wasm32__) +// Fix WASI libc++ link errors +// https://bugs.launchpad.net/bugs/2033572 +extern "C" +{ + void *__cxa_allocate_exception(size_t) { abort(); } + void *__cxa_begin_catch(void *) { abort(); } + void __cxa_throw(void *, void *, void *) { abort(); } + void __cxa_rethrow() { abort(); } +} +#endif -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2033572 Title: WASI libc++ contains undefined exception-related symbols To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-15/+bug/2033572/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
