[R-SIG-Mac] Warnings installing from source
Simon Urbanek
@|mon@urb@nek @end|ng |rom R-project@org
Mon Jan 9 20:20:24 CET 2023
Göran,
you can ignore the Fortran warnings, the ones you listed are not related to the code.
As for "undefined dynamic_lookup may not work with chained fixups" the easiest is to run
export MACOSX_DEPLOYMENT_TARGET=11.0
before you compile your package. Alternatively you can add -Wl,-no_fixup_chains to LDFLAGS.
Cheers,
Simon
> On Jan 9, 2023, at 11:57 PM, Göran Broström <gb using ehar.se> wrote:
>
> When running
>
> R CMD INSTALL xxx.tar.gz
>
> I get a lot of warnings, the first being
>
> ld: warning: -undefined dynamic_lookup may not work with chained fixups
>
> followed by several of the type
>
> ld: warning: could not create compact unwind for _yyy_: registers 72 and 73 not saved contiguously in frame
>
> where 'yyy' stands for names of fortran functions/subroutines in the package xxx.
>
> I have installed the usual tools, including gfortran, from
> https://mac.r-project.org/tools/
>
> The C compiler is clang (14.0.0), for reasons I have forgotten.
>
> However, the package loads an runs as usual(?), so I wonder what I should do about it? Nothing? But what do the warnings mean?
>
> Thanks, Göran
>
> PS. No warnings on Ubuntu.
>
> > sessionInfo()
> R version 4.2.2 (2022-10-31)
> Platform: aarch64-apple-darwin20 (64-bit)
> Running under: macOS Ventura 13.0.1
>
> Matrix products: default
> BLAS: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib
> LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib
>
> locale:
> [1] sv_SE.UTF-8/sv_SE.UTF-8/sv_SE.UTF-8/C/sv_SE.UTF-8/sv_SE.UTF-8
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> loaded via a namespace (and not attached):
> [1] compiler_4.2.2
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
More information about the R-SIG-Mac
mailing list