[llvm-bugs] [Bug 34957] New: -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON insufficient to bootstrap in llvm trunk

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 15 10:14:14 PDT 2017


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

            Bug ID: 34957
           Summary: -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON insufficient
                    to bootstrap in llvm trunk
           Product: new-bugs
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: howarth.mailing.lists at gmail.com
                CC: llvm-bugs at lists.llvm.org

The -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON to allow the newly built compiler
to compile the compiler-rt sources no longer works under llvm trunk. The
compiler-rt sources seem to be using more c++ than in the llvm 5.0 release
causing the stage1 build failure...

[ 90%] Building CXX object
lib/ubsan_minimal/CMakeFiles/RTUbsan_minimal.osx.dir/ubsan_minimal_handlers.cc.o
cd
/sw/src/fink.build/llvm60-6.0.0-1/build/stage1/tools/clang/runtime/compiler-rt-bins/lib/ubsan_minimal
&& /sw/src/fink.build/llvm60-6.0.0-1/build/stage1/./bin/clang++  
-I/sw/src/fink.build/llvm60-6.0.0-1/llvm-6.0.0.src/projects/compiler-rt/lib/ubsan_minimal/..
 -Wall -std=c++11 -Wno-unused-parameter -O3 -DNDEBUG -arch i386 -arch x86_64
-arch x86_64h     -Wall -std=c++11 -Wno-unused-parameter -stdlib=libc++
-mmacosx-version-min=10.9 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
-fPIC -fno-builtin -fno-exceptions -funwind-tables -fno-stack-protector
-fno-sanitize=safe-stack -fvisibility=hidden -fvisibility-inlines-hidden
-fno-lto -O3 -gline-tables-only -Wno-gnu -Wno-variadic-macros
-Wno-c99-extensions -Wno-non-virtual-dtor -fno-rtti -o
CMakeFiles/RTUbsan_minimal.osx.dir/ubsan_minimal_handlers.cc.o -c
/sw/src/fink.build/llvm60-6.0.0-1/llvm-6.0.0.src/projects/compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cc
/sw/src/fink.build/llvm60-6.0.0-1/llvm-6.0.0.src/projects/compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cc:1:10:
fatal error: 
      'atomic' file not found
#include <atomic>
         ^~~~~~~~
1 error generated.
make[5]: ***
[lib/ubsan_minimal/CMakeFiles/RTUbsan_minimal.osx.dir/ubsan_minimal_handlers.cc.o]
Error 1
make[4]: *** [lib/ubsan_minimal/CMakeFiles/RTUbsan_minimal.osx.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [tools/clang/runtime/compiler-rt-stamps/compiler-rt-build] Error 2
make[1]: *** [tools/clang/runtime/CMakeFiles/compiler-rt.dir/all] Error 2
make: *** [all] Error 2

-- 
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/20171015/8f76eb84/attachment-0001.html>


More information about the llvm-bugs mailing list