[Rcpp-devel] undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE (on Ubuntu but not on Mac OS X)

Kevin Ushey kevinushey at gmail.com
Mon Jul 6 19:40:25 CEST 2015


You'll have to share your package if you want more complete help, but some
of my responses are inline. My best guess is you have a funky configure
script or something to that effect.

On Mon, Jul 6, 2015 at 10:10 AM, Peng Yu <pengyu.ut at gmail.com> wrote:

> Hi, I made a package using Rcpp and FORTRAN. But I see the following
> error message on Ubuntu (it can be installed correctly on Mac OS X).
>
> I searched for the solution to it. But it not clear how I should fix
> the problem. Could anybody let me know how to solve this problem.
>
> Loading required package: Rcpp
> R CMD INSTALL --preclean --no-multiarch
> /mnt/nfs/py/projects/Rusrpkg/lbfgsbr
> > tools:::.install_packages()
> * installing to library ‘/home/py/R/x86_64-pc-linux-gnu-library/3.1.0’
> * installing *source* package ‘lbfgsbr’ ...
> ** libs
> gfortran  -fpic -g -O2  -c  dcsrch.f90 -o dcsrch.o
> gfortran  -fpic -g -O2  -c  dcstep.f90 -o dcstep.o
>



> g++ -I/opt/packages/R/R-3.1.0/lib/R/include -DNDEBUG `echo
> "Rcpp:::CxxFlags()"|R --vanilla --slave` -I/usr/local/include    -fpic
>  -g -O2  -c mtlnsrch.cpp -o mtlnsrch.o
>

Why isn't the statement `echo "Rcpp:::CxxFlags()"|R --vanilla --slave`
being expanded?


> gfortran -shared -L/usr/local/lib -o lbfgsbr.so dcsrch.o dcstep.o
> mtlnsrch.o -lgfortran
>

Why is the shared library being built with `gfortran`? I believe it should
be constructed with `gcc`.


> installing to /home/py/R/x86_64-pc-linux-gnu-library/3.1.0/lbfgsbr/libs
> ** R
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> ** building package indices
> ** testing if installed package can be loaded
> > tools:::.test_load_package('lbfgsbr',
> '/home/py/R/x86_64-pc-linux-gnu-library/3.1.0')
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>   unable to load shared object
> '/home/py/R/x86_64-pc-linux-gnu-library/3.1.0/lbfgsbr/libs/lbfgsbr.so':
>   /home/py/R/x86_64-pc-linux-gnu-library/3.1.0/lbfgsbr/libs/lbfgsbr.so:
> undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
> Error: loading failed
> Execution halted
> ERROR: loading failed
> * removing ‘/home/py/R/x86_64-pc-linux-gnu-library/3.1.0/lbfgsbr’
> * restoring previous ‘/home/py/R/x86_64-pc-linux-gnu-library/3.1.0/lbfgsbr’
>
> --
> Regards,
> Peng
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150706/3f345af1/attachment.html>


More information about the Rcpp-devel mailing list