Failed to install root-6.24.02 on ubuntu 22.04

When I try to install root from source following : build_from_source
I fail in the building process after I ran:
sudo cmake --build . – install (from the build directory)

The error message is:
[ 76%] Linking CXX executable src/rootcling_stage1
[ 76%] Built target Cling
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenFunction.cpp.o): in function clang::CodeGen::CodeGenFunction::FormResolverCondition(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)': CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction21FormResolverConditionERKNS1_26MultiVersionResolverOptionE+0x69): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuIs(llvm::StringRef)’
/usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction21FormResolverConditionERKNS1_26MultiVersionResolverOptionE+0x7f): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction21FormResolverConditionERKNS1_26MultiVersionResolverOptionE+0x188): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef llvm::StringRef)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenFunction.cpp.o): in function clang::CodeGen::CodeGenFunction::EmitMultiVersionResolver(llvm::Function*, llvm::ArrayRef<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption>)': CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x118): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuInit()’
/usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x1b4): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuIs(llvm::StringRef)' /usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x640): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x728): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function clang::CodeGen::CodeGenFunction::MultiVersionResolverOption* std::__move_merge<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}> >(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}>)‘:
CodeGenModule.cpp:(.text.ZSt12__move_mergeIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionES4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEET0_T_SF_SF_SF_SE_T1+0x74): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt12__move_mergeIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionES4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEET0_T_SF_SF_SF_SE_T1_+0x83): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function void std::__merge_without_buffer<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}> >(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, long, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}>)': CodeGenModule.cpp:(.text._ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_+0xe3): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenModule.cpp:(.text.ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1+0xf2): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_+0x22c): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o):CodeGenModule.cpp:(.text.ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1+0x23c): more undefined references to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef>)' follow /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function clang::CodeGen::CodeGenModule::createCUDARuntime()‘:
CodeGenModule.cpp:(.text._ZN5clang7CodeGen13CodeGenModule17createCUDARuntimeEv+0x9): undefined reference to clang::CodeGen::CreateNVCUDARuntime(clang::CodeGen::CodeGenModule&)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function clang::CodeGen::CodeGenModule::CodeGenModule(clang::ASTContext&, clang::HeaderSearchOptions const&, clang::PreprocessorOptions const&, clang::CodeGenOptions const&, llvm::Module&, clang::DiagnosticsEngine&, clang::CoverageSourceInfo*)’:
CodeGenModule.cpp:(.text._ZN5clang7CodeGen13CodeGenModuleC2ERNS_10ASTContextERKNS_19HeaderSearchOptionsERKNS_19PreprocessorOptionsERKNS_14CodeGenOptionsERN4llvm6ModuleERNS_17DiagnosticsEngineEPNS_18CoverageSourceInfoE+0xcfc): undefined reference to clang::CodeGen::CreateNVCUDARuntime(clang::CodeGen::CodeGenModule&)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function void std::__merge_adaptive<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}> >(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, long, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}>)‘:
CodeGenModule.cpp:(.text.ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2+0xdd): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2_+0xec): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenModule.cpp:(.text.ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2+0x25e): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2_+0x26e): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenModule.cpp:(.text.ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2+0x3fb): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o):CodeGenModule.cpp:(.text._ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2_+0x40d): more undefined references to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’ follow
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CGCall.cpp.o): in function clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::CodeGen::CodeGenFunction::PrototypeWrapper, llvm::iterator_range<clang::Stmt::CastIterator<clang::Expr, clang::Expr const* const, clang::Stmt const* const> >, clang::CodeGen::CodeGenFunction::AbstractCallee, unsigned int, clang::CodeGen::CodeGenFunction::EvaluationOrder)': CGCall.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction12EmitCallArgsERNS0_11CallArgListENS1_16PrototypeWrapperEN4llvm14iterator_rangeINS_4Stmt12CastIteratorINS_4ExprEKPKS9_KPKS7_EEEENS1_14AbstractCalleeEjNS1_15EvaluationOrderE+0x3e8): undefined reference to clang::CodeGen::CodeGenFunction::evaluateOrEmitBuiltinObjectSize(clang::Expr const*, unsigned int, llvm::IntegerType*, llvm::Value*, bool)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CGExpr.cpp.o): in function clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)': CGExpr.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction12EmitCallExprEPKNS_8CallExprENS0_15ReturnValueSlotE+0x1f1): undefined reference to clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::GlobalDecl, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)’
collect2: error: ld returned 1 exit status
gmake[2]: *** [core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/build.make:249: core/rootcling_stage1/src/rootcling_stage1] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:34007: core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

I some help, thanks!

1 Like

Hi @oralon,
thanks for reaching out!
Building ROOT from source can be non trivial, have you considered alternatives?
If you still want want to build ROOT from source, can you please include your cmake command?

Cheers,
Monica

The error message you are seeing indicates that the linker is unable to find the clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask() function. This is likely because you are using an older version of Clang, or because you have not installed all of the required dependencies.

To troubleshoot this issue, you can try the following:

  1. Make sure that you are using the latest version of Clang.
  2. Install all of the required dependencies, including the LLVM libraries.
  3. Try rebuilding the ROOT library from source.

If you are still having problems, please provide more information about your setup, such as the following:

  • The version of Clang and LLVM that you are using.
  • The output of the cmake --version command.
  • The output of the make command.

This will help me to diagnose the problem and provide a more specific solution.

I want it to have easy access to python so I don’t want to use snap or conda, and I didn’t find any good alternative for ubuntu.
may I ask what do you mean by cmake command?
I configured it using:
cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src
and now I’m trying to build using:
sudo cmake --build . – install

Thank you,
Or

thank you I wasn’t aware that LLVM was required I installed it but it didn’t solve the problem.
here is the required setup:

Clang version = 14
LLVM version = 17

cmake --version:
cmake version 3.27.7

make output:
76%] Built target LZMA
[ 76%] Built target AFTERIMAGE
[ 76%] Built target TBB
[ 76%] Built target VDT
[ 76%] Built target googletest
[ 76%] Built target OPENUI5
[ 76%] Built target RENDERCORE
[ 76%] Built target move_header_roofit_xroofit
[ 76%] Built target copymodulemap
[ 76%] Built target builtin_nlohmann_json_incl
[ 76%] Built target xxhash
[ 76%] Built target lz4
[ 76%] Built target XROOTD
[ 76%] Built target move_header_core_clib
[ 76%] Built target move_header_core_clingutils
[ 76%] Built target move_header_core_cont
[ 76%] Built target move_header_core_foundation
[ 76%] Built target move_header_core_gui
[ 76%] Built target move_header_core_meta
[ 76%] Built target move_header_core_multiproc
[ 76%] Built target move_header_core_rint
[ 76%] Built target move_header_core_textinput
[ 76%] Built target move_header_core_thread
[ 76%] Built target move_header_core_imt
[ 76%] Built target move_header_core_zip
[ 76%] Built target move_header_core_lzma
[ 76%] Built target move_header_core_lz4
[ 76%] Built target move_header_core_zstd
[ 76%] Built target move_header_core_newdelete
[ 76%] Built target move_header_core_base
[ 76%] Built target move_header_core_unix
[ 76%] Built target move_header_math_mathcore
[ 76%] Built target move_header_math_mathmore
[ 76%] Built target move_header_math_matrix
[ 76%] Built target move_header_math_minuit
[ 76%] Built target move_header_math_minuit2
[ 76%] Built target move_header_math_fumili
[ 76%] Built target move_header_math_physics
[ 76%] Built target move_header_math_mlp
[ 76%] Built target move_header_math_quadp
[ 76%] Built target move_header_math_foam
[ 76%] Built target move_header_math_smatrix
[ 76%] Built target move_header_math_splot
[ 76%] Built target move_header_math_genvector
[ 76%] Built target move_header_math_genetic
[ 76%] Built target move_header_math_fftw
[ 76%] Built target move_header_math_vecops
[ 76%] Built target move_header_hist_hist
[ 76%] Built target move_header_hist_histpainter
[ 76%] Built target move_header_hist_histv7
[ 76%] Built target move_header_hist_histdrawv7
[ 76%] Built target move_header_hist_spectrum
[ 76%] Built target move_header_hist_spectrumpainter
[ 76%] Built target move_header_hist_unfold
[ 76%] Built target move_header_tree_tree
[ 76%] Built target move_header_tree_treeplayer
[ 76%] Built target move_header_tree_treeviewer
[ 76%] Built target move_header_tree_webviewer
[ 76%] Built target move_header_tree_dataframe
[ 76%] Built target move_header_tree_ntuple
[ 76%] Built target move_header_tree_ntupleutil
[ 76%] Built target move_header_io_io
[ 76%] Built target move_header_io_sql
[ 76%] Built target move_header_io_xml
[ 76%] Built target move_header_io_xmlparser
[ 76%] Built target move_header_net_net
[ 76%] Built target move_header_net_auth
[ 76%] Built target move_header_net_netxng
[ 76%] Built target move_header_net_http
[ 76%] Built target move_header_net_httpsniff
[ 76%] Built target move_header_graf2d_gpadv7
[ 76%] Built target move_header_graf2d_primitivesv7
[ 76%] Built target move_header_graf2d_gpad
[ 76%] Built target move_header_graf2d_graf
[ 76%] Built target move_header_graf2d_postscript
[ 76%] Built target move_header_graf2d_x11
[ 76%] Built target move_header_graf2d_x11ttf
[ 76%] Built target move_header_graf2d_asimage
[ 76%] Built target move_header_graf2d_fitsio
[ 76%] Built target move_header_graf3d_g3d
[ 76%] Built target move_header_graf3d_x3d
[ 76%] Built target move_header_graf3d_csg
[ 76%] Built target move_header_graf3d_rglew
[ 76%] Built target move_header_graf3d_eve
[ 76%] Built target move_header_graf3d_gl
[ 76%] Built target move_header_graf3d_gviz3d
[ 76%] Built target move_header_graf3d_eve7
[ 76%] Built target move_header_gui_gui
[ 76%] Built target move_header_gui_ged
[ 76%] Built target move_header_gui_fitpanel
[ 76%] Built target move_header_gui_guibuilder
[ 76%] Built target move_header_gui_guihtml
[ 76%] Built target move_header_gui_recorder
[ 76%] Built target move_header_gui_sessionviewer
[ 76%] Built target move_header_gui_webdisplay
[ 76%] Built target move_header_gui_webgui6
[ 76%] Built target move_header_gui_browsable
[ 76%] Built target move_header_gui_browserv7
[ 76%] Built target move_header_gui_fitpanelv7
[ 76%] Built target move_header_proof_proof
[ 76%] Built target move_header_proof_proofplayer
[ 76%] Built target move_header_proof_proofbench
[ 76%] Built target move_header_html
[ 76%] Built target move_header_montecarlo_eg
[ 76%] Built target move_header_geom_geom
[ 76%] Built target move_header_geom_geombuilder
[ 76%] Built target move_header_geom_geompainter
[ 76%] Built target move_header_geom_gdml
[ 76%] Built target move_header_geom_webviewer
[ 76%] Built target move_header_bindings_tpython
[ 76%] Built target move_header_sql_mysql
[ 76%] Built target move_header_tmva_tmva
[ 76%] Built target move_header_tmva_tmvagui
[ 76%] Built target move_header_tmva_sofie
[ 76%] Built target move_header_roofit_batchcompute
[ 76%] Built target move_header_roofit_roofitcore
[ 76%] Built target move_header_roofit_roofit
[ 76%] Built target move_header_roofit_roofitmore
[ 76%] Built target move_header_roofit_roostats
[ 76%] Built target move_header_roofit_histfactory
[ 76%] Built target move_header_roofit_RDataFrameHelpers
[ 76%] Built target move_header_roofit_jsoninterface
[ 76%] Built target move_header_roofit_hs3
[ 76%] Built target move_headers
[ 76%] Built target RootPcmObjs
[ 76%] Built target Unix
[ 76%] Built target obj.clang-tblgen
[ 76%] Built target LLVMDemangle
CMake Error: Cannot open file for write: /opt/root/root_build/interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/compiler_depend.make.tmp83607
CMake Error: : System Error: Permission denied
make[2]: *** [interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/build.make:2301: interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/depend] Error 2
make[1]: *** [CMakeFiles/Makefile2:10111: interpreter/llvm/src/lib/Support/CMakeFiles/LLVMSupport.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

thanks or

You’re receiving a permission denied error, so what I would try to do is to install in a path under your home directory.

Let me know if that solves your issue.

Cheers,
Monica

oh so sorry I forgot to run it with sudo, this is the make output with sudo:
[ 51%] Linking CXX executable src/rootcling_stage1
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenFunction.cpp.o): in function clang::CodeGen::CodeGenFunction::FormResolverCondition(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)': CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction21FormResolverConditionERKNS1_26MultiVersionResolverOptionE+0x69): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuIs(llvm::StringRef)’
/usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction21FormResolverConditionERKNS1_26MultiVersionResolverOptionE+0x7f): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction21FormResolverConditionERKNS1_26MultiVersionResolverOptionE+0x188): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenFunction.cpp.o): in function clang::CodeGen::CodeGenFunction::EmitMultiVersionResolver(llvm::Function*, llvm::ArrayRef<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption>)': CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x118): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuInit()’
/usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x1b4): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuIs(llvm::StringRef)' /usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x640): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenFunction.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction24EmitMultiVersionResolverEPN4llvm8FunctionENS2_8ArrayRefINS1_26MultiVersionResolverOptionEEE+0x728): undefined reference to clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function clang::CodeGen::CodeGenFunction::MultiVersionResolverOption* std::__move_merge<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}> >(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}>)‘:
CodeGenModule.cpp:(.text.ZSt12__move_mergeIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionES4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEET0_T_SF_SF_SF_SE_T1+0x74): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt12__move_mergeIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionES4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEET0_T_SF_SF_SF_SE_T1_+0x83): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function void std::__merge_without_buffer<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}> >(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, long, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}>)': CodeGenModule.cpp:(.text._ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_+0xe3): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenModule.cpp:(.text.ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1+0xf2): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_+0x22c): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o):CodeGenModule.cpp:(.text.ZSt22__merge_without_bufferIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElN9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1+0x23c): more undefined references to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef>)' follow /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function clang::CodeGen::CodeGenModule::createCUDARuntime()‘:
CodeGenModule.cpp:(.text._ZN5clang7CodeGen13CodeGenModule17createCUDARuntimeEv+0x9): undefined reference to clang::CodeGen::CreateNVCUDARuntime(clang::CodeGen::CodeGenModule&)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function clang::CodeGen::CodeGenModule::CodeGenModule(clang::ASTContext&, clang::HeaderSearchOptions const&, clang::PreprocessorOptions const&, clang::CodeGenOptions const&, llvm::Module&, clang::DiagnosticsEngine&, clang::CoverageSourceInfo*)’:
CodeGenModule.cpp:(.text._ZN5clang7CodeGen13CodeGenModuleC2ERNS_10ASTContextERKNS_19HeaderSearchOptionsERKNS_19PreprocessorOptionsERKNS_14CodeGenOptionsERN4llvm6ModuleERNS_17DiagnosticsEngineEPNS_18CoverageSourceInfoE+0xcfc): undefined reference to clang::CodeGen::CreateNVCUDARuntime(clang::CodeGen::CodeGenModule&)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o): in function void std::__merge_adaptive<clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}> >(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, long, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption*, long, __gnu_cxx::__ops::_Iter_comp_iter<clang::CodeGen::CodeGenModule::emitCPUDispatchDefinition(clang::GlobalDecl)::{lambda(clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&, clang::CodeGen::CodeGenFunction::MultiVersionResolverOption const&)#3}>)‘:
CodeGenModule.cpp:(.text.ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2+0xdd): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2_+0xec): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenModule.cpp:(.text.ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2+0x25e): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef>)' /usr/bin/ld: CodeGenModule.cpp:(.text._ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2_+0x26e): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’
/usr/bin/ld: CodeGenModule.cpp:(.text.ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2+0x3fb): undefined reference to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)' /usr/bin/ld: ../../interpreter/llvm/src/lib/libclangCodeGen.a(CodeGenModule.cpp.o):CodeGenModule.cpp:(.text._ZSt16__merge_adaptiveIPN5clang7CodeGen15CodeGenFunction26MultiVersionResolverOptionElS4_N9__gnu_cxx5__ops15_Iter_comp_iterIZNS1_13CodeGenModule25emitCPUDispatchDefinitionENS0_10GlobalDeclEEUlRKS3_SB_E1_EEEvT_SE_SE_T0_SF_T1_SF_T2_+0x40d): more undefined references to clang::CodeGen::CodeGenFunction::GetX86CpuSupportsMask(llvm::ArrayRef<llvm::StringRef)’ follow
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CGCall.cpp.o): in function clang::CodeGen::CodeGenFunction::EmitCallArgs(clang::CodeGen::CallArgList&, clang::CodeGen::CodeGenFunction::PrototypeWrapper, llvm::iterator_range<clang::Stmt::CastIterator<clang::Expr, clang::Expr const* const, clang::Stmt const* const> >, clang::CodeGen::CodeGenFunction::AbstractCallee, unsigned int, clang::CodeGen::CodeGenFunction::EvaluationOrder)': CGCall.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction12EmitCallArgsERNS0_11CallArgListENS1_16PrototypeWrapperEN4llvm14iterator_rangeINS_4Stmt12CastIteratorINS_4ExprEKPKS9_KPKS7_EEEENS1_14AbstractCalleeEjNS1_15EvaluationOrderE+0x3e8): undefined reference to clang::CodeGen::CodeGenFunction::evaluateOrEmitBuiltinObjectSize(clang::Expr const*, unsigned int, llvm::IntegerType*, llvm::Value*, bool)’
/usr/bin/ld: …/…/interpreter/llvm/src/lib/libclangCodeGen.a(CGExpr.cpp.o): in function clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)': CGExpr.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction12EmitCallExprEPKNS_8CallExprENS0_15ReturnValueSlotE+0x1f1): undefined reference to clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::GlobalDecl, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)’
collect2: error: ld returned 1 exit status
make[2]: *** [core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/build.make:250: core/rootcling_stage1/src/rootcling_stage1] Error 1
make[1]: *** [CMakeFiles/Makefile2:34007: core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

I suggest to chose a path under your home directory anyway, so you won’t need sudo permission.

Did you check all dependencies?

Can you post also the message you get after you run cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src?

Monica

I did checked all the dependencies, but I am not sure all of them are installed correctly
I’ve attached the message I get after cmake -DCMAKE_INSTALL_PREFIX=…/root_install …/root_src

– Detected ROOT_VERSION 6.28.06
– Checking internet connectivity
– Checking internet connectivity - found
– Looking for Python
– Could NOT find Python3 (missing: Python3_NumPy_INCLUDE_DIRS NumPy) (found version “3.10.12”)
– Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_INCLUDE_DIRS Python2_LIBRARIES Python2_NumPy_INCLUDE_DIRS Interpreter Development NumPy Development.Module Development.Embed)
– Found GCC. Major version 11, minor version 4
– ROOT Platform: linux
– ROOT Compiler: GNU 11.4.0
– ROOT Processor: x86_64
– ROOT Architecture: linuxx8664gcc
– Build Type: ‘Release’ (flags = ‘-O3 -DNDEBUG’)
– Compiler Flags: -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG
– ROOT default compression algorithm: zlib
– PyROOT will be built for version 3.10.12
– Looking for ZLib
– Looking for Freetype
– Looking for PCRE
– Building LZMA version 5.2.4 included in ROOT itself
– Looking for ZSTD
– Looking for X11
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Building AfterImage library included in ROOT itself
– Looking for GSL
– Looking for OpenGL
– Looking for GLEW
– Looking for LibXml2
– Looking for MySQL
– Looking for FFTW3
– Looking for CFITSIO
– Downloading and building XROOTD version 5.5.2
– Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
– Looking for BLAS for optional parts of TMVA
– Could NOT find BLAS (missing: BLAS_LIBRARIES)
– Using GSL CBLAS for optional parts of TMVA
– Building LLVM in ‘Release’ mode.
– Native target architecture is X86
– Threads disabled.
– Doxygen disabled.
– Go bindings disabled.
– Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
– OCaml bindings disabled.
– LLVM host triple: x86_64-unknown-linux-gnu
– LLVM default target triple: x86_64-unknown-linux-gnu
– Building with -fPIC
– Targeting X86
– Targeting NVPTX
– Clang version: 13.0.0
– Not building amdgpu-arch: hsa-runtime64 not found
CMake Deprecation Warning at interpreter/cling/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

