-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault error while installing raster on macOS #63
Comments
Same here with the CRAN or the development version. No solution ? installing to /Users/marcgirondot/Library/R/3.6/library/00LOCK-raster/00new/raster/libs *** caught segfault *** Traceback:
|
I have uninstalled R, all the libraries, Rstudio and the .R and .rstudio hidden directories. I have installed again a fresh R 3.6.2 and raster package (from binary): No more segfault when the package is loaded I try with the 3.0-10 from GitHub installed from source... and no problem ! |
Thanks for the update! I have been able to install on mac, and not been able to reproduce this problem. It seems painful to have to reinstall everything, but at least it is great if that make things work. |
Also getting a segfault when install 3.0-12 from source on macOS using gcc-9: Details
|
It seems that a fresh install of R solves this |
@rhijmans I just did a fresh install of R (3.6.3) and it did not solve the segfault error for me (mac OS 10.15.4). Raster package installs without error, but R dies when I try to load:
*** caught segfault *** FWIW, the issue started yesterday after trying to install the canopyLazR package from github (https://github.com/akamoske/canopyLazR), which produced a segfault error on install. |
@fitzLab-AL Did you install R via homebrew or the official installer? (latter is recommended) Do you have anything in |
@pat-s Thanks for your reply. I did NOT use homebrew to install. I understand doing so can sometimes causes other issues. I think my Makevars might be a bit of a mess (I made recent changes to try to get maxent to run in R): LLVM_LOC = /usr/local/opt/llvm CC=/usr/local/Cellar/gcc/9.3.0/bin/gcc-9 |
@pat-s I tried the the clang7 compiler from https://github.com/rmacoslib/r-macos-rtools & no luck with that either. |
Finally got it to work. Steps I followed:
|
That was probably it - Rcpp and all subsequent packages that make use of it need to be compiled with the same compiler. In general its more safe to use clang7 or, for R 4.0, Apples system clang than gcc (due to differences in their libstdc+ implementations). To prevent further issues you might want to use the 10.13 SDK (10.15 causes lots of issues) and add |
For anyone experiencing this issue and trying to find the source of it. Or even better, wanting to avoid it. I had the same issue as I switched compiler at some point (don't judge please), re-installed Rcpp and then all packages previously installed that make use of it broke. |
I'm getting a segfault error installing raster on macOS.
Last working version is raster_2.5-8.
Session Info
Installation log
The text was updated successfully, but these errors were encountered: