Closed pommedeterresautee closed 7 years ago
Issue posted on http://lists.r-forge.r-project.org/pipermail/rcpp-devel/ http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2017-August/009711.html
Some posts: https://www.google.fr/search?q=%22undefined+symbol%22+site:http://lists.r-forge.r-project.org/pipermail/rcpp-devel&ei=l36AWej_LYSwaa6Qn6gB&start=10&sa=N&biw=1204&bih=890
https://stackoverflow.com/questions/13995266/using-3rd-party-header-files-with-rcpp
==> R CMD INSTALL --preclean --no-multiarch --with-keep.source FastRText g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/home/geantvert/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-X2xP8j/r-base-3.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o * installing to library ‘/home/geantvert/R/x86_64-pc-linux-gnu-library/3.4’ * installing *source* package ‘FastRText’ ... ** libs g++ -std=gnu++11 -I/usr/share/R/include -DNDEBUG -I../inst/include/ -I"/home/geantvert/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -fpic -g -O2 -fdebug-prefix-map=/build/r-base-X2xP8j/r-base-3.4.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c fastRtext.cpp -o fastRtext.o g++ -std=gnu++11 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o FastRText.so RcppExports.o fastRtext.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR installing to /home/geantvert/R/x86_64-pc-linux-gnu-library/3.4/FastRText/libs ** R ** inst ** preparing package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded Error: package or namespace load failed for ‘FastRText’ in dyn.load(file, DLLpath = DLLpath, ...): impossible de charger l'objet partagé '/home/geantvert/R/x86_64-pc-linux-gnu-library/3.4/FastRText/libs/FastRText.so': /home/geantvert/R/x86_64-pc-linux-gnu-library/3.4/FastRText/libs/FastRText.so: undefined symbol: _ZN8fasttext8FastTextC1Ev Erreur : le chargement a échoué Exécution arrêtée ERROR: loading failed * removing ‘/home/geantvert/R/x86_64-pc-linux-gnu-library/3.4/FastRText’ Exited with status 1.
Moving .cc files to src/ fixed the crash.
FastRText_1.0.tar.gz
Issue posted on http://lists.r-forge.r-project.org/pipermail/rcpp-devel/
http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2017-August/009711.html
Some posts: https://www.google.fr/search?q=%22undefined+symbol%22+site:http://lists.r-forge.r-project.org/pipermail/rcpp-devel&ei=l36AWej_LYSwaa6Qn6gB&start=10&sa=N&biw=1204&bih=890
https://stackoverflow.com/questions/13995266/using-3rd-party-header-files-with-rcpp