[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.8.1 config fails, but gmp passed its tests.
From: |
Hugh Sasse |
Subject: |
Re: 1.8.1 config fails, but gmp passed its tests. |
Date: |
Mon, 4 Dec 2006 10:10:28 +0000 (WET) |
On Sat, 2 Dec 2006, Neil Jerram wrote:
> Hugh Sasse <address@hidden> writes:
>
> > bash-2.05$ cat foo.c
> > #include <gmp.h>
> > int
> > main ()
> > {
> > mpz_import (0, 0, 0, 0, 0, 0, 0);
> > return 0;
> > }
> >
> > bash-2.05$ gcc -o foo -g -O2 foo.c -lgmp -lcrypt -lm -lltdl
> >
> > /usr/local/bin/ld: skipping incompatible
> > /usr/local/lib/gcc/sparc-sun-solaris2.9/4.1.0/../../../libgmp.so when
> > searching for -lgmp
/usr/local/lib/gcc/sparc-sun-solaris2.9/4.1.0/../../../libgmp.so: ELF
64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
> > /usr/local/bin/ld: skipping incompatible
> > /usr/local/lib/gcc/sparc-sun-solaris2.9/4.1.0/../../../libgmp.a when
> > searching for -lgmp
/usr/local/lib/gcc/sparc-sun-solaris2.9/4.1.0/../../../libgmp.a: current
ar archive, not a dynamic executable or shared object
> > /usr/local/bin/ld: skipping incompatible /usr/local/lib/libgmp.so when
> > searching for -lgmp
/usr/local/lib/libgmp.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1,
dynamically linked, not stripped
> > /usr/local/bin/ld: skipping incompatible /usr/local/lib/libgmp.a when
> > searching for -lgmp
/usr/local/lib/libgmp.a: current ar archive, not a dynamic executable or
shared object
> > /usr/local/bin/ld: cannot find -lgmp
> > collect2: ld returned 1 exit status
> > bash-2.05$
And these are the same ones:
> > bash-2.05$ gcc -o foo -g -O2 foo.c -lgmp -lcrypt -lm -lltdl
> > /usr/local/bin/ld: skipping incompatible
> > /usr/local/lib/gcc/sparc-sun-solaris2.9/4.1.0/../../../libgmp.so when
> > searching for -lgmp
> > /usr/local/bin/ld: skipping incompatible
> > /usr/local/lib/gcc/sparc-sun-solaris2.9/4.1.0/../../../libgmp.a when
> > searching for -lgmp
> > /usr/local/bin/ld: skipping incompatible /usr/local/lib/libgmp.so when
> > searching for -lgmp
> > /usr/local/bin/ld: skipping incompatible /usr/local/lib/libgmp.a when
> > searching for -lgmp
> > /usr/local/bin/ld: cannot find -lgmp
as far as I can see.
> > collect2: ld returned 1 exit status
> > bash-2.05$
>
> >From googling for "ld skipping incompatible when searching" it looks
> like this is a 32-bit / 64-bit incompatibility. Are the libraries
> listed above as "incompatible" 32-bit libraries, or 64-bit? (I expect
> the "file" command will tell you this.)
And I get the same results for builds on:
sun4u sparc SUNW,Sun-Blade-100 Solaris
sun4u sparc SUNW,Ultra-250 Solaris
both Solaris 2.9, both gcc-4.1.0, both binutils-2.17
Maybe I need to give the .a files to ranlib? I thought the install did that.
>
> Regards,
> Neil
>
Thank you,
Hugh
>