openrouteservice-r
openrouteservice-r copied to clipboard
Cannot build binary package on macOS Big Sur
I tried to build binary package on macOS Big Sure but it fails as follows:
macOS Big Sur (not M1 Chip but Intel Chip)
==> devtools::build(binary = TRUE, args = c('--preclean'))
─ installing to library ‘/private/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T/RtmpMwEEyZ/temp_libpath26114b6d6c2a’
─ installing *source* package ‘openrouteservice’ ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
sh: line 1: 9766 Killed: 9 R_TESTS= '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --no-restore --no-echo 2>&1 < '/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T//RtmpBBs7mu/file261f469d4ad3'
ERROR: lazy loading failed for package ‘openrouteservice’
─ removing ‘/private/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T/RtmpMwEEyZ/temp_libpath26114b6d6c2a/openrouteservice’
Error: System command 'R' failed, exit status: 1, stdout + stderr:
E> * installing to library ‘/private/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T/RtmpMwEEyZ/temp_libpath26114b6d6c2a’
E> * installing *source* package ‘openrouteservice’ ...
E> ** using staged installation
E> ** R
E> ** inst
E> ** byte-compile and prepare package for lazy loading
E> sh: line 1: 9766 Killed: 9 R_TESTS= '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --no-restore --no-echo 2>&1 < '/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T//RtmpBBs7mu/file261f469d4ad3'
E> ERROR: lazy loading failed for package ‘openrouteservice’
E> * removing ‘/private/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T/RtmpMwEEyZ/temp_libpath26114b6d6c2a/openrouteservice’
Stack trace:
1. devtools::build(binary = TRUE, args = c("--preclean"))
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_cmd ...
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:
E> * installing to library ‘/private/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T/RtmpMwEEyZ/temp_libpath26114b6d6c2a’
E> * installing *source* package ‘openrouteservice’ ...
E> ** using staged installation
E> ** R
E> ** inst
E> ** byte-compile and prepare package for lazy loading
E> sh: line 1: 9766 Killed: 9 R_TESTS= '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --no-restore --no-echo 2>&1 < '/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T//RtmpBBs7mu/file261f469d4ad3'
E> ERROR: lazy loading failed for package ‘openrouteservice’
E> * removing ‘/private/var/folders/m9/7w8jqtzj7xngg_8xw980z15c0000gn/T/RtmpMwEEyZ/temp_libpath26114b6d6c2a/openrouteservice’
Execution halted
Exited with status 1.
> Sys.info()
sysname
"Darwin"
release
"20.2.0"
version
"Darwin Kernel Version 20.2.0: Wed Dec 2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64"
nodename
"hidekoji-mbp.local"
machine
"x86_64"
login
"root"
user
"hidetakakojima"
effective_user
"hidetakakojima"
>
Hi!
Sorry for the late reply. Did you manage to solve the problem or get some more insights in the meantime?
Unfortunately I don't have access to Big Sur and I was unable to reproduce the issue on earlier macOS versions. Furthermore, the package does not contain any code that requires compilation, so I'm not sure what could be going wrong. Are you at least able to install the package?
Cheers, Andrzej