r-hub / containers

Docker containers for R-hub
https://r-hub.github.io/containers/
15 stars 4 forks source link

gcc-13 container #2

Closed gaborcsardi closed 1 year ago

gaborcsardi commented 1 year ago

This is the current development branch of gcc. Possible ways to get it include:

  1. Compile ourselves. Not very hard with an updated version of https://github.com/docker-library/gcc, and we get a Debian 11 container, which is quite big, unfortunately, as the Dockerfile does not clean up. It takes about an hour on my laptop, so probably about 2 hours on GHA. https://github.com/r-hub/docker-library-gcc/tree/gcc-13
  2. Use Ubuntu 23.04 and this PPA: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test?field.series_filter=lunar It is not clear how often they build their packages. The last build was already 10 days ago, so it seems unlikely that they build the weekly snapshots.
  3. Use Fedora rawhide (as 38), which has gcc-13 already. Seems like they build it frequently. https://packages.fedoraproject.org/pkgs/gcc/gcc/fedora-rawhide.html
  4. Use Fedora 36, and install the gcc-13 packages on it from rawhide. It goes like this:
    dnf install fedora-repos-rawhide -y
    dnf --disablerepo=* --enablerepo=rawhide  --releasever=38 install gcc g++ gfortran

I am leaning towards 4., as we get updates easily, and the process probably generalizes to newer gcc updates. It does mean that we need system requirements support on Fedora, and that we won't have package binaries.

gaborcsardi commented 1 year ago
  1. does not work on x86_64, the gcc-13 package is not compatible with Fedora 36 any more, it seems. So 3 it is, rather.
gaborcsardi commented 1 year ago

Working well, we can close this issue.