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