I'm sorry, I reproduced this issue only with clang version which is 4 weeks old. Commit ff4a3ee4.<div>It wasn't yet tested with newer clang versions. I'll check tomorrow and let you know.<br /><div><br /></div><div>Thanks!</div><div>Stepan<br /><br /><div>02.06.2020, 01:12, "via libcxx-dev" <libcxx-dev@lists.llvm.org>:</div><blockquote><div><div>Louis,</div><div>how recent clang should be? I have this error for 31th of May version, for this commit <span class="1f1ea193f6735cf0wmi-callto">595212569</span>.</div><div> </div><div>Thanks!</div><div> </div><div>01.06.2020, 23:54, "Louis Dionne" <<a class="a65fe1f0f5b6094cgoto-anchor" href="mailto:ldionne@apple.com">ldionne@apple.com</a>>:</div><blockquote><div style="word-wrap:break-word">Hi,<div> </div><div>I just updated <a class="a65fe1f0f5b6094cgoto-anchor" href="http://llvm.org/PR43749">http://llvm.org/PR43749</a>, which I wasn't aware of. As I explain in the bug report:</div><div> </div><div><div>    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.</div><div> </div><div>    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).</div><div> </div><div>I hope that answers your question. The problem should go away if you use a recent Clang. If it doesn't please ping me again.</div><div> </div><div>Thanks,</div><div>Louis</div><div> <blockquote><div>On Jun 1, 2020, at 15:39, <a class="a65fe1f0f5b6094cgoto-anchor" href="mailto:llvm@dyatkovskiy.com">llvm@dyatkovskiy.com</a> wrote:</div> <div><div>Hi Louis!</div><div> </div><div>I found your commit in llvm-project, libcxxabi, namely this one:</div><div><div> </div><div>commit 223df5b54021cfa4c67d4e09e1dc1b3b9e6a9de7 (refs/bisect/bad)</div><div>Author: Louis Dionne <<a class="a65fe1f0f5b6094cgoto-anchor" href="mailto:ldionne@apple.com">ldionne@apple.com</a>></div><div>Date: Thu Jun 27 20:17:22 2019 +0000</div><div> </div><div>In this commit you added exported symbols for different platforms for libcxxabi, for apple:</div><div> </div><div>I'm currently trying to build it for Mac OS 10.13.6, x86_64, and bumped into unresolved symbols errors:</div><div> </div><div><div><div>Undefined symbols for architecture x86_64:</div><div>"__ZTIDu", referenced from:</div><div>-exported_symbol[s_list] command line option</div><div>"__ZTIPDu", referenced from:</div><div>-exported_symbol[s_list] command line option</div></div></div><div> </div><div>I noticed that you added itanium-base.exp for APPLE platforms by default (no other conditions):</div><div> </div><div>> if (APPLE)</div><div><div>> target_link_libraries(cxxabi_shared PRIVATE "-Wl,-exported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/../lib/itanium-base.exp")</div><div> </div><div>I'm not expert of x86_64 arch, especially for darwin. Are we using Itanium ABI by default on Mac OS 10.13 for x86_64 arch?</div><div>If so, what did I miss, for there are symbols which must be exported, but absent in my compilation. I compile libcxxabi with following commands:</div><div> </div><div>cmake -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$BUILD_DIR/install -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi" $SRC_DIR</div><div>ninja -j8</div><div> </div><div>There is also bug, which seems to be related to this commit:</div><div><a class="a65fe1f0f5b6094cgoto-anchor" href="https://bugs.llvm.org/show_bug.cgi?id=43749">https://bugs.llvm.org/show_bug.cgi?id=43749</a></div><div> </div><div>Thanks!</div><div>Stepan Dyatkovskiy</div><div> </div></div></div></div></blockquote></div></div></div></blockquote></div><div><p>_______________________________________________<br />libcxx-dev mailing list<br /><a class="a65fe1f0f5b6094cgoto-anchor" href="mailto:libcxx-dev@lists.llvm.org">libcxx-dev@lists.llvm.org</a><br /><a class="a65fe1f0f5b6094cgoto-anchor" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev</a><br /></p></div></blockquote><div><br /></div><div><br /></div><div class="86e3a5cbc83439f6js-compose-signature"></div><div><br /></div></div></div>