-
Notifications
You must be signed in to change notification settings - Fork 55
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
installation issue: ld: library not found for -lquadmath #262
Comments
Type in R: Sys.getenv("PATH") Place the results in this issue. I don't think that the gfortran binary was correctly installed. |
|
Can you try installing the gfortran 6.1 binary again? https://cran.r-project.org/bin/macosx/tools/gfortran-6.1.pkg |
Received these messages after reinstallation:
|
So that addressed the 'missing Fortran library' but now it looks like a possible mismatch. Does the rest of your |
FWIW CRAN still builds them fine https://cloud.r-project.org/web/checks/check_results_RcppArmadillo.html but has not yet gotten to the very fresh (uploaded yesterday) 0.9.600.4.0 release. |
I think I run into similar issue yesterday when I was digging about I got following error:
I didn't have time to debug, so I installed |
@dselivanov I am not sure how relevant that is. You are on a different operating system where we always needed BLAS because we have edd@rob:~$ grep PKG_LIBS git/rcpparmadillo/src/Makevars.in
PKG_LIBS= @OPENMP_FLAG@ $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
edd@rob:~$ But what does have to do with the OP's problem on macOS? |
My understanding was that RcppArmadillo should link to either R provided
reference blas, lapack or system ones. So in case of missing system blas
and lapack it should link to the one provided by R (and which in fact was
discovered during configure run). So I thought there was something broken
with linker starting from R 3.6.1. However I've just checked r-base:3.6.1
image and opposed to rocker/drd it works fine...
…On Tue, Jul 16, 2019 at 3:57 PM Dirk Eddelbuettel ***@***.***> wrote:
@dselivanov <https://github.com/dselivanov> I am not sure how relevant
that is. You are on a different operating system *where we always needed
BLAS* because we have
***@***.***:~$ grep PKG_LIBS git/rcpparmadillo/src/Makevars.in
PKG_LIBS= @OPENMP_FLAG@ $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
***@***.***:~$
But what does have to do with the OP's problem on macOS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#262?email_source=notifications&email_token=ABHC5XJUB6KFOYJPSYXQR3DP7WZRHA5CNFSM4ID4HSR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ATRPY#issuecomment-511785151>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABHC5XIFGNSUSEPXNYEE2QLP7WZRHANCNFSM4ID4HSRQ>
.
--
Regards
Dmitriy Selivanov
|
@eddelbuettel I reinstalled clang-7 from that site and received the same error messages. |
@angieshen6 Beats me. I don't use or support macOS besides what CRAN requires. Plead with @coatless to help you or try the |
@dselivanov I still don't understand what that has to do with this issue ticket. Maybe you documented that |
You are right, nothing to do with rcpparmadillo. False alarm |
No worries. Life is about trading off true and false positives :) |
You might need to do a full reinstall once the correct toolchain is in use. Try: install.packages("RcppArmadillo",
dependencies=TRUE,
repos="https://cloud.r-project.org") |
I was getting an error when installing the 'fable' package. But @coatless install code above did the trick to get 'RcppAmrmadillo' installed. Thanks! |
Closing this. Please tell the macOS maintainer for R to streamline his process. The package can only work when components are in places, and besides the package-level Depends:/Imports:/... we have no control over where and when. Hence also no ability to affect it. |
I am getting the same error: ld: warning: directory not found for option '-L/opt/local/Library/Frameworks/R.framework/Resources/libppc' Is there a solution? |
@barracuda156 This is, I think, the third repo I see you use for your questions about your (if I dare say, somewhat non-standard) setup. Can you maybe get some help from people using the os and hardware combination, maybe via the r-sig-mac list? We don't use it -- and the software we provide works everywhere else (where we can test it too) so we cannot help you. |
After downloading R.3.6.1, I can no longer install RcppArmadillo. I have Mac OS X El Capitan 10.11.5. I downloaded gfortran 6.1, clang-7 and Xcode following the instructions on here [(https://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-macos/)] but received the following messages:
`=================================================
downloaded 1.3 MB
** package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
** using staged installation
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ -std=gnu++11 accepts -g... yes
checking how to run the C++ preprocessor... clang++ -std=gnu++11 -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether clang++ -std=gnu++11 accepts -g... (cached) yes
checking whether g++ version is sufficient... almost
configure: WARNING: Compiler self-identifies as being compliant with GNUC extensions but is not g++.
checking for macOS... found
checking for macOS Apple compiler... not found
checking for clang compiler... found
checking for OpenMP compatible version of clang... found and suitable
checking LAPACK_LIBS... R-supplied partial LAPACK found
configure: WARNING: Some complex-valued LAPACK functions may not be available
checking for OpenMP... found and suitable
configure: creating ./config.status
config.status: creating inst/include/RcppArmadilloConfigGenerated.h
config.status: creating src/Makevars
** libs
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I../inst/include -fopenmp -fPIC -Wall -g -O2 -c RcppArmadillo.cpp -o RcppArmadillo.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I../inst/include -fopenmp -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -I../inst/include -fopenmp -fPIC -Wall -g -O2 -c fastLm.cpp -o fastLm.o
clang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o RcppArmadillo.so RcppArmadillo.o RcppExports.o fastLm.o -fopenmp -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lquadmath
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [RcppArmadillo.so] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’
Warning in install.packages :
installation of package ‘RcppArmadillo’ had non-zero exit status`
The text was updated successfully, but these errors were encountered: