How does one turn the GDML feature ON during ROOT installation?

Post the output of:

/usr/local/bin/root-config --prefix
/usr/local/bin/root-config --exec-prefix
/usr/local/bin/root-config --bindir
/usr/local/bin/root-config --libdir
/usr/local/bin/root-config --incdir
/usr/local/bin/root-config --etcdir
/usr/local/bin/root-config --tutdir
/usr/local/bin/root-config --srcdir
/../acad$ /usr/local/bin/root-config --prefix; /usr/local/bin/root-config --exec-prefix; /usr/local/bin/root-config --bindir; /usr/local/bin/root-config --libdir; /usr/local/bin/root-config --incdir; /usr/local/bin/root-config --etcdir; /usr/local/bin/root-config --tutdir; /usr/local/bin/root-config --srcdir;
/usr/local
/usr/local
/usr/local/bin
/usr/local/lib
/usr/local/include
/usr/local/etc
Unknown argument "--tutdir"!
Usage: root-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--auxcflags] [--ldflags] [--new] [--nonew] [--libs] [--glibs] [--evelibs] [--bindir] [--libdir] [--incdir] [--etcdir] [--srcdir] [--noauxcflags] [--noauxlibs] [--noldflags] [--has-<feature>] [--arch] [--platform] [--config] [--features] [--ncpu] [--git-revision] [--python-version] [--cc] [--cxx] [--f77] [--ld ] [--help]
/../Software/acad/root

With the precompiled bianries, I am facing now this kind of problem. In my case the error is:

/from/somewhere/$ g++ -std=c++11  mycode.cpp `root-config --glibs --cflags` -o mycode
/../Software/acad/root/lib/libImt.so: undefined reference to `tbb::interface7::internal::isolate_within_arena(tbb::interface7::internal::delegate_base&, long)'
collect2: error: ld returned 1 exit status

Following this thread I changed LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib to LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATHand exported… but the error remains.

Two more:

/usr/local/bin/root-config --cflags
/usr/local/bin/root-config --libs

Here:

-pthread -std=c++11 -m64 -I/usr/local/include
-L/usr/local/lib -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lMultiProc -pthread -lm -ldl -rdynamic

So, you’ve got a real mess and I don’t have any easy solution.

Maybe @Axel can provide you with an appropriate full “install_manifest.txt” file for exactly the ROOT version that you built and installed (which you unfortunately deleted together with your “<builddir>”).

Otherwise, I think the only way would be to configure and build your original ROOT version (i.e. exactly the same version that you previously built and installed) from scratch again, using “cmake -Dall=ON ...”, and then execute “make install”. This will again create the “install_manifest.txt” file, which you can then use in order to remove all installed files: “sudo xargs rm < install_manifest.txt

I was actually doing that… right now make -j8 is at 73%… but of course some hundreds of lines of 73% … it will take a while…

I would like to see if this freshly made install (my original version) works OK… with GDML etc… then I am going to keep it… otherwise “ sudo xargs rm < install_manifest.txt ”.

But you do understand that the first answer to any problems will be … upgrade your ROOT version.

I actually have no idea how that happened! I install root through cmake and in other machines I have kept multiple versions and switch among them.

By the way, while make-ing this time, in the end… this happened:

[ 83%] Building CXX object hist/hist/CMakeFiles/Hist.dir/src/TPolyMarker.cxx.o
make[2]: *** No rule to make target '/acad/root/root_sources/root-v6-18-04/proof/proofx/src/TXSocketHandler.cxx', needed by 'proof/proofx/CMakeFiles/Proofx.dir/src/TXSocketHandler.cxx.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object proof/proofx/CMakeFiles/Proofx.dir/src/TXSocket.cxx.o
/bin/sh: 1: cd: can't cd to /acad/root/root_build/proof/proofx
proof/proofx/CMakeFiles/Proofx.dir/build.make:211: recipe for target 'proof/proofx/CMakeFiles/Proofx.dir/src/TXSocket.cxx.o' failed
make[2]: *** [proof/proofx/CMakeFiles/Proofx.dir/src/TXSocket.cxx.o] Error 2
make[2]: *** No rule to make target '/acad/root/root_sources/root-v6-18-04/hist/hist/src/TProfile2D.cxx', needed by 'hist/hist/CMakeFiles/Hist.dir/src/TProfile2D.cxx.o'.  Stop.
make[2]: *** Waiting for unfinished jobs....
Building CXX object hist/hist/CMakeFiles/Hist.dir/src/TPrincipal.cxx.o
/bin/sh: 1: cd: can't cd to /acad/root/root_build/hist/hist
hist/hist/CMakeFiles/Hist.dir/build.make:1529: recipe for target 'hist/hist/CMakeFiles/Hist.dir/src/TPrincipal.cxx.o' failed
make[2]: *** [hist/hist/CMakeFiles/Hist.dir/src/TPrincipal.cxx.o] Error 2
CMakeFiles/Makefile2:28879: recipe for target 'proof/proofx/CMakeFiles/Proofx.dir/all' failed
make[1]: *** [proof/proofx/CMakeFiles/Proofx.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:21836: recipe for target 'hist/hist/CMakeFiles/Hist.dir/all' failed
make[1]: *** [hist/hist/CMakeFiles/Hist.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

What Waiting for unfinished jobs it is talking about? My MySQL shell is open, could this be the reason? I was not doing anything else though… just importing some DB to my MySQL server and a shell was open.

Attaching the CMakeCache: CMakeCache_20-05-06_02-13-54.txt (156.3 KB)

I assume, on these another machines you didn’t execute “make install” (i.e. ROOT was used from the directory in which it was built) or you installed each version is another directory.

No idea what happened now but for me, “-j8” assumes that you have at least 16 GB memory (RAM + swap), otherwise building it will die. Also, maybe your disk is full (note: something like 6 GB may be needed).

I have 16GB (used 3.2GB) + 500MB swap, I have been using -j8 on this laptop regularly though. Also that partition where I am installing ROOT, has 61GB free space.

So, simply try to run “make” again (it should “continue” building).

It failed at 100%, CUDA issues…

[100%] Building CUDA object tmva/tmva/CMakeFiles/TMVA.dir/src/DNN/Architectures/Cuda/CudaMatrix.cu.o
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9268): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9279): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9292): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9303): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9316): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9327): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9340): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9352): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9365): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9376): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9389): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9401): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9410): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9419): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9428): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9437): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9445): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9454): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9463): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9472): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9481): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9490): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9499): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9508): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9517): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9526): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9535): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9544): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(55): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(63): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(73): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(81): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(91): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(100): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(109): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(117): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(127): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(136): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(145): error: argument of type "void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512pfintrin.h(153): error: argument of type "void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10799): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10811): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10823): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10835): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10847): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10859): error: argument of type "const void *" is incompatible with parameter of type "const float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10871): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10883): error: argument of type "const void *" is incompatible with parameter of type "const double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10895): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10907): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10919): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10931): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10943): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10955): error: argument of type "const void *" is incompatible with parameter of type "const int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10967): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10979): error: argument of type "const void *" is incompatible with parameter of type "const long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(10989): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11000): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11009): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11020): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11029): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11040): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11049): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11060): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11069): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11080): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11089): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11100): error: argument of type "void *" is incompatible with parameter of type "float *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11109): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11120): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11129): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11140): error: argument of type "void *" is incompatible with parameter of type "double *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11149): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11160): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11169): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11180): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11189): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11200): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11209): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11220): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11229): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11240): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11249): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11260): error: argument of type "void *" is incompatible with parameter of type "int *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11269): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11280): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11289): error: argument of type "void *" is incompatible with parameter of type "long long *"

/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512vlintrin.h(11300): error: argument of type "void *" is incompatible with parameter of type "long long *"

92 errors detected in the compilation of "/tmp/tmpxft_00005995_00000000-6_Cuda.cpp1.ii".
tmva/tmva/CMakeFiles/TMVA.dir/build.make:4347: recipe for target 'tmva/tmva/CMakeFiles/TMVA.dir/src/DNN/Architectures/Cuda.cu.o' failed
make[2]: *** [tmva/tmva/CMakeFiles/TMVA.dir/src/DNN/Architectures/Cuda.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/HistFactoryModelUtils.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/HistFactoryNavigation.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/HistFactorySimultaneous.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/HistoToWorkspaceFactory.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/HistoToWorkspaceFactoryFast.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/HistRef.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/LinInterpVar.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/MakeModelAndMeasurements.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/MakeModelAndMeasurementsFast.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/Measurement.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/ParamHistFunc.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/PiecewiseInterpolation.cxx.o
CMakeFiles/Makefile2:31055: recipe for target 'tmva/tmva/CMakeFiles/TMVA.dir/all' failed
make[1]: *** [tmva/tmva/CMakeFiles/TMVA.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/PreprocessFunction.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/RooBarlowBeestonLL.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/Sample.cxx.o
[100%] Building CXX object roofit/histfactory/CMakeFiles/HistFactory.dir/src/Systematics.cxx.o
[100%] Linking CXX shared library ../../lib/libHistFactory.so
[100%] Built target HistFactory
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Earlier, when the make failed with CUDA not found or something… I went ahead and installed CUDA… and now make is failing because of that.

Which essential functions require CUDA? Does any of the geometry, roofit, or any other such essential feature needs CUDA? If not, how can I disable this while make-ing. I couldn’t find it in this list.

UPDATE: decided to try to turn a few things ON for now:

-Dpython3=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.6m -Dgdml=ON -Dbuiltin_davix=ON -Dbuiltin_gsl=ON -Dbuiltin_cfitsio=ON 
-Dtbb=ON -Dccache=ON -Dmt=ON -Dsoversion=ON  -Dbuiltin_xrootd=ON

Not that I need them all, as all is failing so selecting as much as I can.

@moneta why does TMVA.dir/src/DNN/Architectures/Cuda.cu.o fail to compile?

@quantatanu we vividly recommend people to not run make install especially when using multiple versions of ROOT (that’s what Wile_E hinted at). But instead to download the binaries if at all possible, unpack them into some directory, and simply select the one they want by running its dir/to/ROOT/version/bin/thisroot.sh.

Cheers, Axel

I was facing the following problem with downloaded binaries

As everything pointed to a still existing and broken /usr/local/root for some reason, I have to make install my original installed version and then “sudo xargs rm < install_manifest.txt”, and hope to successfully use downloaded binaries.

Hi,
Which Cuda version are you using ? Cuda is used by TMVA, if you don’t need you can disable with
-Dcuda=Off

Lorenzo

Try: cmake -Dall=ON -Dcuda=OFF ...
And use -j6 at most (actually, I think you should create a 4 GB swap file at least).

When things started to fail even with -Dcuda=OFF, I decided to cmake with just -Dgdml=ON (no other options passed) and make -j8 and make install succeeded! But… then I realized that no other root versions were working even if source that particular thisroot.sh, make install enforces that version systemwide! Therefore, I followed

and

and did a “ sudo xargs rm < install_manifest.txt ” and downloaded binaries of that version… I can switch versions (alias set to source different thisroot.sh) now… gdml files are opening and

This does compile without errors

g++ -std=c++11  mycode.cpp `root-config --glibs --cflags` -o mycode   # code contains TSQLServer

and mycode runs successfully. But with these binaries, how do I import ROOT to python so that I can install and use software like GeGeDe, this installation guide suggests doing:

$ sudo apt-et install libroot-bindings-python5.34
$ export PYTHONPATH=/usr/lib/x86_64-linux-gnu/root5.34
$ python -c 'import ROOT'  # <-- just a test...

How do I achieve this with my preferred binaries?

By the way, I really appreciate all the help. I have learned quite a lot of lessons.

To finally close this and for future-someone like me, I should add solution to my last problem, importing ROOT in python when that ROOT is a pre-compiled binary, and I will also share my experiences in running multiple cmake installed ROOTs.

Pre-compiled ROOTs: are compiled using default python versions, usually python2 in most cases, in my case, I had python3 that’s why it was failing, it shouldn’t fail for someone with python2 or someone who can make python2 as their default version.

cmake installed multiple ROOT experience: It’s related to how I imported ROOT: python3 -c 'import ROOT', I kept my already stored pre-compiled binaries, but went ahead and installed 2 more ROOTs through cmake-->make-->make install, apparently, I can switch between these two without trouble just by source-ing their specific thisroot.sh files… just like the pre-compiled bianaries.

Therefore, I am happy to report this good news to @Axel

I am sure being an expert, they already know it. And probably, I might face problems in the future related to this approach, but as pre-compiled binaries are not availablefor multiple python versions, there’s no other way other than the make install, as different software depends on different python versions and they require ROOT importing that will fail if python versions don’t match.

Thanks

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