Link fails on lxplus

Recently, I logged on the lxplus machine having redhat 3.4.6 and gcc version 3.4.6. The version of ROOT is
My Makefiles all fail in the link on this machine.
The message I get is:
/usr/bin/ld: skipping incompatible /afs/ when searching for -lCore
/usr/bin/ld: cannot find -lCore
collect2: ld returned 1 exit status
gmake: *** [TwoPad] Error 1
I join an example of Makefile which fails
Thanks for your help
Makefile.txt (3.53 KB)

Could you try with:
instead of the CMS version. The patch release 5.14.0of contains a fix when
the library has been compiled with -m32 and you are compiling on a 64 bit node.


Your diagnostic is correct!
As I have to try to learn CMSSW, I am linked to this version of ROOT compiled in 32 bits mode. So I have tried to compile my code also in 32 bit mode by adding -m32 in the CXXFLAGS and also in the LDFLAGS. And it works!
Thanks a lot!