Bug#353363: g77-3.4: collect2 linking fails when calling libc6-dev "crt1.o"
Package: g77-3.4
Version: 3.4.3-13
Severity: normal
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages g77-3.4 depends on:
ii gcc-3.4 3.4.3-13 The GNU C compiler
ii gcc-3.4-base 3.4.3-13 The GNU Compiler Collection (base
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libg2c0-dev 1:3.3.5-13 GNU Fortran 77 library development
-- no debconf information
Additional notes:
Compilation of simple example "circle.f" fails. Source and error
messages follow.
circle.f source:
> program circle
> real r, area
>
> c This program reads a real number r and prints
> c the area of a circle with radius r.
>
> write (*,*) 'Give radius r:'
> read (*,*) r
> area = 3.14159*r*r
> write (*,*) 'Area = ', area
>
> stop
> end
Error messages from "gcc-3.4 -x f77 circle.f" are:
> /usr/lib/gcc/i486-linux/3.4.4/../../../../lib/crt1.o(.text+0x18): In
> function `_start':
> ../sysdeps/i386/elf/start.S:98: undefined reference to `main'
> /tmp/ccBomHcX.o(.text+0xf): In function `MAIN__':
> : undefined reference to `s_wsle'
> /tmp/ccBomHcX.o(.text+0x28): In function `MAIN__':
> : undefined reference to `do_lio'
> /tmp/ccBomHcX.o(.text+0x30): In function `MAIN__':
> : undefined reference to `e_wsle'
> /tmp/ccBomHcX.o(.text+0x3d): In function `MAIN__':
> : undefined reference to `s_rsle'
> /tmp/ccBomHcX.o(.text+0x55): In function `MAIN__':
> : undefined reference to `do_lio'
> /tmp/ccBomHcX.o(.text+0x5d): In function `MAIN__':
> : undefined reference to `e_rsle'
> /tmp/ccBomHcX.o(.text+0x7b): In function `MAIN__':
> : undefined reference to `s_wsle'
> /tmp/ccBomHcX.o(.text+0x94): In function `MAIN__':
> : undefined reference to `do_lio'
> /tmp/ccBomHcX.o(.text+0xac): In function `MAIN__':
> : undefined reference to `do_lio'
> /tmp/ccBomHcX.o(.text+0xb4): In function `MAIN__':
> : undefined reference to `e_wsle'
> /tmp/ccBomHcX.o(.text+0xc3): In function `MAIN__':
> : undefined reference to `s_stop'
> collect2: ld returned 1 exit status
(gcc-3.4 specified on command line to select Debian installed version of
gcc/g77 compiler.)
Error messages from source builds of of gcc-3.4.5 and glibc-2.3.6 on Debian
sarge are very similar. Failure always occurs with undefined references
in crt1.o.
Platforms are all 1686-pc-gnu-linux.
TIA,
Scott
Reply to: