From owner-freebsd-hackers Sun Nov 29 13:57:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA07812 for freebsd-hackers-outgoing; Sun, 29 Nov 1998 13:57:30 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from apogee.whack.org (apogee.whack.org [209.152.153.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA07793; Sun, 29 Nov 1998 13:57:26 -0800 (PST) (envelope-from andrew@whack.org) Received: from andrew by apogee.whack.org with local (Exim 2.05 #1) id 0zkEpF-0002Pu-00; Sun, 29 Nov 1998 13:56:17 -0800 Message-ID: <19981129135617.A9283@apogee.whack.org> Date: Sun, 29 Nov 1998 13:56:17 -0800 From: Andrew To: questions@FreeBSD.ORG Cc: hackers@FreeBSD.ORG Subject: crt1.o [ELF] is broken in 3.0-release? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all, 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: (this is a really bogus error, BROKEN_ELF; gcc-2.8.1 compiles ELF binaries on other platforms) # 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: (this is what I really want to do) # make LANGUAGES=c ...... ./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 /specs and replacing all occurences of crt0 -> crt1) # make LANGUAGES=c ...... ./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))' ...... /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. # Cordially, _____________________________________________ Andrew Perkins andrew@violet.org System Administrator 415.739.0540 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message