• Home
  • Raw
  • Download

Lines Matching +full:- +full:gcc

1 #===- libcxx/utils/docker/debian9/Dockerfile -------------------------===//
8 #===----------------------------------------------------------------------===//
10 # Setup the base builder image with the packages we'll need to build GCC and Clang from source.
11 FROM launcher.gcr.io/google/debian9:latest as builder-base
14 RUN apt-get update && \
15 apt-get install -y --no-install-recommends \
16 ca-certificates \
18 build-essential \
25 ninja-build \
28 gcc-multilib \
29 g++-multilib \
30 libc6-dev \
35 binutils-dev \
36 binutils-gold \
37 software-properties-common && \
38 update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 && \
39 update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10
41 # Build GCC 4.9 for testing our C++11 against
42 FROM builder-base as gcc-49-builder
47 RUN git clone --depth=1 --branch gcc-4_9_4-release git://gcc.gnu.org/git/gcc.git /tmp/gcc-4.9.4
48 RUN cd /tmp/gcc-4.9.4/ && ./contrib/download_prerequisites
49 RUN /tmp/build_gcc.sh --source /tmp/gcc-4.9.4 --to /opt/gcc-4.9.4
51 # Build GCC ToT for testing in all dialects.
52 FROM builder-base as gcc-tot-builder
57 RUN git clone --depth=1 git://gcc.gnu.org/git/gcc.git /tmp/gcc-tot
58 RUN cd /tmp/gcc-tot && ./contrib/download_prerequisites
59 RUN /tmp/build_gcc.sh --source /tmp/gcc-tot --to /opt/gcc-tot
62 FROM builder-base as llvm-4-builder
68 RUN /tmp/checkout_git.sh --to /tmp/llvm-4.0 -p clang -p compiler-rt --branch release_40
70 --install /opt/llvm-4.0 \
71 --source /tmp/llvm-4.0 \
72 --build /tmp/build-llvm-4.0 \
73 -i install-clang -i install-clang-headers \
74 -i install-compiler-rt \
75 -- \
76 -DCMAKE_BUILD_TYPE=RELEASE \
77 -DLLVM_ENABLE_ASSERTIONS=ON
83 # Copy over the GCC and Clang installations
84 COPY --from=gcc-49-builder /opt/gcc-4.9.4 /opt/gcc-4.9.4
85 COPY --from=gcc-tot-builder /opt/gcc-tot /opt/gcc-tot
86 COPY --from=llvm-4-builder /opt/llvm-4.0 /opt/llvm-4.0
88 RUN ln -s /opt/gcc-4.9.4/bin/gcc /usr/local/bin/gcc-4.9 && \
89 ln -s /opt/gcc-4.9.4/bin/g++ /usr/local/bin/g++-4.9
91 RUN apt-get update && \
92 apt-get install -y \
93 ca-certificates \
95 build-essential \
96 apt-transport-https \
98 software-properties-common
100 RUN apt-get install -y --no-install-recommends \
102 sysvinit-utils \
106 ninja-build \
107 gcc-multilib \
108 g++-multilib \
110 buildbot-slave