[llvm-bugs] [Bug 43105] New: llvm buutstrap failed with only libcxx even if LLVM_ENABLE_LIBCXX=ON

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 24 05:42:14 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43105

            Bug ID: 43105
           Summary: llvm buutstrap failed with only libcxx even if
                    LLVM_ENABLE_LIBCXX=ON
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: yichen.yan at inf.ethz.ch
                CC: llvm-bugs at lists.llvm.org

Created attachment 22421
  --> https://bugs.llvm.org/attachment.cgi?id=22421&action=edit
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

-- 
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/20190824/068af129/attachment.html>


More information about the llvm-bugs mailing list