I'm afraid this issue has turned up again on resolute, with clang-20 (1:20.1.8-2ubuntu8) and clang-21 (1:21.1.8-6ubuntu1) being affected.
I have not been able to make the Firefox build work with clang-22 due to unrelated Rust errors, so cannot determine if that version has the same issue or not. Per my testing, clang-20 on noble is OK, clang-21 on questing is OK. Here are the link errors I encountered on resolute: wasm-ld-20: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_allocate_exception wasm-ld-20: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_throw wasm-ld-20: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_allocate_exception wasm-ld-20: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_throw wasm-ld-20: error: /usr/lib/wasm32-wasi/libc++.a(stdexcept.cpp.o): undefined symbol: __cxa_allocate_exception [...] wasm-ld-20: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) clang++-20: error: linker command failed with exit code 1 (use -v to see invocation) make[7]: *** [/tmp/firefox-esr-140.10.2esr/config/rules.mk:505: rlbox.wasm] Error 1 wasm-ld-21: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_allocate_exception wasm-ld-21: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_throw wasm-ld-21: error: /usr/lib/wasm32-wasi/libc++.a(stdlib_new_delete.cpp.o): undefined symbol: __cxa_begin_catch [...] wasm-ld-21: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) clang++-21: error: linker command failed with exit code 1 (use -v to see invocation) make[7]: *** [/tmp/firefox-esr-140.10.2esr/config/rules.mk:505: rlbox.wasm] Error 1 -- 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
