Problems installing gmp

Marc Glisse marc.glisse at normalesup.org
Mon Jul 24 23:55:02 CEST 2006


On Mon, 24 Jul 2006, Herve Pages wrote:

>    gcc -DHAVE_CONFIG_H -I. -I/usr/local/src/gmp-4.2.1/tests -I..
>    -I/usr/local/src/gmp-4.2.1    -O2 -m64 -mptr64 -mcpu=ultrasparc3 -c
>    /usr/local/src/gmp-4.2.1/tests/t-count_zeros.c
>    /usr/local/bin/bash ../libtool --mode=link gcc  -O2 -m64 -mptr64
>    -mcpu=ultrasparc3   -o t-count_zeros  t-count_zeros.o libtests.la
>    ../libgmp.la
>    gcc -O2 -m64 -mptr64 -mcpu=ultrasparc3 -o .libs/t-count_zeros
>    t-count_zeros.o  ./.libs/libtests.a
>    /usr/local/src/gmp-build/.libs/libgmp.so ../.libs/libgmp.so
>    -R/usr/local/lib

Where is this -R/usr/local/lib coming from ? Very bad idea. It should be 
/usr/local/lib/sparcv9 if anything.

>    ld.so.1: t-count_zeros: fatal: /usr/local/lib/libgcc_s.so.1: wrong
>    ELF class: ELFCLASS32
>    /usr/local/bin/bash: line 1: 26990 Killed                  ${dir}$tst
>    FAIL: t-count_zeros
>
> I have the feeling that after reading your "Suggested read" the
> solution to my problem should be just obvious to me... but I'm
> affraid this is not the case :-/
> Is there anything else you can suggest me?

set LD_LIBRARY_PATH_64 to the directory with the right libgcc_s.so.1, at 
runtime.

-- 
Marc Glisse


More information about the gmp-bugs mailing list