[Rcpp-devel] problems using libc++ on ubuntu

Dirk Eddelbuettel edd at debian.org
Wed Dec 10 23:26:55 CET 2014


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 at 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 at 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 | edd at debian.org


More information about the Rcpp-devel mailing list