Skip to content
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

difficulty installing the Package kuenm #40

Open
agoodman312 opened this issue Mar 2, 2022 · 1 comment
Open

difficulty installing the Package kuenm #40

agoodman312 opened this issue Mar 2, 2022 · 1 comment

Comments

@agoodman312
Copy link

Hi!

I am having a really difficult time downloading the kuenm r package. When I run the code:

devtools::install_github("marlonecobos/kuenm")

I get a long list of errors

devtools::install_github("marlonecobos/kuenm")
Downloading GitHub repo marlonecobos/kuenm@HEAD
✓ checking for file ‘/private/var/folders/6w/1004hzrn45n92r7q8sqyzsc80000gn/T/Rtmpx5YHJe/remotesa07c283ef826/marlonecobos-kuenm-c19f6bf/DESCRIPTION’ ...
─ preparing ‘kuenm’:
✓ 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
─ building ‘kuenm_1.1.7.tar.gz’

  • installing source package ‘kuenm’ ...
    ** using staged installation
    ** libs
    clang++ -arch arm64 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include' -I/opt/R/arm64/include -fPIC -falign-functions=64 -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
    In file included from RcppExports.cpp:4:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/Rcpp.h:27:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/RcppCommon.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/Rcpp/r/headers.h:62:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:321:9: error: no member named 'signbit' in the global namespace
    using ::signbit;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:322:9: error: no member named 'fpclassify' in the global namespace
    using ::fpclassify;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:323:9: error: no member named 'isfinite' in the global namespace
    using ::isfinite;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:324:9: error: no member named 'isinf' in the global namespace
    using ::isinf;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:325:9: error: no member named 'isnan' in the global namespace
    using ::isnan;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:326:9: error: no member named 'isnormal' in the global namespace
    using ::isnormal;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:327:9: error: no member named 'isgreater' in the global namespace
    using ::isgreater;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:328:9: error: no member named 'isgreaterequal' in the global namespace
    using ::isgreaterequal;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:329:9: error: no member named 'isless' in the global namespace
    using ::isless;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:330:9: error: no member named 'islessequal' in the global namespace
    using ::islessequal;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:331:9: error: no member named 'islessgreater' in the global namespace
    using ::islessgreater;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:332:9: error: no member named 'isunordered' in the global namespace
    using ::isunordered;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:333:9: error: no member named 'isunordered' in the global namespace
    using ::isunordered;
    ~~^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:339:9: error: no member named 'abs' in the global namespace; did you mean 'fabs'?
    using ::abs;
    ~~^
    /usr/local/include/math.h:417:15: note: 'fabs' declared here
    extern double fabs(double);
    ^
    In file included from RcppExports.cpp:4:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/Rcpp.h:27:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/RcppCommon.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/Rcpp/r/headers.h:62:
    In file included from /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:26: error: no template named 'numeric_limits'
    bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:644:60: error: no template named 'numeric_limits'
    bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:18: error: no template named 'numeric_limits'
    int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:645:50: error: no template named 'numeric_limits'
    int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cmath:650:17: error: no template named 'numeric_limits'
    static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix");
    ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package ‘kuenm’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/kuenm’
    Warning in i.p(...) :
    installation of package ‘/var/folders/6w/1004hzrn45n92r7q8sqyzsc80000gn/T//Rtmpx5YHJe/filea07c7c8f7299/kuenm_1.1.7.tar.gz’ had non-zero exit status

I have tried deleting and redownloading Xcode, command line tools, LLVM, gcc, gfortran, and any other compilers, editing my makevars file, but nothing seems to work. Here is my session information.

R version 4.1.2 (2021-11-01)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.2.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] raster_3.5-15 sp_1.4-6

loaded via a namespace (and not attached):
[1] Rcpp_1.0.8 compiler_4.1.2 prettyunits_1.1.1 remotes_2.4.2
[5] tools_4.1.2 testthat_3.1.2 pkgbuild_1.3.1 pkgload_1.2.4
[9] memoise_2.0.1 lifecycle_1.0.1 lattice_0.20-45 rlang_1.0.1
[13] rstudioapi_0.13 cli_3.2.0 curl_4.3.2 xfun_0.29
[17] fastmap_1.1.0 terra_1.5-21 withr_2.4.3 knitr_1.37
[21] desc_1.4.0 fs_1.5.2 devtools_2.4.3 rprojroot_2.0.2
[25] grid_4.1.2 glue_1.6.2 R6_2.5.1 processx_3.5.2
[29] sessioninfo_1.2.2 callr_3.7.0 purrr_0.3.4 magrittr_2.0.2
[33] codetools_0.2-18 ps_1.6.0 ellipsis_0.3.2 usethis_2.1.5
[37] cachem_1.0.6 crayon_1.5.0 brio_1.1.3

@imanidaniele
Copy link

imanidaniele commented May 26, 2022

@agoodman312 Were you able to figure out how to install the package? I'm also having trouble installing the package and get this error message:

devtools::install_github("marlonecobos/kuenm")
Downloading GitHub repo marlonecobos/kuenm@HEAD
✔ checking for file ‘/private/var/folders/h8/74_5hvg11k3_kl2nntycqjcw0000gn/T/RtmpRKlyCg/remotes17b9f6901ea16/marlonecobos-kuenm-c19f6bf/DESCRIPTION’ ...
─ preparing ‘kuenm’:
✔ 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
─ building ‘kuenm_1.1.7.tar.gz’

  • installing source package ‘kuenm’ ...
    ** using staged installation
    ** libs
    clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include' -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c RcppExports.cpp -o RcppExports.o
    clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include' -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c trap_roc.cpp -o trap_roc.o
    clang++ -mmacosx-version-min=10.13 -std=gnu++14 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -Wl,-rpath,/Library/Frameworks/R.framework/Resources/lib /Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o kuenm.so RcppExports.o trap_roc.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
    clang-7: error: no such file or directory: '/Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib'
    make: *** [kuenm.so] Error 1
    ERROR: compilation failed for package ‘kuenm’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/kuenm’
    Warning message:
    In i.p(...) :
    installation of package ‘/var/folders/h8/74_5hvg11k3_kl2nntycqjcw0000gn/T//RtmpRKlyCg/file17b9f660a5786/kuenm_1.1.7.tar.gz’ had non-zero exit status

R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0
Running under: macOS Catalina 10.15.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants