Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 15:49:35 -0800 (PST)
From:      andrew@violet.org
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   i386/8901: gcc 2.8.1 fails to compile under FreeBSD 3.0-release
Message-ID:  <199811292349.PAA16789@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         8901
>Category:       i386
>Synopsis:       gcc 2.8.1 fails to compile under FreeBSD 3.0-release
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 29 16:00:01 PST 1998
>Last-Modified:
>Originator:     Andrew
>Organization:
violet.org
>Release:        3.0-Release
>Environment:
FreeBSD violet.violet.org 3.0-RELEASE FreeBSD 3.0-RELEASE #0: Fri Nov 27 16:58:26 PST 1998     root@violet.violet.org:/usr/src/sys/compile/VIOLET  i386

>Description:
Running Freebsd 3.0-release, there appears to be a bug in
/usr/lib/crt1.o which will not allow one to compile an ELF
gcc-2.8.1 from origional source or even install the port:
1. the port:
# make install
===>  gcc-2.8.1 is broken for ELF: /usr/lib/aout/crt0.o: file not recognized: File format not recognized.
#
2. compile from origional source:
# make LANGUAGES=c
...<snip>...
./xgcc -B./  -DIN_GCC   -g -I./include   enquire.o -o enquire
/usr/libexec/elf/ld: cannot open crt0.o: No such file or directory
*** Error code 1
Stop.
#
3. compile from origional source: (after either: a. symlink
        /usr/lib/crt0.o /usr/lib/crt1.o -or- b. editing
        <build-directory>/specs and replacing all occurences of crt0 -> crt1)
# make LANGUAGES=c
...<snip>...
./xgcc -B./  -DIN_GCC   -g -I./include   enquire.o -o enquire
/usr/libexec/elf/ld: warning: cannot find entry symbol start; defaulting to 080483d0
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x49): undefined reference to `main'
enquire.o: In function `overflow':
/usr/build/gcc/gcc-2.8.1/./enquire.c(.text+0xd): undefined reference to `_signal'
enquire.o: In function `setmode':
/usr/build/gcc/gcc-2.8.1/./enquire.c(.text+0x57): undefined reference to `_(short,  (void))'
...<snip>...
/usr/build/gcc/gcc-2.8.1/enquire.c(.text+0xacb4): undefined reference to `_printf'
enquire.o(.text+0xad05):/usr/build/gcc/gcc-2.8.1/enquire.c: more undefined references to `_printf' follow
enquire.o: In function `__sputc':
/usr/include/stdio.h(.text+0xd56d): undefined reference to `___swbuf'
./libgcc.a(__main.o): In function `__do_global_ctors':
/usr/build/gcc/gcc-2.8.1/./libgcc2.c(.text+0x66): undefined reference to `_atexit'
*** Error code 1
Stop.
#

>How-To-Repeat:
Compile gcc-2.8.1 on FreeBSD 3.0-Release
>Fix:

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811292349.PAA16789>