[R-SIG-Mac] compilation problem

Prof Brian Ripley r|p|ey @end|ng |rom @t@t@@ox@@c@uk
Mon May 9 11:12:01 CEST 2022


On 09/05/2022 09:27, Kenneth Knoblauch wrote:
> Hi,
> 
> When compiling packages with C/Fortran code, I'm frequently getting the
> following sort of error at the stage of testing if package can be installed
> from temporary location:
> 
> ** testing if installed package can be loaded from temporary location
> Error: package or namespace load failed for 'akima' in dyn.load(file,
> DLLpath = DLLpath, ...):
> unable to load shared object
> '/Users/ken/Library/R/x86_64/4.2/library/00LOCK-akima/00new/akima/libs/akima.so': 
> 
> dlopen(/Users/ken/Library/R/x86_64/4.2/library/00LOCK-akima/00new/akima/libs/akima.so, 
> 
> 6): Symbol not found: ___addtf3
> Referenced from: /usr/local/lib/libquadmath.0.dylib
> Expected in: /usr/local/lib/libgcc_s_x86_64.1.dylib
> in /usr/local/lib/libquadmath.0.dylib
> Error: loading failed
> Execution halted
> ERROR: loading failed
> 
> Any suggestions about how to fix this?  If it is a PATH problem, how do 
> I set that so that it is correct when I start up R?

Can you start by telling us which Fortran compiler you have installed 
(the manual mentions several), and where 
/usr/local/lib/libquadmath.0.dylib came from?  AFAIK all the recommended 
compilers install it in /usr/local/gfortran/lib.

I'd try moving /usr/local/lib/libquadmath.0.dylib aside (and any other 
libs that look like those in /usr/local/gfortran/lib).

> 
> Thank you.
> 
> best,
> 
> Ken
> 
>> sessionInfo()
> R version 4.2.0 (2022-04-22)
> Platform: x86_64-apple-darwin17.0 (64-bit)
> Running under: macOS Catalina 10.15.7
> 
> Matrix products: default
> BLAS:
> /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRblas.0.dylib
> LAPACK:
> /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
> 
> 
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
> 
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
> 
> loaded via a namespace (and not attached):
> [1] compiler_4.2.0 tools_4.2.0
> 
>> Sys.getenv()
>   .
>   .
>   .
> PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
>   .
>   .
>   .
> 
> 


-- 
Brian D. Ripley,                  ripley using stats.ox.ac.uk
Emeritus Professor of Applied Statistics, University of Oxford



More information about the R-SIG-Mac mailing list