Problem compiling root 5.34.38 in Ubuntu 22.04

I am trying to compile root 5.34.38 in Ubuntu 22.04, because I need it for Corsika and the Auger Offline. The last lines of the compilation:

checking for long long... yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking sys/time.h usability... [ 18%] Building CXX object cint/ROOT/CMakeFiles/list.dir/G__cpp_list.cxx.o
yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking stddef.h usability... gmake[2]: *** [cint/ROOT/CMakeFiles/queue.dir/build.make:67: cint/ROOT/CMakeFiles/queue.dir/G__cpp_queue.cxx.o] Error 1
gmake[2]: se sale del directorio '/home/pelayo/Auger/build/root/root-5.34.38-build'
gmake[1]: *** [CMakeFiles/Makefile2:1152: cint/ROOT/CMakeFiles/queue.dir/all] Error 2
gmake[1]: *** Se espera a que terminen otras tareas....
yes
checking stddef.h presence... yes
checking for stddef.h... yes
In file included from /home/pelayo/Auger/build/root/root-5.34.38-build/cint/ROOT/G__cpp_list.h:18,
                 from /home/pelayo/Auger/build/root/root-5.34.38-build/cint/ROOT/G__cpp_list.cxx:7:
/home/pelayo/Auger/build/root/root-5.34.38-build/include/root/G__ci_fproto.h:380:91: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  380 | G__DECL_API(238, G__int64, G__expr_strtoll, (const char *nptr,char **endptr, register int base))
      |                                                                                           ^~~~
/home/pelayo/Auger/build/root/root-5.34.38-build/include/root/G__ci.h:1613:23: note: in definition of macro ‘G__DECL_API’
 1613 |    G__EXPORT RET NAME ARGS ; G__DUMMYTOCHECKFORDUPLICATES(IDX)
      |                       ^~~~
/home/pelayo/Auger/build/root/root-5.34.38-build/include/root/G__ci_fproto.h:381:94: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  381 | G__DECL_API(239, G__uint64, G__expr_strtoull, (const char *nptr, char **endptr, register int base))
      |                                                                                              ^~~~
/home/pelayo/Auger/build/root/root-5.34.38-build/include/root/G__ci.h:1613:23: note: in definition of macro ‘G__DECL_API’
 1613 |    G__EXPORT RET NAME ARGS ; G__DUMMYTOCHECKFORDUPLICATES(IDX)
      |                       ^~~~
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for XShapeCombineMask in -lXext... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for unsigned char... yes
checking for unsigned short... yes
checking for an ANSI C-conforming const... yes
checking whether char is unsigned... no
checking png.h usability... yes
checking png.h presence... gmake[2]: *** [cint/ROOT/CMakeFiles/deque.dir/build.make:84: cint/ROOT/CMakeFiles/deque.dir/G__cpp_deque.cxx.o] Error 1
gmake[2]: se sale del directorio '/home/pelayo/Auger/build/root/root-5.34.38-build'
gmake[1]: *** [CMakeFiles/Makefile2:1191: cint/ROOT/CMakeFiles/deque.dir/all] Error 2
yes
checking for png.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for png_get_sRGB in png.h... yes
checking using built-in UNGIF library... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking libAfterBase... disabled
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/dirent.h usability... yes
checking sys/dirent.h presence... yes
checking for sys/dirent.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating afterbase.h
config.status: creating afterimage-libs
config.status: creating afterimage-config
config.status: creating config.h
config.status: config.h is unchanged
gmake[2]: *** [graf2d/asimage/CMakeFiles/AFTERIMAGE.dir/build.make:66: graf2d/asimage/libAfterImage/libAfterImage.a] Error 2
gmake[2]: se sale del directorio '/home/pelayo/Auger/build/root/root-5.34.38-build'
gmake[1]: *** [CMakeFiles/Makefile2:7651: graf2d/asimage/CMakeFiles/AFTERIMAGE.dir/all] Error 2
[ 18%] Linking CXX shared library ../../lib/list.dll
gmake[2]: se sale del directorio '/home/pelayo/Auger/build/root/root-5.34.38-build'
[ 18%] Built target list
gmake[1]: se sale del directorio '/home/pelayo/Auger/build/root/root-5.34.38-build'
gmake: *** [Makefile:152: all] Error 2

Any idea of what is happening?
Thanks in advance.

_ROOT Version:5.34.38
_Platform: Ubuntu 22.04
_Compiler: GCC 11.3


Dear Wile_E_Coyote, It was great!!! After a few weeks, I applied all your recommendations and finally compiled root5 in Ubuntu 22.04.

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