From |uc@r @end|ng |rom |edor@project@org  Sat May  1 11:15:35 2021
From: |uc@r @end|ng |rom |edor@project@org (=?UTF-8?Q?I=C3=B1aki_Ucar?=)
Date: Sat, 1 May 2021 11:15:35 +0200
Subject: [Rd] R compilation on old(ish) CentOS
In-Reply-To: <CAFDcVCTRLWpan0emJd_Ri1-iUhoxQVA_8p8+WQ2HZa86bP3Tfw@mail.gmail.com>
References: <1ae5a21f-a74e-b532-1359-a55856d4f365@gmail.com>
 <1E8063DB-0F65-49CF-8D63-C6786D9BB880@gmail.com>
 <CAFDcVCTRLWpan0emJd_Ri1-iUhoxQVA_8p8+WQ2HZa86bP3Tfw@mail.gmail.com>
Message-ID: <CALEXWq3vufK7yrB2mwYYaDD-yB-jkt9MnVGMs-gY4yHzO-ugBw@mail.gmail.com>

On Sat, 1 May 2021 at 03:41, Henrik Bengtsson
<henrik.bengtsson at gmail.com> wrote:
>
> Ben, it's most like what Peter says.  I can confirm it works; I just
> installed https://cran.r-project.org/src/base-prerelease/R-latest.tar.gz
> on an up-to-date CentOS 7.9.2009 system using the vanilla gcc (GCC)
> 4.8.5 that comes with that version and R compiles just fine and it
> passes 'make check' too.

It's not that you can't compile R with gcc 4.8.5, it's that you'll
have a hard time installing many packages. And that's why EPEL 7 has R
3.6 and cannot be updated to 4.

> Since R is trying to move toward C++14 support by default, I agree
> with I?aki, you might wanr to build and run R with a newer version of
> gcc.  gcc 4.8.5 will only give you C++11 support.  RedHat's Software
> Collections (SCL) devtoolset:s is the easiest way to do this. I've
> done this too and can confirm that gcc 7.3.1 that comes with SCL
> devtoolset/7 is sufficient to get C++14 support.  I'm sharing my
> installation with lots of users, so I'm make it all transparent to the
> end-user with environment modules, i.e. 'module load r/4.1.0' is all
> the user needs to know.

--
I?aki ?car



[Rd] R compilation on old(ish) CentOS
=?UTF-8?Q?I=C3=B1aki_Ucar?=