Root on gentoo problem

Hello, are there problem on gentoo server? I get this erro trying to lunch ROOT

gentoo LEMMA-TB2021 $ root
Fatal in <TROOT::InitInterpreter>: cannot load library /cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib64/root/6.24/lib/libCling.so)

Hi @faca87 ,
there seems to be some mixup between /cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/lib64/libstdc++.so.6 and /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib64/root/6.24/lib/libCling.so. Let’s see if @amadio can help.

Cheers,
Enrico

You cannot mix up LCG and Gentoo prefix. LCG is built for CentOS and sourcing an LCG script from within Gentoo prefix will prepend incompatible libraries to LD_LIBRARY_PATH and break Gentoo. If you need a package not available in the prefix, let me know. I can install it.

Hello @amadio
To run root by gentoo, I do this

/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/startprefix
root

yuo said me this command here

and it worked up to few weeks ago…but now, it doesn’t work!

Anyway, I just need a Root on cvmf (so I don’t need to download the root file generated by Geant4) is there other way to lunch ROOT on cvmf?

Hi @faca87 ,
it works for me:

[eguiraud@lxplus724 ~]$ /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/startprefix
Entering Gentoo Prefix /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64
~ $ root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.24/00                        https://root.cern |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Apr 14 2021, 14:33:50                 |
  | From tags/v6-24-00@v6-24-00                                      |
  | With                                                             |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

root [0]

Make sure you don’t have any line in your .bashrc or your .profile that loads stuff from LCG.

What does the command env print when you are inside the gentoo prefix?

Cheers,
Enrico

Hello @eguiraud

here the env print

gentoo ~ $ env
SHELL=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/bin/bash
XDG_CONFIG_DIRS=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/xdg
LESS=-R -M --shift 5
G4ENSDFSTATEDATA=/cvmfs/geant4.cern.ch/share/data/G4ENSDFSTATE2.3
JDK_HOME=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/java-config-2/current-system-vm
QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
CONFIG_PROTECT_MASK=/etc/sandbox.d /etc/fonts/fonts.conf /cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/gentoo-release /etc/terminfo /etc/ca-certificates.conf /etc/revdep-rebuild
PKG_CONFIG_PATH=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib64/pkgconfig:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/pkgconfig
LMOD_CACHED_LOADS=yes
JAVA_HOME=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/java-config-2/current-system-vm
CMTCONFIG=Linux-x86_64
G4PIIDATA=/cvmfs/geant4.cern.ch/share/data/G4PII1.3
PYTHIA8DATA=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/pythia8/xmldoc
COMPILER_PATH=/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7
EDITOR=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/bin/nano
PWD=/home/casaburf
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
MANPATH=/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/share/man:/cvmfs/sft.cern.ch/lcg/releases/binutils/2.30-e5b21/x86_64-centos7/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/java-config-2/current-system-vm/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/binutils-data/x86_64-pc-linux-gnu/2.34/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/java-config-2/current-system-vm/man/:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/local/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/rust/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/12/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/11/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/10/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/9/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/root/6.24/share/man:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/root/6.22/share/man
G4INCLDATA=/cvmfs/geant4.cern.ch/share/data/G4INCL1.0
CXX=/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/g++
G4LEDATA=/cvmfs/geant4.cern.ch/share/data/G4EMLOW7.13
OPENCL_PROFILE=ocl-icd
HOME=/home/casaburf
G4PARTICLEXSDATA=/cvmfs/geant4.cern.ch/share/data/G4PARTICLEXS3.1.1
LANG=C
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
OPENGL_PROFILE=xorg-x11
INFOPATH=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/gcc-data/x86_64-pc-linux-gnu/9.3.0/info:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/binutils-data/x86_64-pc-linux-gnu/2.34/info:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/info:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/info/emacs-26
JAVAC=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/etc/java-config-2/current-system-vm/bin/javac
G4NEUTRONHPDATA=/cvmfs/geant4.cern.ch/share/data/G4NDL4.6
PYTHONPATH=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/root/6.24/lib:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/root/6.22/lib
TERM=xterm-256color
LESSOPEN=|lesspipe %s
USER=casaburf
XERCESC_NLS_HOME=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/xerces-c/msg
MANPAGER=manpager
SHLVL=1
PAGER=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/bin/less
G4PARTICLEHPDATA=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share/geant4/data/G4TENDL1.3.2
G4SAIDXSDATA=/cvmfs/geant4.cern.ch/share/data/G4SAIDDATA2.0
CMTROOT=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib64/CMT/v1r26p20160527
LD_LIBRARY_PATH=/cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/lib64:/cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/lib64:/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/lib:/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/lib64:/cvmfs/sft.cern.ch/lcg/releases/binutils/2.30-e5b21/x86_64-centos7/lib:/cvmfs/sft.cern.ch/lcg/releases/clhep/2.4.4.0-b903d/x86_64-centos7-gcc8-opt/lib:/cvmfs/sft.cern.ch/lcg/views/LCG_geant4ext20210118/x86_64-centos7-gcc8-opt/lib:/cvmfs/sft.cern.ch/lcg/releases/clhep/2.4.4.0-b903d/x86_64-centos7-gcc8-opt/lib:/cvmfs/sft.cern.ch/lcg/views/LCG_geant4ext20210118/x86_64-centos7-gcc8-opt/lib:/cvmfs/sft.cern.ch/lcg/releases/LCG_geant4ext20210118/qt5/5.12.4/x86_64-centos7-gcc8-opt/lib/
GCC_SPECS=
G4REALSURFACEDATA=/cvmfs/geant4.cern.ch/share/data/RealSurface2.2
FC=/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/gfortran
G4ABLADATA=/cvmfs/geant4.cern.ch/share/data/G4ABLA3.1
XDG_DATA_DIRS=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/local/share:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/share
PATH=/cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/bin:/cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/bin:/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin:/cvmfs/sft.cern.ch/lcg/releases/binutils/2.30-e5b21/x86_64-centos7/bin:/home/casaburf/:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/local/sbin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/local/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/sbin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/sbin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/opt/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/12/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/11/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/10/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/llvm/9/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/root/6.24/bin:/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/lib/root/6.22/bin:/usr/bin:/bin:/home/casaburf/.local/bin:/home/casaburf/bin
G4LEVELGAMMADATA=/cvmfs/geant4.cern.ch/share/data/PhotonEvaporation5.7
QT_QPA_PLATFORM_PLUGIN_PATH=/cvmfs/sft.cern.ch/lcg/releases/LCG_geant4ext20210118/qt5/5.12.4/x86_64-centos7-gcc8-opt/plugins
CC=/cvmfs/sft.cern.ch/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/bin/gcc
G4RADIOACTIVEDATA=/cvmfs/geant4.cern.ch/share/data/RadioactiveDecay5.6
CMTBIN=Linux-x86_64
_=/cvmfs/sft.cern.ch/lcg/contrib/gentoo/linux/x86_64/usr/bin/env

