Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 13:56:17 -0800
From:      Andrew <andrew@violet.org>
To:        questions@FreeBSD.ORG
Cc:        hackers@FreeBSD.ORG
Subject:   crt1.o [ELF] is broken in 3.0-release?
Message-ID:  <19981129135617.A9283@apogee.whack.org>

next in thread | raw e-mail | index | archive | help
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
...<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.
#


Cordially,
_____________________________________________
Andrew Perkins              andrew@violet.org
System Administrator             415.739.0540


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



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