Skip to content

Instantly share code, notes, and snippets.

@fmichonneau
Last active August 29, 2015 13:57
Show Gist options
  • Save fmichonneau/9693257 to your computer and use it in GitHub Desktop.
Save fmichonneau/9693257 to your computer and use it in GitHub Desktop.
Error during package installation using
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/francois/phylobase.Rcheck/phylobase/libs/phylobase.so':
/home/francois/phylobase.Rcheck/phylobase/libs/phylobase.so: undefined symbol: __ubsan_vptr_type_cache
Error: loading failed
Execution halted
ERROR: loading failed
_____
The command used during the package compilation is:
clang++ -fsanitize=undefined -I/usr/local/lib64/R/include -DNDEBUG -I. -DHAVEINTTYPES_H -DASSERTS_TO_EXCEPTIONS -I/usr/local/include -I"/usr/local/lib64/R/library/Rcpp/include" -fpic -std=c++11 -fno-omit-frame-pointer -O3 -Wall -pedantic -mtune=native
@bbolker
Copy link

bbolker commented May 10, 2015

do you know what caused this?

@bbolker
Copy link

bbolker commented May 21, 2015

PS. I took out -fsanitize=undefined -fno-omit-frame-pointer from the Makevars file while compiling Rcpp and it seems to have worked (which should be OK since I don't have to UBSAN-check Rcpp itself ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment