Root with Linux Mint 21.2 Cinnamon

Hi,

I am trying to install ROOT on Linux Mint 21.2 Cinnamon, but I always encounter an error. I have tried versions 6.22 through 6.32.02, but none of them can be installed, whether using the binary or the source.

During the cmake .. -build . -j4 command, the following error occurs: Here is the Error display in case of source 6.32.02.

[ 74%] Building CXX object core/clingutils/CMakeFiles/ClingUtils.dir/src/TClingUtils.cxx.o
CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:37 (message):
Command failed: 2

‘/usr/local/bin/cmake’ ‘–build’ ‘.’ ‘–config’ ‘.’

See also

/home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-*.log

– stdout output is:
[ 0%] Built target intrinsics_gen
[ 3%] Building CXX object lib/Differentiator/CMakeFiles/cladDifferentiator.dir/BaseForwardModeVisitor.cpp.o

– stderr output is:
gmake[4]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[4]: *** Waiting for unfinished jobs…
gmake[5]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[5]: *** Waiting for unfinished jobs…
gmake[4]: *** [CMakeFiles/Makefile2:266: lib/Differentiator/CMakeFiles/cladDifferentiator.dir/all] Error 2
gmake[3]: *** [Makefile:136: all] Error 2

CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:47 (message):
Stopping after outputting logs.

gmake[2]: *** [interpreter/cling/tools/plugins/clad/CMakeFiles/clad.dir/build.make:86: interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:36724: interpreter/cling/tools/plugins/clad/CMakeFiles/clad.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…

any help please.

Best, MO

Welcome to the ROOT Forum!
See:

Note that you can disable clad, or apply the patch from the PR

hi tahnk you,

But the same error still take palce

CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:37 (message):
Command failed: 2

‘/usr/local/bin/cmake’ ‘–build’ ‘.’ ‘–config’ ‘.’

See also

/home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-*.log

– stdout output is:
[ 0%] Built target intrinsics_gen
[ 3%] Building CXX object lib/Differentiator/CMakeFiles/cladDifferentiator.dir/ReverseModeForwPassVisitor.cpp.o

– stderr output is:
gmake[4]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[4]: *** Waiting for unfinished jobs…
gmake[5]: *** read jobs pipe: Bad file descriptor. Stop.
gmake[5]: *** Waiting for unfinished jobs…
gmake[4]: *** [CMakeFiles/Makefile2:266: lib/Differentiator/CMakeFiles/cladDifferentiator.dir/all] Error 2
gmake[3]: *** [Makefile:136: all] Error 2

CMake Error at /home/mohamed/Packages/Root_Dir/root-6.32.02/build/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-Release.cmake:47 (message):
Stopping after outputting logs.

gmake[2]: *** [interpreter/cling/tools/plugins/clad/CMakeFiles/clad.dir/build.make:86: interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:36724: interpreter/cling/tools/plugins/clad/CMakeFiles/clad.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

Weird. Did you apply the relevant changes in interpreter/cling/tools/plugins/clad/CMakeLists.txt?

No, I haven’t changed this file.

Now, ROOT is installed with Clad and Cling disabled using the command: cmake -Dcling=OFF -Dclad=OFF ..

I would like to know if this compilation choice will impact Delphes or Pythia under MadGraph.

Best regards,
MO

So obviously the build of Clad fails…

First I don’t think you can disable cling at all (i.e. -Dclad=OFF is good enough), then I don’t know if this will impact Delphes or Pythia under MadGraph

I wanna try again within the modifications that you have set

if(_clad_build_type STREQUAL "")
   set(EXTRA_BUILD_ARGS --config ${_clad_build_type})
endif()

but what’s about this two comands in the ligne 91

  BUILD_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type}
  INSTALL_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type} --target install

best Regards, MO

First, it’s:

if(NOT _clad_build_type STREQUAL "")
  set(EXTRA_BUILD_ARGS --config ${_clad_build_type})
endif()

And then, you have to replace these lines:

  BUILD_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type}
  INSTALL_COMMAND ${CMAKE_COMMAND} --build . --config ${_clad_build_type} --target install

By these lines:

  BUILD_COMMAND ${CMAKE_COMMAND} --build . ${EXTRA_BUILD_ARGS}
  INSTALL_COMMAND ${CMAKE_COMMAND} --build . ${EXTRA_BUILD_ARGS} --target install

After testing on Linux, I think it should be:

if(NOT _clad_build_type STREQUAL "" AND NOT _clad_build_type STREQUAL ".")
  set(EXTRA_BUILD_ARGS --config ${_clad_build_type})
endif()

Thank you,

I do these modifications but Unfortunately, the error still,
I will try just cmake -Dclad=OFF ..

cherrs, MO

OK, as you prefer

Cheers, Bertrand.

1 Like

Thank you for the information Bellenot

Best regards, MO

1 Like

Just for a sanity check: what binary did you try to install? Mint 21.2 is based on Ubuntu 22.04, so I suppose you should try the binary for that version of Ubuntu (and also install the dependencies for Ubuntu), e.g. root_v6.32.04.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz for the latest.

1 Like

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