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

Louis Dionne <ldio...@apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ldio...@apple.com
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
           Assignee|unassignedb...@nondot.org   |ldio...@apple.com

--- Comment #2 from Louis Dionne <ldio...@apple.com> ---
What compiler are you using? I'm guessing you're using a fairly old Clang.

The issue is that the compiler emits type information for fundamental types in
libc++abi, and your compiler doesn't know about char8_t yet, so it doesn't emit
the type information for those. libc++abi tries to export these symbols and it
fails to do so, because they haven't been generated in the dylib by the
compiler.

Getting a linker error is quite nice, because otherwise you'd be producing a
libc++abi.dylib that doesn't work properly at runtime (say if you try to use
typeid(char8_t) in your program).

The fix is to use a recent Clang when building libc++ and libc++abi.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to