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

2023-09-22 Thread Ivan Krylov
On Fri, 22 Sep 2023 08:41:34 +1000 Simon Knapp wrote: > 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)? Normally, the configuration files belonging to a package get an option to be updated when the p

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

2023-09-21 Thread Simon Knapp
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 a

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

2023-09-21 Thread Ivan Krylov
On Thu, 21 Sep 2023 10:09:56 +1000 Simon Knapp 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 com

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

2023-09-20 Thread Simon Knapp
When installing packages, the option "-shared" is not being passed to gcc which hence fails, complaining that it cannot find main. When installing "mgcv", for example, I get the output listed below, in which the last call to gcc should contain the option "-shared". This problem occurs for all of s