[llvm-bugs] [Bug 38308] New: Docker 2 stage build fails
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 25 06:38:39 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38308
Bug ID: 38308
Summary: Docker 2 stage build fails
Product: Build scripts
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
Assignee: unassignedbugs at nondot.org
Reporter: benni.buch at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 20601
--> https://bugs.llvm.org/attachment.cgi?id=20601&action=edit
Log from the build process
Reproduce with:
$ git clone https://github.com/llvm-mirror/llvm.git
$ cd llvm
$ utils/docker/build_docker_image.sh -s debian8 -d
"$CI_REGISTRY_USER/$CI_PROJECT_NAME" -t "latest" --branch branches/release_60
-p clang -p libcxx -p libcxxabi -p lld -p compiler-rt -i stage2-install-clang
-i stage2-install-clang-headers -- -DCMAKE_BUILD_TYPE=Release
-DBOOTSTRAP_CMAKE_BUILD_TYPE=Release -DCLANG_ENABLE_BOOTSTRAP=ON
-DCLANG_DEFAULT_CXX_STDLIB=libc++
-DCLANG_BOOTSTRAP_TARGETS="install-clang;install-clang-headers"
[...]
-- Check for working CXX compiler: /tmp/clang-build/build/./bin/clang++ --
broken
CMake Error at /usr/local/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44
(message):
The C++ compiler "/tmp/clang-build/build/./bin/clang++" is not able to
compile a simple test program.
It fails with the following output:
Change Dir:
/tmp/clang-build/build/tools/clang/stage2-bins/CMakeFiles/CMakeTmp
Run Build Command:"/usr/local/bin/ninja" "cmTC_8e6a7"
[1/2] Building CXX object CMakeFiles/cmTC_8e6a7.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_8e6a7
FAILED: cmTC_8e6a7
: && /tmp/clang-build/build/./bin/clang++
CMakeFiles/cmTC_8e6a7.dir/testCXXCompiler.cxx.o -o cmTC_8e6a7 && :
/usr/bin/ld: cannot find -lc++
clang-6.0: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:45 (project)
-- Configuring incomplete, errors occurred!
Full log in attachment.
--
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/20180725/e4f98957/attachment.html>
More information about the llvm-bugs
mailing list