I’m building ROOT from source inside a virtual machine running Elementary OS Herra. I’ve done this before without issue, but now it stops at 76% and throws the error:
Value.cpp:(.text._ZN4llvm5Value7setNameERKNS_5TwineE+0x1d): undefined reference to `llvm::Function::recalculateIntrinsicID()'
../../interpreter/llvm/src/lib/libLLVMCore.a(Value.cpp.o): In function `llvm::Value::takeName(llvm::Value*)':
Value.cpp:(.text._ZN4llvm5Value8takeNameEPS0_+0x47d): undefined reference to `llvm::Function::recalculateIntrinsicID()'
../../interpreter/llvm/src/lib/libLLVMCore.a(Value.cpp.o): In function `llvm::Value::deleteValue()':
Value.cpp:(.text._ZN4llvm5Value11deleteValueEv+0x171): undefined reference to `llvm::Function::~Function()'
/usr/bin/ld: src/rootcling_stage1: hidden symbol `_ZN4llvm12BranchFolderC1EbbRNS0_11MBFIWrapperERKNS_28MachineBranchProbabilityInfoEj' isn't defined
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/build.make:229: recipe for target 'core/rootcling_stage1/src/rootcling_stage1' failed
make[2]: *** [core/rootcling_stage1/src/rootcling_stage1] Error 1
CMakeFiles/Makefile2:20174: recipe for target 'core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all' failed
make[1]: *** [core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
how are you configuring the build? Are you trying to use an external LLVM (in which case, it might not have the right version)?
Cheers,
Enrico
I’m on a clean install of Elementary OS Herra, with the latest stable ROOT release. I followed these steps exactly:
cd $HOME
mkdir Root
cp Downloads/root_v6.20.04.source.tar.gz Cern_Root/
cd Root
tar -zxvf root_v6.20.04.source.tar.gz
cd root-6-20-04
mkdir root-build
mkdir root-install
cd root-build
cmake …
cmake -Dall=on .
cmake -DCMAKE_INSTALL_PREFIX=~/Root/root-6-20-04/root-install .
make -j2
Thank you!
Uhmm the instructions look ok. Could it be the virtual machine runs out of RAM during compilation? I’m mentioning it because your commands look fine, your error seems to suggest that something went wrong when compiling cling, and linking cling is the ROOT compilation step that requires the most RAM.
Cheers,
Enrico