Native OpenBSD 3.4 gcc 3.3.2 build
Jim Wilson
wilson@specifixinc.com
Tue Dec 16 03:24:00 GMT 2003
Nedko Arnaudov wrote:
> /usr/local/i386-unknown-openbsd3.4/bin/ld: warning: cannot find entry symbol start; defaulting to 1c000310
> /usr/lib/crt0.o(.text+0x8b): In function `___start':
> : undefined reference to `__init'
> /usr/lib/crt0.o(.text+0x9d): In function `___start':
> : undefined reference to `main'
> /home/nedko/sandbox/gcc-3.3.2-build/gcc/libgcc.a(__main.o)(.text+0x57): In function `__do_global_ctors':
> /home/nedko/sandbox/gcc-3.3.2-build/gcc/../../gcc-3.3.2/gcc/libgcc2.c:1879: undefined reference to `_atexit'
The just built gcc does not work. It isn't clear if this is a gcc
problem or a binutils problem. The problem with main and atexit implies
that binutils-2.14 is incompatible with the system startfiles and
libraries. If that is the case, then you might have to build your own
copy of the OpenBSD C library to get this working. Or try a build using
the system linker instead of the binutils-2.14 linker.
You could try submitting a bug report into our bugzilla database, but
this doesn't look like something we can do much about. If OpenBSD is
intentionally using old or modified binutils, then we probably have to
rely on them to fix problems.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list