[llvm-bugs] [Bug 45171] throw of a C string is causing an error when targeting wasm32

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 15 05:56:01 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45171

Heejin Ahn <aheejin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Heejin Ahn <aheejin at gmail.com> ---
The symbol is defined in libc++, which is not linked together. Wasm libraries
don't exist by default as shared object files in normal Linux systems. To use
libraries, you can build libraries manually and link, or you can use tools like
Emscripten (https://emscripten.org/). 

FYI, wasm native exception handling
(https://github.com/WebAssembly/exception-handling) is still in progress and
not all VMs support it. But Emscripten support exception handling using
JavaScript emulation. If you use Emscripten, refer to this page
(https://emscripten.org/docs/optimizing/Optimizing-Code.html#c-exceptions) for
more info.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200315/c66f922d/attachment.html>


More information about the llvm-bugs mailing list