I suggest that you go get the Fedora 40 or rawhide rpm packages already built and updated. Just went search for Fedora repositories.
On Sat, Sep 21, 2024, 12:42 AM Patrick Begou < patrick.be...@univ-grenoble-alpes.fr> wrote: > Hi all, > > this is a marginal question but I would like to build a rpm package of gnu > compilers (gcc, g++ and gfortran) built from the git repo to propagate the > latest version on my cluster nodes. My goal is to deploy in > /opt/GCC14/compilers/14.2.0 (as under /opt/GCC14 I will have to deploy also > some tools like OpenMPI for this compiler version) and use environment > Module to select the desired version. > > I'm able to do this with a tar.gz archive of the binaries that I can > propagate but a rpm package would be easier (or faster) to manage with > ansible. But I'm stuck for several days on this subject. Many software > provides spec files or "buildrm.sh" scripts (slurm, pmix...) and may be > some contributors or GCC users have yet done this successfully. I found > some src rpm packages but for other distributions (not el9) and I wasn't > able to use (and modify) their spec file. > > Default gcc in el9 is only 11.4.1. > > Thanks > > Patrick > >