<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 - Docker 2 stage build fails"
href="https://bugs.llvm.org/show_bug.cgi?id=38308">38308</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Docker 2 stage build fails
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>cmake
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>benni.buch@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20601" name="attach_20601" title="Log from the build process">attachment 20601</a> <a href="attachment.cgi?id=20601&action=edit" title="Log from the build process">[details]</a></span>
Log from the build process
Reproduce with:
$ git clone <a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
$ 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.</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>