/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9

Hi

Title says it all…

I built root from sources with no problems and --all option, but when I am trying to run RootFit I get

/localgrid_mnt/localgrid/alkaloge/root534/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /localgrid_mnt/localgrid/alkaloge/root534/lib/libCore.so)

[2012-10-31 22:27:16] /localgrid_mnt/localgrid/alkaloge/root534/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /localgrid_mnt/localgrid/alkaloge/root534/lib/libRint.so)

[2012-10-31 22:27:16] /localgrid_mnt/localgrid/alkaloge/root534/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /localgrid_mnt/localgrid/alkaloge/root534/lib/libCint.so)

Any help is appreciated.

Thanks

Alexis

It seems to me that you built your ROOT on a machine/system which is incompatible with the one that you now try to run that ROOT on.

Hi

Do not think so, since ROOT was build correctly and on top, the error I am getting is on the exact same machine that I did this…

thanks for your time anyway!

Try (inspect absolute paths of all libraries reported by “ldd”):
root-config --bindir
ldd root-config --bindir/root.exe
root-config --libdir
ldd root-config --libdir/libTree.so
root-config --etcdir

thanks!

I get

ldd `root-config --bindir`/root.exe linux-vdso.so.1 => (0x00007fff649fd000) libCore.so => /user/alkaloge/root534/lib/libCore.so (0x00002b8cca6a7000) libRint.so => /user/alkaloge/root534/lib/libRint.so (0x00002b8ccae82000) libstdc++.so.6 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libstdc++.so.6 (0x00002b8ccaeb7000) libgcc_s.so.1 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libgcc_s.so.1 (0x00002b8ccafbe000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003472200000) libc.so.6 => /lib64/libc.so.6 (0x0000003471600000) libz.so.1 => /sandbox/cmss/slc5_amd64_gcc434/cms/cmssw-patch/CMSSW_4_2_8_patch7/external/slc5_amd64_gcc434/lib/libz.so.1 (0x00002b8ccb007000) libCint.so => /user/alkaloge/root534/lib/libCint.so (0x00002b8ccb01f000) libdl.so.2 => /lib64/libdl.so.2 (0x0000003471e00000) libm.so.6 => /lib64/libm.so.6 (0x0000003471a00000) /lib64/ld-linux-x86-64.so.2 (0x0000003471200000) alkaloge@m2:~/root534 ] root-config --libdir /user/alkaloge/root534/lib alkaloge@m2:~/root534 ] ldd `root-config --libdir`/libTree.so linux-vdso.so.1 => (0x00007fffdcbfd000) libNet.so => /user/alkaloge/root534/lib/libNet.so (0x00002b7c13f24000) libRIO.so => /user/alkaloge/root534/lib/libRIO.so (0x00002b7c14088000) libThread.so => /user/alkaloge/root534/lib/libThread.so (0x00002b7c1429f000) libCore.so => /user/alkaloge/root534/lib/libCore.so (0x00002b7c142f4000) libCint.so => /user/alkaloge/root534/lib/libCint.so (0x00002b7c14acf000) libstdc++.so.6 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libstdc++.so.6 (0x00002b7c15267000) libgcc_s.so.1 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libgcc_s.so.1 (0x00002b7c1536e000) libc.so.6 => /lib64/libc.so.6 (0x00002b7c153b7000) libMathCore.so => /user/alkaloge/root534/lib/libMathCore.so (0x00002b7c1570f000) libm.so.6 => /lib64/libm.so.6 (0x00002b7c15956000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b7c15bd9000) libz.so.1 => /sandbox/cmss/slc5_amd64_gcc434/cms/cmssw-patch/CMSSW_4_2_8_patch7/external/slc5_amd64_gcc434/lib/libz.so.1 (0x00002b7c15df4000) libdl.so.2 => /lib64/libdl.so.2 (0x00002b7c15e0c000) /lib64/ld-linux-x86-64.so.2 (0x0000003471200000) alkaloge@m2:~/root534 ] root-config --etcdir /user/alkaloge/root534/etc

