From e9b1f49d0ea799a2ccd9dece5e117cbaa54bb13d Mon Sep 17 00:00:00 2001 From: openeuler_bot Date: Wed, 10 Sep 2025 00:04:50 +0000 Subject: [PATCH] 24.03-lts-sp2 update gcc to 15.2.0 --- Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile | 43 ++++++++++++++++++++++ Others/gcc/README.md | 1 + Others/gcc/doc/image-info.yml | 1 + Others/gcc/meta.yml | 4 +- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile diff --git a/Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile b/Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile new file mode 100644 index 00000000..10dded0f --- /dev/null +++ b/Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile @@ -0,0 +1,43 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp2 +FROM ${BASE} AS builder + +ARG VERSION=15.2.0 + +RUN dnf update -y \ + && dnf install -y gcc gcc-c++ make bison flex \ + gmp-devel mpfr-devel libmpc-devel diffutils \ + zlib-devel texinfo isl-devel wget \ + && dnf clean all \ + && rm -rf /var/cache/dnf + +WORKDIR /opt + +RUN wget https://mirrors.ustc.edu.cn/gnu/gcc/gcc-${VERSION}/gcc-${VERSION}.tar.gz \ + && tar -zxvf gcc-${VERSION}.tar.gz \ + && rm -f gcc-${VERSION}.tar.gz + +WORKDIR /opt/gcc-${VERSION} + +RUN mkdir -p gcc-deps \ + && cd gcc-deps \ + && wget https://mirrors.ustc.edu.cn/gnu/gmp/gmp-6.2.1.tar.bz2 \ + && wget https://mirrors.ustc.edu.cn/gnu/mpfr/mpfr-4.1.0.tar.bz2 \ + && wget https://mirrors.ustc.edu.cn/gnu/mpc/mpc-1.2.1.tar.gz \ + && wget https://mirrors.ustc.edu.cn/gnu/gettext/gettext-0.22.tar.gz \ + && wget https://libisl.sourceforge.io/isl-0.24.tar.bz2 \ + && ln -s gmp-6.2.1 ../gmp \ + && ln -s mpfr-4.1.0 ../mpfr \ + && ln -s mpc-1.2.1 ../mpc \ + && ln -s isl-0.24 ../isl \ + && ln -s gettext-0.22 ../gettext + +RUN dnf install -y diffutils +RUN mkdir -p gcc-build \ + && cd gcc-build \ + && ../configure --prefix=/usr/local/gcc --enable-languages=c,c++ --disable-multilib \ + && make -j$(nproc) \ + && make install + +WORKDIR /usr/local/gcc + +CMD ["./bin/gcc", "--help"] \ No newline at end of file diff --git a/Others/gcc/README.md b/Others/gcc/README.md index d09c617d..c788bec5 100644 --- a/Others/gcc/README.md +++ b/Others/gcc/README.md @@ -19,6 +19,7 @@ The tag of each `gcc` docker image is consist of the version of `gcc` and the ve | Tag | Currently | Architectures | |----------|-------------|------------------| +|[15.2.0-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile) | gcc 15.2.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[15.1.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/gcc/15.1.0/24.03-lts-sp1/Dockerfile)| GCC 15.1.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | # Usage diff --git a/Others/gcc/doc/image-info.yml b/Others/gcc/doc/image-info.yml index e5f98ba9..2152cb45 100644 --- a/Others/gcc/doc/image-info.yml +++ b/Others/gcc/doc/image-info.yml @@ -11,6 +11,7 @@ tags: | | Tag | Currently | Architectures | |----------|-------------|------------------| + |[15.2.0-oe2403sp2](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/gcc/15.2.0/24.03-lts-sp2/Dockerfile) | gcc 15.2.0 on openEuler 24.03-LTS-SP2 | amd64, arm64 | |[15.1.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/gcc/15.1.0/24.03-lts-sp1/Dockerfile)| GCC 15.1.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | download: | diff --git a/Others/gcc/meta.yml b/Others/gcc/meta.yml index d6b769f0..dc79c082 100644 --- a/Others/gcc/meta.yml +++ b/Others/gcc/meta.yml @@ -2,4 +2,6 @@ path: 15.1.0/24.03-lts-sp1/Dockerfile 15.2.0-oe2403sp1: - path: 15.2.0/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: 15.2.0/24.03-lts-sp1/Dockerfile +15.2.0-oe2403sp2: + path: 15.2.0/24.03-lts-sp2/Dockerfile \ No newline at end of file -- Gitee