Files
gem5/util/dockerfiles/gcc-compiler/Dockerfile
Bobby R. Bruce 9d635dea55 util-docker: Improve Docker gcc and clang builder
1. Uses the all-dependencies image as the base image.
2. Has all compilers use Ubuntu 24.04.

Notes: This change implitly changes our supported compilers to GCC v10
to v13 and Clang v14 to v18. This will be fully incorporated into the
project later.

Change-Id: Id8e2141ea64a34c7e3532605f6ecb7d9ccb76951
2024-08-13 16:07:15 -07:00

15 lines
604 B
Docker

FROM --platform=${BUILDPLATFORM} ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
ARG version=13 # Version of GCC to install in this image. Default is 13.
RUN apt -y update && \
apt -y install gcc-${version} g++-${version} && \
update-alternatives --install \
/usr/bin/g++ g++ /usr/bin/g++-${version} 100 && \
update-alternatives --install \
/usr/bin/gcc gcc /usr/bin/gcc-${version} 100 && \
update-alternatives --install \
/usr/bin/c++ c++ /usr/bin/g++-${version} 100 && \
update-alternatives --install \
/usr/bin/cc cc /usr/bin/gcc-${version} 100