0

According to OL-PRODUCT-LIFECYCLE.pdf , Table 2-6, GCC-Toolset 15 is available in application stream of Oracle Linux 8.10 .

However, dnf install gcc-toolset-15 fails.

It can be reproduced in a docker container with Dockerfile like this:

FROM oraclelinux:8.10

RUN dnf install gcc-toolset-15

ENTRYPOINT ["/bin/bash"]

And and docker build command

docker build -t gcc-docker .

It fails to find gcc-toolset-15 with below error message. However, if I replace it with gcc-toolset-14 , it works fine.

How should I install GCC Toolset 15 to Oracle Linux 8.10 ?

Thanks.

Building 46.6s (5/5) FINISHED docker:default
[internal] load build definition from Dockerfile 0.0s
transferring dockerfile: 177B 0.0s
[internal] load metadata for docker.io/library/oraclelinux:8.10 2.0s
[internal] load .dockerignore 0.0s
transferring context: 2B 0.0s
CACHED [1/2] FROM docker.io/library/oraclelinux:8.10@sha256:27d980babfa4742ea97e189b781fff41a18ebc7db4e5de316152338858a34b9e 0.0s
ERROR [2/2] RUN dnf install gcc-toolset-15 44.5s
# > ------
[2/2] RUN dnf install gcc-toolset-15:
11.11 Oracle Linux 8 BaseOS Latest (x86_64) 11 MB/s | 115 MB 00:10
31.72 Oracle Linux 8 Application Stream (x86_64) 10 MB/s | 73 MB 00:07
41.43 Last metadata expiration check: 0:00:14 ago on Thu Oct 2 09:18:37 2025.
44.32 No match for argument: gcc-toolset-15
44.39 Error: Unable to find a match: gcc-toolset-15
# > ------
Dockerfile:3
# > --------------------
1 | FROM oraclelinux:8.10
2 |
3 | >>> RUN dnf install gcc-toolset-15
4 |
5 | ENTRYPOINT ["/bin/bash"]
# > --------------------
ERROR: failed to solve: process "/bin/sh -c dnf install gcc-toolset-15" did not complete successfully: exit code: 1

1 Answer 1

0

I tried different ways but looks like 8.10 does not have gcc15 even that PDF say it is supported, maybe it is supported in the real installation(non-docker version), anyway in order to have gcc15 in docker 8.10 version you can use below docker file

FROM oraclelinux:8.10

# Install build dependencies
RUN dnf -y groupinstall "Development Tools" \
    && dnf -y install wget tar bzip2 gcc-c++ gmp-devel mpfr-devel libmpc-devel zlib-devel

# Set GCC version
ENV GCC_VERSION=15.1.0
ENV GCC_PREFIX=/opt/gcc-${GCC_VERSION}
ENV PATH=${GCC_PREFIX}/bin:$PATH

# Download and build GCC
RUN mkdir -p /tmp/gcc-src \
    && cd /tmp/gcc-src \
    && wget https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.gz \
    && tar -xzf gcc-${GCC_VERSION}.tar.gz \
    && cd gcc-${GCC_VERSION} \
    && ./contrib/download_prerequisites \
    && mkdir build && cd build \
    && ../configure --prefix=${GCC_PREFIX} --enable-languages=c,c++ --disable-multilib \
    && make -j$(nproc) \
    && make install \
    && cd / && rm -rf /tmp/gcc-src

# Verify installation
RUN gcc --version

ENTRYPOINT ["/bin/bash"]

after build

ozkan@ozkan-debian:~/tmp/oracletest$ docker run -it gcc-docker
[root@6ee86999623c /]# gcc --version
gcc (GCC) 15.1.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@6ee86999623c /]# exit

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.