GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Pandaroot installation on scietific linux 5.7
[FIXED] Pandaroot installation on scietific linux 5.7 [message #14721] Mon, 06 May 2013 17:52 Go to next message
Andreas Pitka is currently offline  Andreas Pitka
Messages: 38
Registered: November 2011
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
Hi,

i am trying to install Pandaroot on our local Gießen cluster.

The external packages installation completes successful the make of pandaroot fails with the error:

Scanning dependencies of target svnheader
-- Found Subversion: /usr/bin/svn (found version "1.6.11")
-- FairRoot Revision - 19599 Branch - https://subversion.gsi.de/fairroot/pandaroot/release/apr13
[ 0%] Built target svnheader
[ 0%] Generating G__FairToolsDict.cxx
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /home/gd1696/fairroot/apr13/bin/rootcint)
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/gd1696/fairroot/apr13/bin/rootcint)
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/gd1696/fairroot/apr13/bin/rootcint)
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /home/gd1696/fairroot/apr13_src/../apr13/lib/root/libCint.so.5.34)
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/gd1696/fairroot/apr13_src/../apr13/lib/root/libCint.so.5.34)
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/gd1696/fairroot/apr13_src/../apr13/lib/root/libCint.so.5.34)
make[2]: *** [fairtools/G__FairToolsDict.cxx] Error 1
make[1]: *** [fairtools/CMakeFiles/FairTools.dir/all] Error 2
make: *** [all] Error 2

The external packages were compiled with gcc 4.7, with libstdc++.so in the folder /cm/shared/apps/gcc/4.7.0/lib64.

Somehow cmake seems to find the too old version of libstdc++.so in /usr/lib64 first.

Has someone a idea how to fix this?

ldd /home/gd1696/fairroot/apr13/bin/rootcint gives:
libCint.so.5.34 => not found
libstdc++.so.6 => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6 (0x00002aaaaacc9000)
libgcc_s.so.1 => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1 (0x00002aaaaafd1000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaab1e7000)
libm.so.6 => /lib64/libm.so.6 (0x00002aaaab53f000)
/lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)

Thanks a lot

Andreas

[Updated on: Thu, 22 August 2013 17:50] by Moderator

Report message to a moderator

Re: Pandaroot installation on scietific linux 5.7 [message #14722 is a reply to message #14721] Tue, 07 May 2013 08:52 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 31.189.115*
Which external packages? Is this your first time trying to install the software, or before with earlier versions it was working?
Is it possible that in your lib paths there is already some other version of root/geant?
Re: Pandaroot installation on scietific linux 5.7 [message #14723 is a reply to message #14722] Tue, 07 May 2013 09:00 Go to previous messageGo to next message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
HI,

Cmake takes the first compiler it found in your $PATH variable, you have to add the path to your new compiler before the "/usr/bin/" in your $PATH variable.

Mohammad
Re: Pandaroot installation on scietific linux 5.7 [message #14725 is a reply to message #14723] Tue, 07 May 2013 10:05 Go to previous messageGo to next message
Andreas Pitka is currently offline  Andreas Pitka
Messages: 38
Registered: November 2011
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
the correct g++ is already in PATH, for example

g++ -v gives:

gcc version 4.7.0 (GCC)

also the gcc library directory is added to LD_LIBRARY_PATH

I have installed the external packages apr13 and i am trying to install the apr13 Pandaroot release.

There is already a root installation present in PATH and LD_LIBRARY_PATH.

Its the first time i am trying to install it on this machine and also with older versions (of external packages and/or Pandaroot) its not compiling.
Re: Pandaroot installation on scietific linux 5.7 [message #14726 is a reply to message #14725] Tue, 07 May 2013 10:24 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
Most probably you have to remove from the paths all the old root parts.
Re: Pandaroot installation on scietific linux 5.7 [message #14741 is a reply to message #14726] Tue, 07 May 2013 18:44 Go to previous messageGo to next message
Andreas Pitka is currently offline  Andreas Pitka
Messages: 38
Registered: November 2011
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
I removed the second ROOT installation from PATH and LD_LIBRARY_PATH, and its still the same error.

i am also quite shure i am using the newer g++ version because cmake tells me:



-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /cm/shared/apps/gcc/4.7.0/bin/gcc
-- Check for working C compiler: /cm/shared/apps/gcc/4.7.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /cm/shared/apps/gcc/4.7.0/bin/g++
-- Check for working CXX compiler: /cm/shared/apps/gcc/4.7.0/bin/g++ -- works


Also the root seems to be linked to the correct libstdc++ since
ldd -v /home/gd1696/fairroot/apr13/bin/rootcint gives

libCint.so.5.34 => /home/gd1696/fairroot/apr13_src/../apr13/lib/root/libCint.so.5.34 (0x00002aaaaacc9000)
libstdc++.so.6 => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6 (0x00002aaaab646000)
libgcc_s.so.1 => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1 (0x00002aaaab94e000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaabb75000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaabecd000)
libm.so.6 => /lib64/libm.so.6 (0x00002aaaac0d1000)
/lib64/ld-linux-x86-64.so.2 (0x00002aaaaaaab000)

Version information:
/home/gd1696/fairroot/apr13/bin/rootcint:
libgcc_s.so.1 (GCC_3.0) => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1
libstdc++.so.6 (GLIBCXX_3.4.11) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (CXXABI_1.3) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.9) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.15) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/home/gd1696/fairroot/apr13_src/../apr13/lib/root/libCint.so.5.34:
libgcc_s.so.1 (GCC_3.0) => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1
libdl.so.2 (GLIBC_2.2.5) => /lib64/libdl.so.2
libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
libstdc++.so.6 (CXXABI_1.3.1) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.5) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.11) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (CXXABI_1.3) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.15) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.9) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4) => /cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
/cm/shared/apps/gcc/4.7.0/lib64/libstdc++.so.6:
libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6
ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
libgcc_s.so.1 (GCC_4.2.0) => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.3) => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.0) => /cm/shared/apps/gcc/4.7.0/lib64/libgcc_s.so.1
libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6


But still i get errors of the kind
[ 0%] Built target svnheader
[ 0%] Generating G__FairToolsDict.cxx
/home/gd1696/fairroot/apr13/bin/rootcint: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /home/gd1696/fairroot/apr13/bin/rootcint)

when i do make. Sad
Re: Pandaroot installation on scietific linux 5.7 [message #14759 is a reply to message #14741] Thu, 16 May 2013 12:11 Go to previous message
Andreas Pitka is currently offline  Andreas Pitka
Messages: 38
Registered: November 2011
Location: Gießen
continuous participant
From: *physik.uni-giessen.de
Ok i figured it out.

If the are multiple gcc installations one has to set:

export CXX=/path/to/g++
export CC=/path/to/gcc

And especially what caused my problem:

libstdc++ has to be in the LD_RUN_PATH

(what i still don t understand is, why the LD_LIBRARY_PATH is not sufficient since cmake first searches there and only afterwards in the system paths)

Now everything works fine. Smile
Previous Topic: [FIXED] Tutorial Error
Next Topic: [FIXED] Square root of negative number in PndRiemannTrack::dY ?
Goto Forum:
  


Current Time: Wed Nov 13 14:02:38 CET 2024

Total time taken to generate the page: 0.00745 seconds