[R] Option "-shared" not being passed to gcc when installing packages

Simon Knapp @|eep|ngwe|| @end|ng |rom gm@||@com
Fri Sep 22 00:41:34 CEST 2023


Thanks Ivan.

I do have things in /etc/R. I have copied all files in /etc/R them out of a
freshly pulled r-base:latest docker container. This seems to have worked.
Thank you!

How would I generally replace those or get them updated when installing a
new version of version of R (which I do using R apt package repo)?

Thanks again,
Simon



On Thu, 21 Sept 2023 at 17:09, Ivan Krylov <krylov.r00t using gmail.com> wrote:

> On Thu, 21 Sep 2023 10:09:56 +1000
> Simon Knapp <sleepingwell using gmail.com> wrote:
>
> > I am using R version 4.3.1 (2023-06-16) -- "Beagle Scouts" on ubuntu
> > 20.04
>
> > gcc -std=gnu99 -I"/usr/share/R/include" -DNDEBUG    -fopenmp -fpic
> > -g -O2 -fdebug-prefix-map=/build/r-base-jbaK_j/r-base-3.6.3=.
>
> It seems to be picking up compiler flags from a much older version of
> R. Do you have anything in ~/.R/Makevars*? What about /etc/R/Make*?
>
> https://cran.r-project.org/doc/manuals/R-admin.html#Customizing-package-compilation
>
> --
> Best regards,
> Ivan
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list