V8 icon indicating copy to clipboard operation
V8 copied to clipboard

undefined symbol: _ZN2v87Isolate13RunMicrotasksEv when building by R-4.2.0 under GCC-11.2.0

Open bowentan opened this issue 2 years ago • 3 comments

System Ubuntu 20.04 GCC: 11.2.0 R: 4.2.0

V8-4.2.0 threw out an error undefined symbol: _ZN2v87Isolate13RunMicrotasksEv when I installed the package in R-4.2.0 and GCC-11.2.0.

I cannot find any clue for this symbol online. Can anyone help me about that?

bowentan avatar Jul 23 '22 07:07 bowentan

Pls include the full install log.

jeroen avatar Jul 23 '22 12:07 jeroen

@jeroen I used Easybuild to build V8. EC was R-4.2.0-foss-2021b.eb. The entire log is too huge (~3G) to upload here. I give the related logs below. The installation command was export CPATH=$EBROOTNODEJS/include/node:$CPATH && R CMD INSTALL /data1/apps/.local/easybuild/build/R/4.2.0/foss-2021b/V8/V8 --library=/apps/software/R/4.2.0-foss-2021b/lib/R/library --no-clean-on-error --configure-vars="INCLUDE_DIR=$CPATH LIB_DIR=$LIBRARY_PATH.

installing to /data1/apps/software/R/4.2.0-foss-2021b/lib/R/library/00LOCK-V8/00new/V8/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for V8 in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/data1/apps/software/R/4.2.0-foss-2021b/lib/R/library/00LOCK-V8/00new/V8/libs/V8.so':
  /data1/apps/software/R/4.2.0-foss-2021b/lib/R/library/00LOCK-V8/00new/V8/libs/V8.so: undefined symbol: _ZN2v87Isolate13RunMicrotasksEv
Error: loading failed
Execution halted
ERROR: loading failed

bowentan avatar Jul 24 '22 11:07 bowentan

I found another error in the log:

ccp6lVFF.o:test.cpp:function main: error: undefined reference to 'v8::V8::Initialize()'

and I opened an issue to easybuild https://github.com/easybuilders/easybuild-easyconfigs/issues/15936

bowentan avatar Jul 30 '22 05:07 bowentan