On 10 December 2014 at 15:28, Mark Lilback wrote: | I’m trying to intall Rcpp using clang and libc++ instead of gcc and | libstdc++. However, something is adding =lstdc++ to the call to ld and I | can’t figure out what it is.
Ubuntu happens to be my default setup -- but it managed to fsck up clang in 13.10 and 14.04. Luckily it now works in 14.10: edd@max:~/git$ R CMD INSTALL Rcpp_0.11.3.3.tar.gz # 0.11.3.3 is my current dev snapshot * installing to library ‘/usr/local/lib/R/site-library’ * installing *source* package ‘Rcpp’ ... ** libs ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -c Date.cpp -o Date.o ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -c Module.cpp -o Module.o ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -c Rcpp_init.cpp -o Rcpp_init.o ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -c api.cpp -o api.o ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -c attributes.cpp -o attributes.o ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG -I../inst/include/ -fpic -O3 -c barrier.cpp -o barrier.o g++-4.8 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o Rcpp.so Date.o Module.o Rcpp_init.o api.o attributes.o barrier.o -L/usr/lib/R/lib -lR installing to /usr/local/lib/R/site-library/Rcpp/libs ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded * DONE (Rcpp) edd@max:~/git$ You should upgrade to 14.10, or just run (say) Debian in a chroot / Docker container / virtual machine. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel