<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 - utils/docker/build_docker_image.sh fails with multiple projects"
href="https://bugs.llvm.org/show_bug.cgi?id=38158">38158</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>utils/docker/build_docker_image.sh fails with multiple projects
</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>release blocker
</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>The docker build script fails when using more than one LLVM project. For
example clang and libc++:
$ git clone <a href="https://github.com/llvm-mirror/llvm.git">https://github.com/llvm-mirror/llvm.git</a>
$ ./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' >>
/etc/apt/sources.list
---> 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
"<a href="https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip">https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip</a>"
&& 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
"<a href="https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt.asc">https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt.asc</a>" && wget
"<a href="https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt">https://cmake.org/files/v3.7/cmake-3.7.2-SHA-256.txt</a>" && gpg --verify
cmake-3.7.2-SHA-256.txt.asc cmake-3.7.2-SHA-256.txt && wget
"<a href="https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz">https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.tar.gz</a>" && ( 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 <a href="https://llvm.org/svn/llvm-project/llvm">https://llvm.org/svn/llvm-project/llvm</a> to
/tmp/clang-build/src/llvm
/tmp/clang-build/src/llvm /
/
Checking out <a href="https://llvm.org/svn/llvm-project/cfe">https://llvm.org/svn/llvm-project/cfe</a> to
/tmp/clang-build/src/clang
/tmp/clang-build/src/clang /
/
Checking out <a href="https://llvm.org/svn/llvm-project/libcxx">https://llvm.org/svn/llvm-project/libcxx</a> to
/tmp/clang-build/src/libcxx
/tmp/clang-build/src/libcxx /
/
Skipping checksumming checks...
Done
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
${buildscript_args}
---> 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:
/tmp/clang-build/src/llvm/../clang:libcxx
-- 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.</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>