– Building Cling as part of ROOT
– Cling version (from VERSION file): ROOT_1.0~dev
– Cling will look for C++ headers in ‘/usr/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11:/usr/include/c++/11/backward’ at runtime.
– And then fallback to: ‘x86_64-linux-gnu-g+±11’
CMake Deprecation Warning at math/minuit2/CMakeLists.txt:7 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument value or use a … suffix to tell
CMake that the project does not need compatibility with older versions.

– Use SSL API VERSION 3.0 for civetweb
– Distributed RDataFrame enabled
– Looking for RapidYAML (used by RooFit)
– Could NOT find ryml (missing: RYML_LIBRARY RYML_INCLUDE_DIR)
– RapidYAML not found, only compiling RooFit with nlohmann-json parser
– Performing Test found_stdstringview
– Performing Test found_stdstringview - Success
– Performing Test found_stod_stringview
– Performing Test found_stod_stringview - Failed
– Performing Test found_stdapply
– Performing Test found_stdapply - Success
– Performing Test found_stdinvoke
– Performing Test found_stdinvoke - Success
– Performing Test found_stdindexsequence
– Performing Test found_stdindexsequence - Success
– ROOT Configuration

System Linux-6.2.0-34-generic
Processor 16 core 13th Gen Intel(R) Core™ i7-13700 (x86_64)
Build type Release
Install path /opt/root/root_install
Compiler GNU 11.4.0
Compiler flags:
C -Wno-implicit-fallthrough -pipe -Wall -W -pthread -O3 -DNDEBUG
C++ -std=c++17 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -DNDEBUG
Linker flags:
Executable -rdynamic
Module
Shared -Wl,–no-undefined -Wl,–hash-style=“both”

