[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug report as requested.
From: |
Ralf Wildenhues |
Subject: |
Re: Bug report as requested. |
Date: |
Thu, 11 Jan 2007 22:40:03 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
* Hugh Sasse wrote on Thu, Jan 11, 2007 at 10:51:42AM CET:
> > * Hugh Sasse wrote on Wed, Jan 10, 2007 at 11:25:14AM CET:
> > > g77 -g -O2 -o fprogram fprogram.o ./.libs/libfoo.a
> > > /usr/local/bin/ld: crt1.o: No such file: No such file or directory
> > > collect2: ld returned 1 exit status
> bash-2.05$ /bin/bash ./libtool --tag=F77 --mode=link g77 -v -g -O2 -o
> fprogram fprogram.o libfoo.la
> g77 -v -g -O2 -o fprogram fprogram.o ./.libs/libfoo.a
> Driving: g77 -v -g -O2 -o fprogram fprogram.o ./.libs/libfoo.a -lfrtbegin
> -lg2c -lm -shared-libgcc
> Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/specs
> Configured with: /scratch/hgs/gcc-3.4.3/configure --with-as=/usr/local/bin/as
> --with-ld=/usr/local/bin/ld --enable-languages=c,c++,f77,objc --disable-nls
> Thread model: posix
> gcc version 3.4.3
> /usr/local/libexec/gcc/sparc-sun-solaris2.9/3.4.3/collect2 -V -Y
> P,/usr/ccs/lib:/usr/lib -rpath-link /usr/lib -Qy -o fprogram
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crt1.o
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crti.o /usr/ccs/lib/values-Xa.o
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crtbegin.o
> -L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3
> -L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/../../../../sparc-sun-solaris2.9/lib
> -L/usr/ccs/bin -L/usr/ccs/lib
> -L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/../../.. fprogram.o
> ./.libs/libfoo.a -lfrtbegin -lg2c -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc -lc
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crtend.o
> /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.3/crtn.o
> GNU ld version 2.17
> Supported emulations:
> elf32_sparc
> elf64_sparc
> bash-2.05$
Now that I don't understand. Why does the link succeed now?
Did you change anything other than passing -v?
> 3.4.3? Oh, I remember having problems building fortran because of
> getting GMP and MPFR to work correctly.
It doesn't look like a GMP/MPFR related problem to me.
> So maybe now I have those
> working I should try to rebuild GCC-4.1.0 with fortran before proceeding?
Dunno, but I don't see why. I simply don't understand why
g77 -g -O2 -o fprogram fprogram.o ./.libs/libfoo.a
should fail but
g77 -v -g -O2 -o fprogram fprogram.o ./.libs/libfoo.a
should succeed? But maybe I have misunderstood something here.
Cheers,
Ralf