<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON insufficient to bootstrap in llvm trunk"
href="https://bugs.llvm.org/show_bug.cgi?id=34957">34957</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON insufficient to bootstrap in llvm trunk
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>howarth.mailing.lists@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>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</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>