Problem linking lCore

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

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.

Hi,

I am building on a local machine with slc3, gcc 3.23 and with root v4.03.02

Hervé

You have a mismatch between your PATH and LD_LIBRARY_PATH variables.

Rene

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é

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

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é

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