[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


            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
-- Check for working CXX compiler: /tmp/clang-build/build/./bin/clang++ --
CMake Error at /usr/local/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44
  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:

  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

  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