<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - libcxxabi can't be built with libcxx modules"
href="https://llvm.org/bugs/show_bug.cgi?id=26611">26611</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>libcxxabi can't be built with libcxx modules
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vleschuk@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15904" name="attach_15904" title="Pre-processed files">attachment 15904</a> <a href="attachment.cgi?id=15904&action=edit" title="Pre-processed files">[details]</a></span>
Pre-processed files
Configuring build with the following params:
cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja \
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
-DLLVM_ENABLE_LIBCXX=Yes \
-DLLVM_ENABLE_MODULES=Yes
Build of cxxabi fails with the following errors:
../projects/libcxxabi/src/exception.cpp:19:25: error: expected function body
after function declarator
exception::~exception() _NOEXCEPT
../projects/libcxxabi/src/typeinfo.cpp:23:22: error: expected function body
after function declarator
bad_cast::bad_cast() _NOEXCEPT
../projects/libcxxabi/src/stdexcept.cpp:28:19: error: no member named 'c_str'
in 'std::__1::__libcpp_refstring'
return __imp_.c_str();
~~~~~~ ^
../projects/libcxxabi/src/stdexcept.cpp:36:19: error: no member named 'c_str'
in 'std::__1::__libcpp_refstring'
return __imp_.c_str();
Build without modules enabled is successful.
Last tested with:
libcxx revision: trunk@260622
libcxxabi revision: trunk@258313
Building with compiler:
$ clang++ --version
clang version 3.8.0 (<a href="http://llvm.org/git/clang.git">http://llvm.org/git/clang.git</a>
2d49f0a0ae8366964a93e3b7b26e29679bee7160) (<a href="http://llvm.org/git/llvm.git">http://llvm.org/git/llvm.git</a>
ff65de018b6bb5bc4da3e923bbc0f55c5ca8e039)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Similar situation is reproduced when building on Windows (targetting FreeBSD
x86_64).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>