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
This commit is contained in:
Bobby R. Bruce
2024-06-25 11:16:52 -07:00
parent a1eefb6ed8
commit 9d635dea55
10 changed files with 146 additions and 565 deletions

View File

@@ -0,0 +1,14 @@
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