jagalan
February 13, 2007, 9:14am
1
Hi,
2 weeks ago I was compiling without prolems a code that uses root libraries. Now, “ld” it is giving me a problem when it is linking -lCore:
/usr/bin/ld: skipping incompatible /afs/cern.ch/sw/lcg/external/root/5.14.00/slc3_ia32_gcc323/root/lib/libCore.so when searching for -lCore
/usr/bin/ld: cannot find -lCore
Do you have any hint for this?
Thanks
herve
March 8, 2007, 2:50pm
2
Hi,
I get the same message errors and do not manage to get rid of it. Did you manage to ?
Hervé
Hi,
I cannot reproduce the problem:
/home/bertrand/rootdev/test > g++ -O test.o -L/afs/cern.ch/sw/lcg/external/root/5.14.00/slc3_ia32_gcc323/root/lib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lGui -lm -ldl -rdynamic -lThread -o test
/home/bertrand/rootdev/test >
Do you really build on slc3/ia32/gcc3.23 ?
Cheers,
Bertrand.
herve
March 8, 2007, 3:58pm
4
Hi,
I am building on a local machine with slc3, gcc 3.23 and with root v4.03.02
Hervé
brun
March 8, 2007, 5:53pm
5
You have a mismatch between your PATH and LD_LIBRARY_PATH variables.
Rene
herve
March 8, 2007, 5:59pm
6
I don’t think so because when I do : echo $PATH, I get :
/public/cern/ROOT/v4.03.02/slc3_gcc3.2.3/root/bin
and when I do echo $LD_LIBRARY_PATH, I get :
/public/cern/ROOT/v4.03.02/slc3_gcc3.2.3/root/lib
Hervé
brun
March 8, 2007, 6:14pm
7
Look at your first post where you say:
/usr/bin/ld: skipping incompatible /afs/cern.ch/sw/lcg/external/root/5.14.00/slc3_ia32_gcc323/root/lib/libCore.so when searching for -lCore
/usr/bin/ld: cannot find -lCore
then you claim to use 4.03.02. A mismatch. Check carefully
your PATH and LD_LIBRARY_PATH.
Rene
herve
March 8, 2007, 6:19pm
8
In fact, I am not the person who posted the first message…
And the error message I get when I do
g++ root-config --cflags
root-config --glibs
HVB_DoeNtup_compileVersion.C -o HVB_DoeNtup_compileVersion
is :
/usr/bin/ld: skipping incompatible /public/cern/ROOT/v4.03.02/slc3_gcc3.2.3/root/lib/libCore.so when searching for -lCore
/usr/bin/ld: cannot find -lCore
collect2: ld returned 1 exit status
make: *** [HVB_DoeNtup_compileVersion] Error 1
Hervé
brun
March 8, 2007, 6:26pm
9
Are you by chance (or no luck) running on lxplus on a amd64 machine
and you try to mix code compiled in 64 bit mode with a library compiled
in 32 bit mode.
See the list of supported binaries on /afs at root.cern.ch
Rene