[llvm-bugs] [Bug 38158] New: utils/docker/build_docker_image.sh fails with multiple projects

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 13 06:12:17 PDT 2018


            Bug ID: 38158
           Summary: utils/docker/build_docker_image.sh fails with multiple
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: benni.buch at gmail.com
                CC: llvm-bugs at lists.llvm.org

The docker build script fails when using more than one LLVM project. For
example clang and libc++:

$ git clone https://github.com/llvm-mirror/llvm.git
$ ./llvm/utils/docker/build_docker_image.sh -s debian8 -d clang -t "latest" -p
clang -p libcxx -i stage2-install-clang -i stage2-install-clang-headers
Using a temporary directory for the build: /tmp/tmp.7uBjxJsgNh
Building clang:latest from debian8
Sending build context to Docker daemon  26.11kB
Step 1/17 : FROM launcher.gcr.io/google/debian8:latest as builder
 ---> 542d63b60bbe
Step 2/17 : LABEL maintainer "LLVM Developers"
 ---> Using cache
 ---> faab43598f99
Step 3/17 : RUN grep deb /etc/apt/sources.list |     sed 's/^deb/deb-src /g' >>
 ---> Using cache
 ---> 4998186490cb
Step 4/17 : RUN apt-get update &&     apt-get install -y
--no-install-recommends ca-certificates gnupg            build-essential python
wget subversion unzip &&     rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> b62d1e35e9a5
Step 5/17 : RUN wget
&&     echo "d2fea9ff33b3ef353161ed906f260d565ca55b8ca0568fa07b1d2cab90a84a07
ninja-linux.zip"         | sha256sum -c  &&     unzip ninja-linux.zip -d
/usr/local/bin &&     rm ninja-linux.zip
 ---> Using cache
 ---> 689de768513b
Step 6/17 : RUN gpg --keyserver hkp://pgp.mit.edu --recv 0x2D2CEF1034921684
 ---> Using cache
 ---> bd83d293e5ad
Step 7/17 : RUN mkdir /tmp/cmake-install && cd /tmp/cmake-install &&     wget
"https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt.asc" &&     wget
"https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt" &&     gpg --verify
cmake-3.7.2-SHA-256.txt.asc cmake-3.7.2-SHA-256.txt &&     wget
"https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz" &&     ( grep
"cmake-3.7.2-Linux-x86_64.tar.gz" cmake-3.7.2-SHA-256.txt |       sha256sum -c
- ) &&     tar xzf cmake-3.7.2-Linux-x86_64.tar.gz -C /usr/local
--strip-components=1 &&     cd / && rm -rf /tmp/cmake-install
 ---> Using cache
 ---> 3dd7790c158a
Step 8/17 : ADD checksums /tmp/checksums
 ---> Using cache
 ---> d75797019096
Step 9/17 : ADD scripts /tmp/scripts
 ---> Using cache
 ---> abcd382c5b82
Step 10/17 : ARG checkout_args
 ---> Using cache
 ---> 046a95b75652
Step 11/17 : RUN /tmp/scripts/checkout.sh ${checkout_args}
 ---> Running in dec60d0df9a5
Checking out latest svn revision.
Checking out sources from svn
Checking out https://llvm.org/svn/llvm-project/llvm to
/tmp/clang-build/src/llvm /
Checking out https://llvm.org/svn/llvm-project/cfe to
/tmp/clang-build/src/clang /
Checking out https://llvm.org/svn/llvm-project/libcxx to
/tmp/clang-build/src/libcxx /
Skipping checksumming checks...
Removing intermediate container dec60d0df9a5
 ---> 147f6551e4c6
Step 12/17 : ARG buildscript_args
 ---> Running in e9b34e2678eb
Removing intermediate container e9b34e2678eb
 ---> f9589b422562
Step 13/17 : RUN /tmp/scripts/build_install_llvm.sh --to /tmp/clang-install
 ---> Running in c3e5ec73f12a
/tmp/clang-build/build /
Running build
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to Debug
CMake Error at CMakeLists.txt:127 (message):
  LLVM_ENABLE_PROJECTS requests clang:libcxx but directory not found:

-- Configuring incomplete, errors occurred!
See also "/tmp/clang-build/build/CMakeFiles/CMakeOutput.log".
The command '/bin/sh -c /tmp/scripts/build_install_llvm.sh --to
/tmp/clang-install ${buildscript_args}' returned a non-zero code: 1

I have tested on master and stable branch.

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/20180713/f64f2549/attachment-0001.html>

More information about the llvm-bugs mailing list