[Rcpp-devel] Error compiling Rcpp 0.10.4
Romain Francois
romain at r-enthusiasts.com
Thu Sep 12 17:46:38 CEST 2013
Le 12/09/13 16:28, Simon Zehnder a écrit :
> Dear Rcpp-Users and Rcpp-Devels,
>
> I had to reinstall my system lately and compiled R-3.0.1. I installed several packages and all installations went well. Then I tried to install Rcpp 0.10.4. and I got:
>
> R CMD INSTALL Rcpp
> * installing to library ‘/Users/simonzehnder/Library/R/3.0/library’
> * installing *source* package ‘Rcpp’ ...
> ** package ‘Rcpp’ successfully unpacked and MD5 sums checked
> ** libs
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c Date.cpp -o Date.o
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c Module.cpp -o Module.o
> gcc -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c Rcpp_init.c -o Rcpp_init.o
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c Timer.cpp -o Timer.o
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c api.cpp -o api.o
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c attributes.cpp -o attributes.o
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c barrier.cpp -o barrier.o
> g++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I../inst/include/ -I/opt/local/include -fPIC -g -O2 -c exceptions.cpp -o exceptions.o
> g++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/opt/local/lib -o Rcpp.so Date.o Module.o Rcpp_init.o Timer.o api.o attributes.o barrier.o exceptions.o -F/Library/Frameworks/R.framework/.. -framework R -lintl -Wl,-framework -Wl,CoreFoundation
> g++ -o libRcpp.dylib Date.o Module.o Rcpp_init.o Timer.o api.o attributes.o barrier.o exceptions.o -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -F/Library/Frameworks/R.framework/.. -framework R -lintl -Wl,-framework -Wl,CoreFoundation
> ld: library not found for -lintl
> collect2: error: ld returned 1 exit status
> make: *** [libRcpp] Error 1
> ERROR: compilation failed for package ‘Rcpp’
> * removing ‘/Users/simonzehnder/Library/R/3.0/library/Rcpp’
>
> What is the intl library and what could be the error.
>
> My System: Mac OS X Mountain Lion 10.8.4, Macports gcc48 Compiler
>
>
> Best
>
> Simon
I don't get this problem when compiling Rcpp with stock gcc 4.2.1 as
provided by apple.
I don't know why this -lintl got included in your settings.
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
More information about the Rcpp-devel
mailing list