tylermorganwall / rayshader

R Package for 2D and 3D mapping and data visualization
https://www.rayshader.com/
2.05k stars 211 forks source link

Install failure #120

Closed jzadra closed 4 years ago

jzadra commented 4 years ago
> devtools::install_github("tylermorganwall/rayshader")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo tylermorganwall/rayshader@master
✓  checking for file ‘/private/var/folders/5_/l71sk6kn29z17n011g8kld5m0000gp/T/RtmpOVsjZc/remotese5de32d430f5/tylermorganwall-rayshader-a9e5898/DESCRIPTION’ ...
─  preparing ‘rayshader’:
✓  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Removed empty directory ‘rayshader/tools’
─  building ‘rayshader_0.19.1.tar.gz’

* installing *source* package ‘rayshader’ ...
** using staged installation
** libs
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c bilineargrid.cpp -o bilineargrid.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c calculate_normal.cpp -o calculate_normal.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c construct_matrix.cpp -o construct_matrix.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c find_groups.cpp -o find_groups.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c interpolate_color.cpp -o interpolate_color.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c lambshade.cpp -o lambshade.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c make_base_cpp.cpp -o make_base_cpp.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c pointspread.cpp -o pointspread.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c rayshade.cpp -o rayshade.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/progress/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include   -fPIC  -Wall -g -O2  -c rayshade_multicore.cpp -o rayshade_multicore.o
/usr/local/Cellar/gcc/9.3.0/bin/g++-9 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/Cellar/gcc/9.3.0/lib -o rayshader.so RcppExports.o bilineargrid.o calculate_normal.o construct_matrix.o find_groups.o interpolate_color.o lambshade.o make_base_cpp.o pointspread.o rayshade.o rayshade_multicore.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-rayshader/00new/rayshader/libs
** R
** data
*** moving datasets to lazyload DB
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
sh: line 1: 73475 Abort trap: 6           R_TESTS= '/Library/Frameworks/R.framework/Resources/bin/R' --no-save --no-restore --no-echo 2>&1 < '/var/folders/5_/l71sk6kn29z17n011g8kld5m0000gp/T//Rtmp8nRpM5/file11ea62c33f50'
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rayshader’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/rayshader’
Error: Failed to install 'rayshader' from GitHub:
  (converted from warning) installation of package ‘/var/folders/5_/l71sk6kn29z17n011g8kld5m0000gp/T//RtmpOVsjZc/filee5de8da3ee5/rayshader_0.19.1.tar.gz’ had non-zero exit status

session_info():


─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value                       
 version  R version 4.0.2 (2020-06-22)
 os       macOS Catalina 10.15.5      
 system   x86_64, darwin17.0          
 ui       RStudio                     
 language (EN)                        
 collate  en_US.UTF-8                 
 ctype    en_US.UTF-8                 
 tz       America/Denver              
 date     2020-07-16                  

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────
 package          * version    date       lib source                                         
 assertthat         0.2.1      2019-03-21 [1] CRAN (R 4.0.2)                                 
 backports          1.1.8      2020-06-17 [1] CRAN (R 4.0.2)                                 
 base64enc          0.1-3      2015-07-28 [1] CRAN (R 4.0.2)                                 
 blob               1.2.1      2020-01-20 [1] CRAN (R 4.0.2)                                 
 broom              0.7.0      2020-07-09 [1] CRAN (R 4.0.2)                                 
 callr              3.4.3      2020-03-28 [1] CRAN (R 4.0.2)                                 
 cellranger         1.1.0      2016-07-27 [1] CRAN (R 4.0.2)                                 
 cli                2.0.2      2020-02-28 [1] CRAN (R 4.0.2)                                 
 clipr              0.7.0      2019-07-23 [1] CRAN (R 4.0.2)                                 
 codetools          0.2-16     2018-12-24 [1] CRAN (R 4.0.2)                                 
 colorspace         1.4-1      2019-03-18 [1] CRAN (R 4.0.2)                                 
 crayon             1.3.4      2017-09-16 [1] CRAN (R 4.0.2)                                 
 crosstalk          1.1.0.1    2020-03-13 [1] CRAN (R 4.0.2)                                 
 curl               4.3        2019-12-02 [1] CRAN (R 4.0.1)                                 
 data.table         1.12.8     2019-12-09 [1] CRAN (R 4.0.1)                                 
 DBI                1.1.0      2019-12-15 [1] CRAN (R 4.0.2)                                 
 dbplyr             1.4.4      2020-05-27 [1] CRAN (R 4.0.1)                                 
 desc               1.2.0      2018-05-01 [1] CRAN (R 4.0.2)                                 
 devtools         * 2.3.0      2020-04-10 [1] CRAN (R 4.0.1)                                 
 digest             0.6.25     2020-02-23 [1] CRAN (R 4.0.2)                                 
 doParallel         1.0.15     2019-08-02 [1] CRAN (R 4.0.2)                                 
 dplyr            * 1.0.0      2020-05-29 [1] CRAN (R 4.0.1)                                 
 ellipsis           0.3.1      2020-05-15 [1] CRAN (R 4.0.2)                                 
 evaluate           0.14       2019-05-28 [1] CRAN (R 4.0.1)                                 
 fansi              0.4.1      2020-01-08 [1] CRAN (R 4.0.2)                                 
 farver             2.0.3      2020-01-16 [1] CRAN (R 4.0.2)                                 
 fastmap            1.0.1      2019-10-08 [1] CRAN (R 4.0.2)                                 
 forcats          * 0.5.0      2020-03-01 [1] CRAN (R 4.0.2)                                 
 foreach            1.5.0      2020-03-30 [1] CRAN (R 4.0.2)                                 
 fs               * 1.4.2      2020-06-30 [1] CRAN (R 4.0.2)                                 
 generics           0.0.2      2018-11-29 [1] CRAN (R 4.0.2)                                 
 ggplot2          * 3.3.2      2020-06-19 [1] CRAN (R 4.0.1)                                 
 glue             * 1.4.1      2020-05-13 [1] CRAN (R 4.0.2)                                 
 gridExtra          2.3        2017-09-09 [1] CRAN (R 4.0.2)                                 
 gtable             0.3.0      2019-03-25 [1] CRAN (R 4.0.2)                                 
 haven              2.3.1      2020-06-01 [1] CRAN (R 4.0.1)                                 
 hms                0.5.3      2020-01-08 [1] CRAN (R 4.0.2)                                 
 htmltools          0.5.0      2020-06-16 [1] CRAN (R 4.0.2)                                 
 htmlwidgets        1.5.1      2019-10-08 [1] CRAN (R 4.0.2)                                 
 httpuv             1.5.4      2020-06-06 [1] CRAN (R 4.0.1)                                 
 httr               1.4.1      2019-08-05 [1] CRAN (R 4.0.1)                                 
 iterators          1.0.12     2019-07-26 [1] CRAN (R 4.0.2)                                 
 janitor          * 2.0.1      2020-04-12 [1] CRAN (R 4.0.1)                                 
 jsonlite           1.7.0      2020-06-25 [1] CRAN (R 4.0.2)                                 
 knitr            * 1.29       2020-06-23 [1] CRAN (R 4.0.2)                                 
 labeling           0.3        2014-08-23 [1] CRAN (R 4.0.2)                                 
 later              1.1.0.1    2020-06-05 [1] CRAN (R 4.0.2)                                 
 lattice            0.20-41    2020-04-02 [1] CRAN (R 4.0.2)                                 
 lazyeval           0.2.2      2019-03-15 [1] CRAN (R 4.0.2)                                 
 lifecycle          0.2.0      2020-03-06 [1] CRAN (R 4.0.2)                                 
 lubridate        * 1.7.9      2020-06-08 [1] CRAN (R 4.0.2)                                 
 magrittr           1.5        2014-11-22 [1] CRAN (R 4.0.2)                                 
 manipulateWidget   0.10.1     2020-02-24 [1] CRAN (R 4.0.1)                                 
 memoise            1.1.0      2017-04-21 [1] CRAN (R 4.0.2)                                 
 mime               0.9        2020-02-04 [1] CRAN (R 4.0.2)                                 
 miniUI             0.1.1.1    2018-05-18 [1] CRAN (R 4.0.1)                                 
 modelr             0.1.8      2020-05-19 [1] CRAN (R 4.0.1)                                 
 munsell            0.5.0      2018-06-12 [1] CRAN (R 4.0.2)                                 
 naniar           * 0.5.2      2020-06-29 [1] CRAN (R 4.0.2)                                 
 packrat            0.5.0      2018-11-14 [1] CRAN (R 4.0.2)                                 
 patchwork          1.0.1      2020-06-22 [1] CRAN (R 4.0.1)                                 
 pillar             1.4.6      2020-07-10 [1] CRAN (R 4.0.2)                                 
 pkgbuild           1.1.0      2020-07-13 [1] CRAN (R 4.0.2)                                 
 pkgconfig          2.0.3      2019-09-22 [1] CRAN (R 4.0.2)                                 
 pkgload            1.1.0      2020-05-29 [1] CRAN (R 4.0.1)                                 
 plotly             4.9.2.1    2020-04-04 [1] CRAN (R 4.0.1)                                 
 png                0.1-7      2013-12-03 [1] CRAN (R 4.0.2)                                 
 prettyunits        1.1.1      2020-01-24 [1] CRAN (R 4.0.2)                                 
 processx           3.4.3      2020-07-05 [1] CRAN (R 4.0.2)                                 
 progress           1.2.2      2019-05-16 [1] CRAN (R 4.0.2)                                 
 promises           1.1.1      2020-06-09 [1] CRAN (R 4.0.2)                                 
 ps                 1.3.3      2020-05-08 [1] CRAN (R 4.0.2)                                 
 purrr            * 0.3.4      2020-04-17 [1] CRAN (R 4.0.2)                                 
 R6                 2.4.1      2019-11-12 [1] CRAN (R 4.0.2)                                 
 raster             3.3-7      2020-06-27 [1] CRAN (R 4.0.2)                                 
 Rcpp               1.0.5      2020-07-06 [1] CRAN (R 4.0.2)                                 
 readr            * 1.3.1      2018-12-21 [1] CRAN (R 4.0.1)                                 
 readxl           * 1.3.1      2019-03-13 [1] CRAN (R 4.0.1)                                 
 remotes            2.1.1      2020-02-15 [1] CRAN (R 4.0.2)                                 
 repr               1.1.0      2020-01-28 [1] CRAN (R 4.0.2)                                 
 reprex             0.3.0      2019-05-16 [1] CRAN (R 4.0.2)                                 
 rgl                0.100.54   2020-04-14 [1] CRAN (R 4.0.1)                                 
 rlang              0.4.7      2020-07-09 [1] CRAN (R 4.0.2)                                 
 rmarkdown        * 2.3        2020-06-18 [1] CRAN (R 4.0.2)                                 
 rprojroot          1.3-2      2018-01-03 [1] CRAN (R 4.0.2)                                 
 rstudioapi         0.11       2020-02-07 [1] CRAN (R 4.0.2)                                 
 rvest              0.3.5      2019-11-08 [1] CRAN (R 4.0.1)                                 
 scales             1.1.1      2020-05-11 [1] CRAN (R 4.0.2)                                 
 sessioninfo        1.1.1      2018-11-05 [1] CRAN (R 4.0.2)                                 
 shiny              1.5.0      2020-06-23 [1] CRAN (R 4.0.1)                                 
 siverse          * 0.0.2.9001 2020-07-16 [1] Github (Sorenson-Impact/siverse@98bd446)       
 skimr            * 2.1.2      2020-07-06 [1] CRAN (R 4.0.2)                                 
 snakecase          0.11.0     2019-05-25 [1] CRAN (R 4.0.2)                                 
 sorensonimpact   * 0.0.1.9033 2020-07-16 [1] Github (Sorenson-Impact/sorensonimpact@7f7af62)
 sp                 1.4-2      2020-05-20 [1] CRAN (R 4.0.2)                                 
 stringi            1.4.6      2020-02-17 [1] CRAN (R 4.0.2)                                 
 stringr          * 1.4.0      2019-02-10 [1] CRAN (R 4.0.2)                                 
 testthat         * 2.3.2      2020-03-02 [1] CRAN (R 4.0.1)                                 
 tibble           * 3.0.3      2020-07-10 [1] CRAN (R 4.0.2)                                 
 tidyr            * 1.1.0      2020-05-20 [1] CRAN (R 4.0.1)                                 
 tidyselect         1.1.0      2020-05-11 [1] CRAN (R 4.0.2)                                 
 tidyverse        * 1.3.0      2019-11-21 [1] CRAN (R 4.0.1)                                 
 usethis          * 1.6.1      2020-04-29 [1] CRAN (R 4.0.1)                                 
 vctrs              0.3.2      2020-07-15 [1] CRAN (R 4.0.2)                                 
 viridis          * 0.5.1      2018-03-29 [1] CRAN (R 4.0.1)                                 
 viridisLite      * 0.3.0      2018-02-01 [1] CRAN (R 4.0.1)                                 
 visdat           * 0.5.3      2019-02-15 [1] CRAN (R 4.0.1)                                 
 webshot            0.5.2      2019-11-22 [1] CRAN (R 4.0.2)                                 
 withr              2.2.0      2020-04-20 [1] CRAN (R 4.0.2)                                 
 xfun               0.15       2020-06-21 [1] CRAN (R 4.0.2)                                 
 xml2               1.3.2      2020-04-23 [1] CRAN (R 4.0.2)                                 
 xtable             1.8-4      2019-04-21 [1] CRAN (R 4.0.2)                                 
 yaml               2.2.1      2020-02-01 [1] CRAN (R 4.0.2)                                 

[1] /Library/Frameworks/R.framework/Versions/4.0/Resources/library
tylermorganwall commented 4 years ago

Try updating your brew installs and see if that fixes it. You're also using g++ 9.3.0 to compile the package, while I believe R 4.0.x only supports as far as g++ 8.3.0 (although you could try building R yourself using 9.3.0 and see if it links then). You can adjust the compiler option in the /.R/Makeconf file.

jzadra commented 4 years ago

Thanks for the info. I updated all my brew installs, and also installed gcc 8.4.0 (8.3.0 does not appear to be available any more). I'm still getting the same problem. I'm finding issues with other source compiles as well (though different issues). Clearly this is not a rayshader issue so I'll pursue it elsewhere. Thanks!