<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/58117>58117</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
undefined symbol: std::__1::__libcpp_verbose_abort(char const*, ...) in debug builds of libc++abi.so
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++abi,
compile-fail
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
arichardson
</td>
</tr>
</table>
<pre>
When trying to build the runtime libraries with `-DCMAKE_BUILD_TYPE=Debug`, I get linker errors in libc++abi.so:
Build command: `mkdir test-build && cmake -S ./runtimes -B ./test-build -GNinja -DCMAKE_BUILD_TYPE=Debug -DLIBCXX_ENABLE_ASSERTIONS=TRUE "-DLLVM_ENABLE_RUNTIMES=libunwind;libcxxabi;libcxx" -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DCMAKE_C_COMPILER=/usr/bin/clang && ninja -C test-build`
```
libcxxabi/src/CMakeFiles/cxxabi_shared_objects.dir/cxa_demangle.cpp.o: in function `void std::__1::advance[abi:v160000]<(anonymous namespace)::itanium_demangle::AbstractManglingParser<(anonymous namespace)::itanium_demangle::ManglingParser<(anonymous namespace)::DefaultAllocator>, (anonymous namespace)::DefaultAllocator>::OperatorInfo const*, long, long, void>((anonymous namespace)::itanium_demangle::AbstractManglingParser<(anonymous namespace)::itanium_demangle::ManglingParser<(anonymous namespace)::DefaultAllocator>, (anonymous namespace)::DefaultAllocator>::OperatorInfo const*&, long)':
cxa_demangle.cpp:(.text+0x195e0): undefined reference to `std::__1::__libcpp_verbose_abort(char const*, ...)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztVUuPozgQ_jVwsYJ4BBIOHEJCVtEm3a1-7M6ekMFF4mliI9tk0v9-ypBOunc0Wu3sdZFlsMvlqvqq6qOS7C378wCCGPXGxZ4YSaqet4y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