<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 - Xcode 9 beta breaks the ability to stage2 bootstrap the llvm 4.0.1svn compiler"
href="https://bugs.llvm.org/show_bug.cgi?id=33415">33415</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Xcode 9 beta breaks the ability to stage2 bootstrap the llvm 4.0.1svn compiler
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</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 Xcode 9 beta release breaks the stage2 build of the llvm 4.0.1svn compiler
with the error...
-- Performing Test LLVM_NO_OLD_LIBSTDCXX
-- Performing Test LLVM_NO_OLD_LIBSTDCXX - Failed
CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message):
Host Clang must be able to find libstdc++4.8 or newer!
Call Stack (most recent call first):
cmake/config-ix.cmake:14 (include)
CMakeLists.txt:582 (include)
-- Configuring incomplete, errors occurred!
See also
"/Users/howarth/llvm-branch/build/tools/clang/stage2-bins/CMakeFiles/CMakeOutput.log".
See also
"/Users/howarth/llvm-branch/build/tools/clang/stage2-bins/CMakeFiles/CMakeError.log".
FAILED: tools/clang/stage2-stamps/stage2-configure
cd /Users/howarth/llvm-branch/build/tools/clang/stage2-bins && /sw/bin/cmake
-DCMAKE_INSTALL_PREFIX=/usr/local -DPACKAGE_VERSION=4.0.1
-DLLVM_VERSION_MAJOR=4 -DLLVM_VERSION_MINOR=0 -DLLVM_VERSION_PATCH=1
-DCLANG_VERSION_MAJOR=4 -DCLANG_VERSION_MINOR=0 -DCLANG_VERSION_PATCHLEVEL=1
-DLLVM_VERSION_SUFFIX= -DLLVM_BINUTILS_INCDIR= -DCLANG_REPOSITORY_STRING=
-DCMAKE_MAKE_PROGRAM=/sw/bin/ninja -DCMAKE_OSX_ARCHITECTURES=
-DCLANG_STAGE=stage2
-DCMAKE_CXX_COMPILER=/Users/howarth/llvm-branch/build/./bin/clang++
-DCMAKE_C_COMPILER=/Users/howarth/llvm-branch/build/./bin/clang
-DCMAKE_ASM_COMPILER=/Users/howarth/llvm-branch/build/./bin/clang -GNinja
/Users/howarth/llvm-branch/llvm-4.0.1.src && /sw/bin/cmake -E touch
/Users/howarth/llvm-branch/build/tools/clang/stage2-stamps//stage2-configure
ninja: build stopped: subcommand failed.
Steps to Reproduce:
With Xcode 9 beta, cmake 3.8.1 and ninja 1.7.2 installed, the following fails
under Xcode 9 beta on 10.12...
svn co <a href="http://llvm.org/svn/llvm-project/cfe/branches/release_40/">http://llvm.org/svn/llvm-project/cfe/branches/release_40/</a> cfe-4.0.1.src
svn co <a href="http://llvm.org/svn/llvm-project/compiler-rt/branches/release_40/">http://llvm.org/svn/llvm-project/compiler-rt/branches/release_40/</a>
compiler-rt-4.0.1.src
svn co <a href="http://llvm.org/svn/llvm-project/llvm/branches/release_40/">http://llvm.org/svn/llvm-project/llvm/branches/release_40/</a>
llvm-4.0.1.src
cd llvm-4.0.1.src/tools
ln -fs </path/to/cfe-4.0.1.src> clang
cd ../projects
ln -fs </path/to/compiler-rt-4.0.1.src> compiler-rt
cd ../..
mkdir build
cd build
cmake -G Ninja -DCLANG_ENABLE_BOOTSTRAP=On </path/to/llvm-4.0.1.src>
ninja -j6 stage2
Expected Results:
I expected the stage2 bootstrap to successfully complete.
Observed Results:
The stage2 bootstrap fails with...
-- Performing Test LLVM_NO_OLD_LIBSTDCXX
-- Performing Test LLVM_NO_OLD_LIBSTDCXX - Failed
CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message):
Host Clang must be able to find libstdc++4.8 or newer!
Call Stack (most recent call first):
cmake/config-ix.cmake:14 (include)
CMakeLists.txt:582 (include)
-- Configuring incomplete, errors occurred!
See also
"/Users/howarth/llvm-branch/build/tools/clang/stage2-bins/CMakeFiles/CMakeOutput.log".
See also
"/Users/howarth/llvm-branch/build/tools/clang/stage2-bins/CMakeFiles/CMakeError.log".
FAILED: tools/clang/stage2-stamps/stage2-configure
cd /Users/howarth/llvm-branch/build/tools/clang/stage2-bins && /sw/bin/cmake
-DCMAKE_INSTALL_PREFIX=/usr/local -DPACKAGE_VERSION=4.0.1
-DLLVM_VERSION_MAJOR=4 -DLLVM_VERSION_MINOR=0 -DLLVM_VERSION_PATCH=1
-DCLANG_VERSION_MAJOR=4 -DCLANG_VERSION_MINOR=0 -DCLANG_VERSION_PATCHLEVEL=1
-DLLVM_VERSION_SUFFIX= -DLLVM_BINUTILS_INCDIR= -DCLANG_REPOSITORY_STRING=
-DCMAKE_MAKE_PROGRAM=/sw/bin/ninja -DCMAKE_OSX_ARCHITECTURES=
-DCLANG_STAGE=stage2
-DCMAKE_CXX_COMPILER=/Users/howarth/llvm-branch/build/./bin/clang++
-DCMAKE_C_COMPILER=/Users/howarth/llvm-branch/build/./bin/clang
-DCMAKE_ASM_COMPILER=/Users/howarth/llvm-branch/build/./bin/clang -GNinja
/Users/howarth/llvm-branch/llvm-4.0.1.src && /sw/bin/cmake -E touch
/Users/howarth/llvm-branch/build/tools/clang/stage2-stamps//stage2-configure
ninja: build stopped: subcommand failed.
Version:
Xcode 9.0
Build version 9M136h
Notes:
The failing test LLVM_NO_OLD_LIBSTDCXX involves compiling the source code
fragment...
#include <atomic>
std::atomic<float> x(0.0f);
int main() { return (float)x; }</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>