Closed andrewrech closed 7 years ago
AFAIK the Ubuntu repositories don't provide gcc-6 for Ubuntu 16.04. How was your version of gcc installed?
Given this:
$ c++filt _ZTVN10__cxxabiv117__class_type_infoE
vtable for __cxxabiv1::__class_type_info
I think that you're likely attempting to link against a version of libstdc++
that's not providing this symbol.
I installed gcc-6 from ppa:ubuntu-toolchain-r/test
.
With vanilla gcc-5 I saw the same error. I had to change gcc-5 to g++-5 in my Makevars to automatically link libstdc++
, which solved the issue.
Thanks for pointing me in the right direction!
R: devtools::install_github("kevinushey/sourcetools")
Downloading GitHub repo kevinushey/sourcetools@master
from URL https://api.github.com/repos/kevinushey/sourcetools/zipball/master
Installing sourcetools
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL '/tmp/root/RtmppzRGCo/devtools8f7cdfd3dbf/kevinushey-sourcetools-0e66b34' \
--library='/usr/local/lib/R/site-library' --install-tests
* installing *source* package ‘sourcetools’ ...
** libs
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Completion.cpp -o Completion.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c NSE.cpp -o NSE.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Parser.cpp -o Parser.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Reader.cpp -o Reader.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c Tokenizer.cpp -o Tokenizer.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ValidateSyntax.cpp -o ValidateSyntax.o
gcc-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c sourcetools-init.c -o sourcetools-init.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c test-Parser.cpp -o test-Parser.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c test-Tokenizer.cpp -o test-Tokenizer.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c test-multibyte.cpp -o test-multibyte.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c test-r.cpp -o test-r.o
g++-5 -fopenmp -I/usr/share/R/include -DNDEBUG -I../inst/include -I"/usr/local/lib/R/site-library/testthat/include" -fpic -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c test-runner.cpp -o test-runner.o
g++-5 -fopenmp -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o sourcetools.so Completion.o NSE.o Parser.o Reader.o Tokenizer.o ValidateSyntax.o sourcetools-init.o test-Parser.o test-Tokenizer.o test-multibyte.o test-r.o test-runner.o -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/sourcetools/libs
** R
** inst
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (sourcetools)
Hello,
I cannot compile on Linux due to
undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE
? Thanks!gcc -v