and indeed I see that is gives

libstdc++.so.6 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libstdc++.so.6 (0x00002b8ccaeb7000)

what that tell us ?

thanks !

Which compiler did you use when building ROOT?
Was it “slc5_amd64_gcc434”?
If not, you need to clean your LD_LIBRARY_PATH (and PATH).

first, thanks for your prompt replies :wink:

So, yes that was it

uname -a Linux m2.iihe.ac.be 2.6.18-274.18.1.el5 #1 SMP Fri Feb 10 14:14:58 CET 2012 x86_64 x86_64 x86_64 GNU/Linux alkaloge@m2:~/CMSSW_4_2_8_patch7/src/New/TopTreeAnalysis/macros ] echo $SCRAM_ARCH slc5_amd64_gcc434

and

export LD_LIBRARY_PATH=/user/alkaloge/Python-2.6.5/lib:$LD_LIBRARY_PATH=:$ROOTSYS/lib:$LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/lib:

what am I missing ?

Try something like: export PATH="`${ROOTSYS}/bin/root-config --bindir`:${PATH}" export LD_LIBRARY_PATH="`${ROOTSYS}/bin/root-config --libdir`:${LD_LIBRARY_PATH}" or even better, try simply: source ${ROOTSYS}/bin/thisroot.sh

No…always the same annoying message :frowning:

Does this happen immediately when you try to start “root” and/or “root.exe”?

it happens while trying to initialize histFactory ie

Creating directory structure... Copying skeleton configuration files... /localgrid_mnt/localgrid/alkaloge/root534/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /localgrid_mnt/localgrid/alkaloge/root534/lib/libCore.so) /localgrid_mnt/localgrid/alkaloge/root534/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /localgrid_mnt/localgrid/alkaloge/root534/lib/libRint.so) /localgrid_mnt/localgrid/alkaloge/root534/bin/root.exe: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /localgrid_mnt/localgrid/alkaloge/root534/lib/libCint.so)

apart from this, ROOT works fine…

I assume that if you try:
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libCore.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRint.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libCint.so
you will get:
libstdc++.so.6 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libstdc++.so.6
and then I don’t understand why you get an error related to “/usr/lib64/libstdc++.so.6”.

Can it be that your RooFit built was not o.k.?
Try:
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRooFit.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRooStats.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRootAuth.so

Can it be that you have multiple “Roo*.so” libraries in your LD_LIBRARY_PATH and then ROOT finds the improper ones (i.e. not from “/localgrid_mnt/localgrid/alkaloge/root534/lib/”)?
Try:
locate libRooFit.so libRooStats.so libRootAuth.so

[quote=“Wile E. Coyote”]I assume that if you try:
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libCore.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRint.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libCint.so
you will get:
libstdc++.so.6 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libstdc++.so.6
and then I don’t understand why you get an error related to “/usr/lib64/libstdc++.so.6”.
[/quote]

Indeed… this is what I get

[quote=Can it be that your RooFit built is not o.k.?
Try:
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRooFit.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRooStats.so
ldd /localgrid_mnt/localgrid/alkaloge/root534/lib/libRootAuth.so

Can it be that you have multiple “Roo*.so” libraries in your LD_LIBRARY_PATH and then ROOT finds the improper ones (i.e. not from “/localgrid_mnt/localgrid/alkaloge/root534/lib/”)?
Try:
locate libRooFit.so libRooStats.so libRootAuth.so[/quote]

I get

libstdc++.so.6 => /sandbox/cmss/slc5_amd64_gcc434/external/gcc/4.3.4-cms/lib64/libstdc++.so.6 (0x00002b1c47692000)

for all of them… Maybe is something wrong linked with CMSSW ?

thanks

-a

Try to configure and build your ROOT from scratch using:

thanks! the last one solved my problems!

Best

alexis