1 Reply Latest reply on Mar 9, 2011 12:47 PM by philippg

    Incompatible libraries




      I am trying to rebuild an old code, which I had successfully built a couple of months ago. I guess MCPC was updated a recently and now, when I try to build the same source, I get:


      ld: skipping incompatible /usr/lib/libm.a when searching for -lm
      ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.4.3/32/../libstdc++.a when searching for -lstdc++
      ld: cannot find -lstdc++
      make: *** [SCC_ReadTemp] Error 1



      I am sure that there is some path that needs to be updated, and I appreciate if someone can point out the solution.


      I also get this error (as before, it was successfully built and run a few months ago):


      Command-line error: invalid GNU version number: 443


      compilation aborted for MPI_helper_routines.c (code 4)
      make: *** [app] Error 4


      Can someone help?


      Also, is there a recommended strategy to avoid breaks like this when MCPC at the data center is updated?



      Devendra Rai

        • 1. Re: Incompatible libraries

          This is just a guess, but most likely your LD_LIBRARY_PATH is either not set or contains the wrong paths, as your GCC 3.4.5 binary is trying to use the 4.4.3 libraries.


          Check or source /opt/compilerSetupFiles/crosscompile.sh to get the correct library paths and try again.