Skip to content

Commit

Permalink
enhance: upgrade gcc to 11
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine committed Aug 20, 2024
1 parent 22ced01 commit 0f4d9f4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions build/docker/builder/cpu/ubuntu20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@ FROM ubuntu:focal-20220426

ARG TARGETARCH

RUN apt-get update && apt-get install -y --no-install-recommends wget curl ca-certificates gnupg2 \
g++ gcc gdb gdbserver ninja-build git make ccache libssl-dev zlib1g-dev zip unzip \
RUN apt-get update && apt-get install -y --no-install-recommends software-properties-common wget curl ca-certificates gnupg2 \
gdb gdbserver ninja-build git make ccache libssl-dev zlib1g-dev zip unzip \
clang-format-12 clang-tidy-12 lcov libtool m4 autoconf automake python3 python3-pip \
pkg-config uuid-dev libaio-dev libopenblas-dev && \
apt-get remove --purge -y && \
rm -rf /var/lib/apt/lists/*

# Install GCC 11 and G++ 11 separately
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \
apt-get update && apt-get install -y --no-install-recommends \
gcc-11 g++-11 && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Set GCC 11 as the default compiler
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100

RUN pip3 install conan==1.64.1

RUN echo "target arch $TARGETARCH"
Expand Down

0 comments on commit 0f4d9f4

Please sign in to comment.