This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran] where is -lfrtbegin?


"Steven G. Kargl" wrote:

> The operating system is FreeBSD.  The compilation of
> Fortran dies with
> 
> kargl[284] f77 -o z -v z.f
> Driving: f77 -o z -v z.f -lfrtbegin -lg2c -lm
> Using built-in specs.
> Configured with: FreeBSD/i386 system compiler
> Thread model: posix
> gcc version 3.1 [FreeBSD] 20020509 (prerelease)
>  /usr/libexec/f771 z.f -quiet -dumpbase z.f -version -o /var/tmp/ccjgvYSx.s
> GNU F77 version 3.1 [FreeBSD] 20020509 (prerelease) (i386-undermydesk-freebsd)
>         compiled by GNU C version 3.1 [FreeBSD] 20020509 (prerelease).
>  /usr/libexec/elf/as -v -o /var/tmp/cc4kVtSZ.o /var/tmp/ccjgvYSx.s
> GNU assembler version 2.12.0 [FreeBSD] 2002-04-10 (i386-obrien-freebsd5.0) using BFD version 2.12.0 [FreeBSD] 2002-04-10
>  /usr/libexec/collect2 -V -dynamic-linker /usr/libexec/ld-elf.so.1 -o z /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o -L/usr/lib /var/tmp/cc4kVtSZ.o -lfrtbegin -lg2c -lm -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
> /usr/libexec/elf/ld: cannot find -lfrtbegin
> GNU ld version 2.12.0 [FreeBSD] 2002-04-10
>   Supported emulations:
>    elf_i386
> collect2: ld returned 1 exit status
> 
> I have searched both the stock GCC in FreeBSD-5.x and
> gcc-3.1 and I cannot find a file with the string "frtb"
> in it.  So, what is -lfrtbegin?  Where is it located?
> How does one disable the use of -lfrtbegin?

On my recent build of 3.2 (I do not have a 3.1 cvs tree handy)
libfrtbegin.a lives in /usr/snp/lib (I configured with
--prefix=/usr/snp):

$ ls /usr/snp/lib
gcc-lib   libbfd.la      libg2c.a   libg2c.so    libg2c.so.0.0.0 
libgcc_s.so.1  libmmalloc.a  libopcodes.la
libbfd.a  libfrtbegin.a  libg2c.la  libg2c.so.0  libgcc_s.so     
libiberty.a    libopcodes.a

So in your case it should reside in /usr/lib.

3.1 20020509 seems to have worked for Loren Rittle on FreeBSD 4.5:

http://gcc.gnu.org/ml/gcc-testresults/2002-05/msg00343.html

Hope this helps,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]