<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 - llvm buutstrap failed with only libcxx even if LLVM_ENABLE_LIBCXX=ON"
href="https://bugs.llvm.org/show_bug.cgi?id=43105">43105</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm buutstrap failed with only libcxx even if LLVM_ENABLE_LIBCXX=ON
</td>
</tr>
<tr>
<th>Product</th>
<td>Build scripts
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>yichen.yan@inf.ethz.ch
</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=22421" name="attach_22421" title="config_failed.Dockerfile">attachment 22421</a> <a href="attachment.cgi?id=22421&action=edit" title="config_failed.Dockerfile">[details]</a></span>
config_failed.Dockerfile
Overview: '-stdlib=libc++' flag won't be used when probing CXX compiler
Steps to Reproduce: `docker build . -f config_failed.Dockerfile`,
config_failed.Dockerfile attached.
Actual Results:
<lines skipped>
-- Check for working CXX compiler:
/root/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++
-- Check for working CXX compiler:
/root/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++ -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCXXCompiler.cmake:45
(message):
The C++ compiler
"/root/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/failed_config/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_33d99/fast"
/usr/bin/make -f CMakeFiles/cmTC_33d99.dir/build.make
CMakeFiles/cmTC_33d99.dir/build
make[1]: Entering directory '/root/failed_config/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_33d99.dir/testCXXCompiler.cxx.o
/root/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++ -o
CMakeFiles/cmTC_33d99.dir/testCXXCompiler.cxx.o -c
/root/failed_config/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_33d99
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_33d99.dir/link.txt
--verbose=1
/root/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clang++
CMakeFiles/cmTC_33d99.dir/testCXXCompiler.cxx.o -o
cmTC_33d99
/usr/bin/ld: cannot find -lstdc++
clang-8: error: linker command failed with exit code 1 (use -v to see
invocation)
CMakeFiles/cmTC_33d99.dir/build.make:97: recipe for target 'cmTC_33d99'
failed
make[1]: *** [cmTC_33d99] Error 1
make[1]: Leaving directory '/root/failed_config/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_33d99/fast' failed
make: *** [cmTC_33d99/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:49 (project)
-- Configuring incomplete, errors occurred!
See also "/root/failed_config/CMakeFiles/CMakeOutput.log".
See also "/root/failed_config/CMakeFiles/CMakeError.log".
The command '/bin/sh -c cmake -G "Unix Makefiles" -DLLVM_ENABLE_LIBCXX=ON
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
"${LLVM_TRUNK}/llvm"' returned a non-zero code: 1
Expected Results: cmake without error</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>