– Enabled support for: asimage builtin_afterimage builtin_clang builtin_cling builtin_gl2ps builtin_gtest builtin_llvm builtin_lz4 builtin_lzma builtin_nlohmannjson builtin_openui5 builtin_tbb builtin_vdt builtin_xrootd builtin_xxhash clad dataframe exceptions fftw3 fitsio gdml http imt mathmore mlp minuit2 mysql opengl pyroot roofit webgui root7 rpath runtime_cxxmodules shared ssl tmva tmva-cpu spectrum vdt x11 xml xrootd
– Configuring done (2.3s)
– Generating done (1.2s)
– Build files have been written to: /opt/root/root_build

You can install required dependencies by running

libxft-dev libxext-dev python libssl-dev 

If everything is already installed you should get a list of messages like this one:
packageX is already the newest version

Then, I highly recommend to install ROOT under a path in your home, e.g. /home/username/root_install , so you won’t need sudo permission. If you do that do you still get the error?

Do you mean apt-get install libxft-dev libxext-dev python libssl-dev ?
If so, all works except for the python which returns the following error:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python
python-is-python3

E: Package ‘python’ has no installation candidate

But mabye it’s just because python is already installed.

regarding the sudo vs home installation, I would like it to be installed for the the users of the computer.

Best,
Or

Sorry, I just pasted half of the command! It is indeed sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python3 libssl-dev.

I don’t think your problem is related to your python installation, In any case sudo apt-get install python3 should install it. It looks that your problem is related to your clang installation, however cmake is able to find clang v 13, which is enough recent.

What if you try a local installation?

It did worked with local installation, which is weird.
I still want to install it for all users, any idea how to do so?

Then I think you should try the fixed location installation. You can enable it by setting -Dgnuinstall=ON at configuration time, which then also allows the tuning of destinations for the various components by setting the variables CMAKE_INSTALL_xxxDIR, where xxx is BIN, LIB, INCLUDE, etc (the full list is available here). You also should set the CMAKE_INSTALL_PREFIX variable at configuration time (its default is /usr/local if unset).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.