[Rcpp-devel] Package does not compile on MAC when running R-CMD-check github action

Simon Zehnder simon.zehnder at googlemail.com
Sun Nov 7 12:41:04 CET 2021


Hi everyone,

I have a problem with the compilation of a package on MacOS when running
the R-CDM-check github action. On all other platforms the package compiles,
but on MacOS.

I get a problem with the shared library on MacOS:

 OE> Error: package or namespace load failed for ‘finmix’ in dyn.load(file,
DLLpath = DLLpath, ...):
  OE>  unable to load shared object
'/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpYiig6P/pkg-libc181f84f0aa/finmix/libs/finmix.so':
  OE>
dlopen(/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpYiig6P/pkg-libc181f84f0aa/finmix/libs/finmix.so,
6): Symbol not found: __ZTT13ParStudentInd
  OE>   Referenced from:
/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpYiig6P/pkg-libc181f84f0aa/finmix/libs/finmix.so
  OE>   Expected in: flat namespace
  OE>  in
/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpYiig6P/pkg-libc181f84f0aa/finmix/libs/finmix.so
  OE> Error: loading failed
  OE> Execution halted
  OE> ERROR: loading failed
  OE> * removing
‘/private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpYiig6P/pkg-libc181f84f0aa/finmix’

Here is the link to the package on github (the documentation branch):
https://github.com/simonsays1980/finmix/tree/documentation

I suspect that the reason might be somewhere in the Makevars. Has anyone
encountered a similar error when running the R-CMD-check github action on
his/her package? What might be the reason for this behavior?

I am thankful for any hint.

Best,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20211107/bb03ff51/attachment.html>


More information about the Rcpp-devel mailing list