and here my bash_profile

.bash_profile.txt (1.9 KB)

Uhm @amadio what do you think, it’s probably because of the geant4 setup ?

@eguiraud and @amadio but I had the geant4 setup in the past too, because I use Geant4…

anyway, you are right…
now I commented the lines


#source /cvmfs/sft.cern.ch/lcg/contrib/gcc/8.3.0/x86_64-centos7-gcc8-opt/setup.sh
#source /cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/bin/geant4.sh
#source /cvmfs/geant4.cern.ch/geant4/10.7.p01/x86_64-centos7-gcc8-optdeb-MT/CMake-setup.sh
#source /cvmfs/geant4.cern.ch/geant4/10.6.p03/x86_64-centos7-gcc8-optdeb-MT/bin/geant4.sh
#source /cvmfs/geant4.cern.ch/geant4/10.6.p03/x86_64-centos7-gcc8-optdeb-MT/CMake-setup.sh

and it works…
but I don’t understand the reason because in the past it worked with the geant4 setup too…
is there a solution to have the both (geant4 and root)?

You need to either take ROOT and Geant from the gentoo prefix or take them both from the LCG releases. For ROOT in the LCG releases, see here: Installing ROOT - ROOT (but note that you want the Centos 8 builds and not the Centos7 builds with current lxplus - which tells me we need to update that page). For the gentoo prefix we need Guilherme.

Cheers,
Enrico

Thank you @eguiraud

I can’t find centos 8

but it looks like working with centos 7

is it a problem using centos 7?

You can try an LCG view (it should have ROOT and geant 4):

source /cvmfs/sft.cern.ch/lcg/views/LCG_99/x86_64-centos8-gcc10-opt/setup.sh

The Gentoo prefix has both ROOT and Geant4, no need to use from LCG. Note that Geant4 is also already setup with the proper environment variables, so you don’t need any setup for that either.

1 Like

I guess the bottom line is, wherever you pick ROOT and Geant4 from, don’t mix :slight_smile:

Thank you the both @eguiraud and @amadio now I’m using Geant4 and Root by LCG

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