util-docker,tests: Add compiler tests & Dockerfiles for GCC 14 (#1646)

This commit adds gcc 14 to the compiler tests and Dockerfiles.
This commit is contained in:
Erin (Jianghua) Le
2024-10-10 10:17:03 -07:00
committed by GitHub
parent c1c5147e53
commit 6195b33960
3 changed files with 16 additions and 5 deletions

View File

@@ -125,7 +125,8 @@ group "gcc-compilers" {
"gcc-version-10",
"gcc-version-11",
"gcc-version-12",
"gcc-version-13"
"gcc-version-13",
"gcc-version-14"
]
}
@@ -169,6 +170,16 @@ target "gcc-version-13" {
tags = ["${IMAGE_URI}/gcc-version-13:${TAG}"]
}
target "gcc-version-14" {
inherits = ["common"]
annotations = ["index,manifest:org.opencontainers.image.description=An image with all dependencies for building gem5 with a GCC v14 compiler."]
args = {
version = "14"
}
context = "gcc-compiler"
tags = ["${IMAGE_URI}/gcc-version-14:${TAG}"]
}
group "ubuntu-releases" {
targets=[
"ubuntu-24-04_all-dependencies",

View File

@@ -3,7 +3,7 @@ FROM ghcr.io/gem5/ubuntu-24.04_all-dependencies:latest
LABEL org.opencontainers.image.source=https://github.com/gem5/gem5
LABEL org.opencontainers.image.licenses=BSD-3-Clause
ARG version=13 # Version of GCC to install in this image. Default is 13.
ARG version=14 # Version of GCC to install in this image. Default is 14.
RUN apt -y update && \
apt -y install gcc-${version} g++-${version} && \