libgmp.so: could not read symbols: File in wrong format
Chris Boyd
Chris.Boyd at hughes.com
Fri Sep 16 18:13:07 CEST 2011
Trying to compile gcc-4.6.1 on RHEL 5.4 using gmp-5.0.2
The link of libjavamath.so fails with the error:
/usr/local/tools/gcc/src/gcc-4.6.1/lib/libgmp.so: could not read symbols: File in wrong format
Complete error below.
Here is the gmp configure line.
./configure --prefix=/usr/local/tools/gcc/src/gcc-4.6.1
Gcc's configure is:
./configure --prefix=/usr/local/tools/gcc/4.6.1 --with-gmp=/usr/local/tools/gcc/src/gcc-4.6.1 --with-mpc=/usr/local/tools/gcc/src/gcc-4.6.1 --with-mpfr=/usr/local/tools/gcc/src/gcc-4.6.1
LD_LIBRARY_PATH=/usr/local/tools/gcc/src/gcc-4.6.1/lib
I know this is an old version of RHEL but it is what it is and my hands are tied.
Any and all suggestions are much appreciated.
--Thanks, Chris
libtool: link: /usr/local/tools/gcc/src/gcc-4.6.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/usr/local/tools/gcc/src/gcc-4.6.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/tools/gcc/4.6.1/x86_64-unknown-linux-gnu/bin/ -B/usr/local/tools/gcc/4.6.1/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/tools/gcc/4.6.1/x86_64-unknown-linux-gnu/include -isystem /usr/local/tools/gcc/4.6.1/x86_64-unknown-linux-gnu/sys-include -m32 -shared .libs/gnu_java_math_GMP.o ../../../native/jni/classpath/.libs/jcl.o -Wl,-rpath -Wl,/usr/local/tools/gcc/src/gcc-4.6.1/lib -Wl,-rpath -Wl,/usr/local/tools/gcc/src/gcc-4.6.1/lib -L/usr/local/tools/gcc/src/gcc-4.6.1/lib /usr/local/tools/gcc/src/gcc-4.6.1/lib/libgmp.so -m32 -m32 -m32 -Wl,-soname -Wl,libjavamath.so -o .libs/libjavamath.so
/usr/local/tools/gcc/src/gcc-4.6.1/lib/libgmp.so: could not read symbols: File in wrong format
More information about the gmp-discuss
mailing list