Skip to content

ubuntu-gcc12 update gcc? #98

@jonkeane

Description

@jonkeane

On the website it is noted that ubuntu-gcc12 is equivalent to r-devel-linux-x86_64-debian-gcc, but looking at https://cran.r-project.org/web/checks/check_flavors.html it looks like r-devel-linux-x86_64-debian-gcc is on GCC 15 these days.

I suspect it might be "just" updating

# ------------------------------------------------------------------------------------
# gcc 12, gfortran 12
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update -y && \
apt-get install -y gcc-12 g++-12 gfortran-12 && \
apt-get clean
# We do not replace -lgfortran!
RUN sed -i 's/gcc/gcc-12/g' /opt/R/devel/lib/R/etc/Makeconf && \
sed -i 's/g[+][+]/g++-12/g' /opt/R/devel/lib/R/etc/Makeconf && \
sed -i 's/\bgfortran/gfortran-12/g' /opt/R/devel/lib/R/etc/Makeconf
Or maybe it makes sense to make a separate ubuntu-gcc15?

I'm happy to give that a go if you're open to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions