[Rcpp-devel] build error on a starter package made from RcppArmadillo.package.skeleton

Yue Li gorillayue at gmail.com
Fri May 8 19:31:12 CEST 2015


Exactly what I needed. Thanks a lot!



> On May 8, 2015, at 1:04 PM, Balamuta, James Joseph <balamut2 at illinois.edu> wrote:
> 
> For OS X install instructions see:
> 
> http://www.thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error <http://www.thecoatlessprofessor.com/programming/rcpp-rcpparmadillo-and-os-x-mavericks-lgfortran-and-lquadmath-error>
>  
>  
>  
> From: rcpp-devel-bounces at lists.r-forge.r-project.org [mailto:rcpp-devel-bounces at lists.r-forge.r-project.org] On Behalf Of Yue Li
> Sent: Friday, May 08, 2015 11:47 AM
> To: rcpp-devel at lists.r-forge.r-project.org
> Subject: [Rcpp-devel] build error on a starter package made from RcppArmadillo.package.skeleton
>  
> Dear List,
>  
> I’m new to Rcpp and RcppArmadillo and testing out the skeleton on RcppArmadillo. I have the following error when trying to build it.
>  
> I’m using OS 10.10.3 on a Macbook Pro. It seems there is some missing library. Any suggestion would be greatly appreciated.
>  
> Thanks much,
> Yue
>  
>  
> In R:
> RcppArmadillo.package.skeleton( "armadilloTestpkg" )
>  
>  
> In Unix:
>  
> ~/Desktop> R CMD build armadilloTestpkg
> * checking for file ‘armadilloTestpkg/DESCRIPTION’ ... OK
> * preparing ‘armadilloTestpkg’:
> * checking DESCRIPTION meta-information ... OK
> * cleaning src
> * installing the package to process help pages
>       -----------------------------------
> * installing *source* package ‘armadilloTestpkg’ ...
> ** libs
> clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/RcppArmadillo/include"   -fPIC  -Wall -mtune=core2 -g -O2  -c RcppExports.cpp -o RcppExports.o
> clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.2/Resources/library/RcppArmadillo/include"   -fPIC  -Wall -mtune=core2 -g -O2  -c rcpparma_hello_world.cpp -o rcpparma_hello_world.o
> clang++ -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 armadilloTestpkg.so RcppExports.o rcpparma_hello_world.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2 -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
> ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
> ld: library not found for -lquadmath
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [armadilloTestpkg.so] Error 1
> ERROR: compilation failed for package ‘armadilloTestpkg’
> * removing ‘/private/var/folders/dn/xwnc_tvd4bs6cv_9fdt1cc400000gn/T/RtmpJm6sfM/Rinst9b44f7bf1f3/armadilloTestpkg’
>       -----------------------------------
> ERROR: package installation failed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150508/0f59feaa/attachment.html>


More information about the Rcpp-devel mailing list