[llvm-bugs] [Bug 33415] New: Xcode 9 beta breaks the ability to stage2 bootstrap the llvm 4.0.1svn compiler
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jun 12 06:06:35 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33415
Bug ID: 33415
Summary: Xcode 9 beta breaks the ability to stage2 bootstrap
the llvm 4.0.1svn compiler
Product: new-bugs
Version: 4.0
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 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 http://llvm.org/svn/llvm-project/cfe/branches/release_40/ cfe-4.0.1.src
svn co http://llvm.org/svn/llvm-project/compiler-rt/branches/release_40/
compiler-rt-4.0.1.src
svn co http://llvm.org/svn/llvm-project/llvm/branches/release_40/
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; }
--
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/20170612/64f1d2c0/attachment-0001.html>
More information about the llvm-bugs
mailing list