[llvm-bugs] [Bug 27482] New: clang fails to bootstrap with LLD

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 22 11:23:25 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27482

            Bug ID: 27482
           Summary: clang fails to bootstrap with LLD
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: peter at pcc.me.uk
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

mkdir ~/src/llvm/ra
cd ~/src/llvm/ra
CC=clang CXX=clang++ cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_ASSERTIONS=1
ninja lld clang

mkdir ~/src/llvm/ra2-lld
cd ~/src/llvm/ra2-lld
CC="$HOME/src/llvm/ra/bin/clang -fuse-ld=lld -Qunused-arguments"
CXX="$HOME/src/llvm/ra/bin/clang++ -fuse-ld=lld -Qunused-arguments" cmake
-GNinja .. -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=1
ninja check-clang

produces several assertion failures like this:

c-index-test: ../lib/Support/CommandLine.cpp:202: void (anonymous
namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory *):
Assertion `std::count_if(RegisteredOptionCategories.begin(),
RegisteredOptionCategories.end(), [cat](const OptionCategory *Category) {
return cat->getName() == Category->getName(); }) == 0 && "Duplicate option
categories"' failed.

-- 
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/20160422/846ae45d/attachment.html>


More information about the llvm-bugs mailing list