[R-SIG-Mac] Trouble compiling packages in R

Jarrett Phillips ph||||p@j@rrett1 @end|ng |rom gm@||@com
Wed Jan 26 05:43:07 CET 2022


Hi All,
I am new to the list and am running RStudio Version 1.4.1717 on macOS Big
Sur 11.4 and have R 4.1.1 installed.

I just re-installed Xcode as well as Command Line Tools via instructions at
https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/

I am attempting to build my package using devtools::build I have verified
that both Rcpp and RcppArmadillo are working properly.

However, when I build, I get the following error message

 Error: package or namespace load failed for ‘HACSim’ in dyn.load(file,
DLLpath = DLLpath, ...):
    unable to load shared object
'/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/00LOCK-HACSim/00new/HACSim/libs/HACSim.so':

 dlopen(/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/00LOCK-HACSim/00new/HACSim/libs/HACSim.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
─  removing
‘/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/HACSim’
         -----------------------------------
   ERROR: package installation failed
Error in (function (command = NULL, args = character(), error_on_status =
TRUE,  :
  System command 'R' failed, exit status: 1, stdout + stderr (last 10
lines):
E>
dlopen(/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/00LOCK-HACSim/00new/HACSim/libs/HACSim.so,
6): Symbol not found: ___addtf3
E>   Referenced from: /usr/local/lib/libquadmath.0.dylib
E>   Expected in: /usr/local/lib/libgcc_s_x86_64.1.dylib
E>  in /usr/local/lib/libquadmath.0.dylib
E> Error: loading failed
E> Execution halted
E> ERROR: loading failed
E> * removing
‘/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/HACSim’
E>       -----------------------------------
E> ERROR: package installation failed
Type .Last.error.trace to see where the error occurred

Here is the traceback:

Stack trace:

 1. devtools:::build("HACSim_OO")
 2. pkgbuild::build(path = pkg, dest_path = path, binary = binary,  ...
 3. withr::with_temp_libpaths(rcmd_build_tools(options$cmd, c(options$path,
 ...
 4. base:::force(code)
 5. pkgbuild:::rcmd_build_tools(options$cmd, c(options$path, options$args),
 ...
 6. pkgbuild:::with_build_tools(callr::rcmd_safe(..., env = env,  ...
 7. callr::rcmd_safe(..., env = env, spinner = FALSE, show = FALSE,  ...
 8. callr:::run_r(options)
 9. base:::with(options, with_envvar(env, do.call(processx::run,  ...
 10. base:::with.default(options, with_envvar(env, do.call(processx::run,
 ...
 11. base:::eval(substitute(expr), data, enclos = parent.frame())
 12. base:::eval(substitute(expr), data, enclos = parent.frame())
 13. callr:::with_envvar(env, do.call(processx::run, c(list(bin, args =
real_c ...
 14. base:::force(code)
 15. base:::do.call(processx::run, c(list(bin, args = real_cmdargs,  ...
 16. (function (command = NULL, args = character(), error_on_status = TRUE,
 ...
 17. throw(new_process_error(res, call = sys.call(), echo = echo,  ...

 x System command 'R' failed, exit status: 1, stdout + stderr (last 10
lines):
E>
dlopen(/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/00LOCK-HACSim/00new/HACSim/libs/HACSim.so,
6): Symbol not found: ___addtf3
E>   Referenced from: /usr/local/lib/libquadmath.0.dylib
E>   Expected in: /usr/local/lib/libgcc_s_x86_64.1.dylib
E>  in /usr/local/lib/libquadmath.0.dylib
E> Error: loading failed
E> Execution halted
E> ERROR: loading failed
E> * removing
‘/private/var/folders/wv/4_z4h7ns57g7qvd600qgd__w0000gn/T/RtmpGe2Cqt/Rinst118e1e9f13a0/HACSim’
E>       -----------------------------------
E> ERROR: package installation failed


Any ideas?

Any assistance is warmly welcomed and greatly appreciated.

Cheers,

Jarrett

	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list