make check bugs
Michael Abshoff
Michael.Abshoff at fsmath.mathematik.uni-dortmund.de
Thu Jul 12 17:07:12 CEST 2007
Castellon Salvador, Cesar wrote:
Hello Cesar,
> hyrcania# make check> popc.c
> /bin/bash ../libtool --mode=link gcc -O2 -m64 -mptr64 -mcpu=ultrasparc
> -o t-p
> opc t-popc.o libtests.la ../libgmp.la
> gcc -O2 -m64 -mptr64 -mcpu=ultrasparc -o .libs/t-popc t-popc.o
You compile a 64 bit library "-m64 -mptr64 ...:"
> make check-TESTS
> make[4]: Entering directory `/kk/cesar/gmp-4.2.1/tests'
> ld.so.1: /kk/cesar/gmp-4.2.1/tests/.libs/t-bswap: error fatal:
> /opt/gnuada/gcc/lib/libgcc_s.so.
> 1: clase ELF incorrecta: ELFCLASS32
but you link against 32 bit gcc libraries ("ELFCLASS32").
To resolve this:
a) configure with "ABI=32" to get a 32 but gmp
or
b) include the 64 bit libs of gcc in $LD_LIBRARY_PATH - on my sparc box
for exmaple that would be
/usr/local/gcc-3.4.2/lib/sparcv9/ [notive the "v9"]
The 32 bit libs are in "/usr/local/gcc-3.4.2/lib/"
>
> Regards,
> /Cesar
Hope this helps,
Michael
PS: Can this problem be added to the Manuel/FAQ because it crops up at
least once or twice a month. I know, if people were to read the manual
these questions would never be asked, but unfortunately we have to live in
reality. My apologies if this is already in the manual and I was to dim to
look for it ;) Googling for "gmp ELFCLASS32" also solves the problem
instantly.
More information about the gmp-bugs
mailing list