I have explored this a little further.  If I 
  export CC=gcc\ -v
I get no more information out of this really.  It is skipping those
libraries, but I can't see why.  GNU ld seems to lack a verbose option.
Running
  configure --without-gnu-ld
doesn't help -- configure sees that GCC uses /usr/local/bin/ld and
proceeds to use that.  At the moment I have no reason to assert that
it shouldn't use GNU ld, only that since GNU ld insists on skipping
those libraries it seems worth trying to get Sun's ld in on the act.

Can anyone advise me how to proceed, please?
        Thank you,
        Hugh


On Mon, 4 Dec 2006, Hugh Sasse wrote:

> On Sat, 2 Dec 2006, Neil Jerram wrote:
> 
> > Hugh Sasse <[EMAIL PROTECTED]> 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
> > 
> 
> 
> 
> _______________________________________________
> Guile-user mailing list
> Guile-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/guile-user
> 



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to