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: unassignedclangb...@nondot.org
          Reporter: vlesc...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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@260622
libcxxabi revision: trunk@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to