[llvm-bugs] [Bug 26611] New: libcxxabi can't be built with libcxx modules
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Feb 13 22:36:11 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26611
Bug ID: 26611
Summary: libcxxabi can't be built with libcxx modules
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: vleschuk at gmail.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
Created attachment 15904
--> https://llvm.org/bugs/attachment.cgi?id=15904&action=edit
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 at 260622
libcxxabi revision: trunk at 258313
Building with compiler:
$ clang++ --version
clang version 3.8.0 (http://llvm.org/git/clang.git
2d49f0a0ae8366964a93e3b7b26e29679bee7160) (http://llvm.org/git/llvm.git
ff65de018b6bb5bc4da3e923bbc0f55c5ca8e039)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Similar situation is reproduced when building on Windows (targetting FreeBSD
x86_64).
--
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/20160214/b170cfb9/attachment.html>
More information about the llvm-bugs
mailing list