Problems installing gmp

Marc Glisse marc.glisse at
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
>    ../
>    gcc -O2 -m64 -mptr64 -mcpu=ultrasparc3 -o .libs/t-count_zeros
>    t-count_zeros.o  ./.libs/libtests.a
>    /usr/local/src/gmp-build/.libs/ ../.libs/
>    -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.

> t-count_zeros: fatal: /usr/local/lib/ 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, at 

Marc Glisse

More information about the gmp-bugs mailing list