Subject: gcc-3.0 build problem.... (fwd)
To: None <tech-toolchain@netbsd.org>
From: Berndt Josef Wulf <wulf@dingo.ping.net.au>
List: tech-toolchain
Date: 05/11/2001 08:30:41
G'day
I haven't had much luck in finding an answer on the developer's
mailinging list and hence this post...
Some additional info: I've used config/netbsd.h and
config/i386/netbsd-elf.h from 2.95.2 as a modell in my attempt to get
gcc-3.0 to work.
Has anyone been successful in getting gcc-3.0 to work? I need it to
build the latest version of GNAT-Ada which is based on the upcoming
gcc-3.0 release.
Please reply to wulf@netbsd.org as I'm not subscribed to this mailing
list.
Many thanks in advance
cheerio Berndt
----- Forwarded message from Berndt Josef Wulf -----
From netbsd-developers-owner-wulf=netbsd.org@netbsd.org Thu May 10 22:42:48 2001
From: Berndt Josef Wulf <wulf@dingo.ping.net.au>
Message-Id: <200105101310.f4ADAXE04360@dingo.ping.net.au>
Subject: gcc-3.0 build problem....
To: developers@netbsd.org
Date: Thu, 10 May 2001 22:40:26 +0930 (CST)
Organization: NTC-Electronics
Phone: +61 411 245170
Operating-System: NetBSD 1.5 alpha
Sender: netbsd-developers-owner@netbsd.org
Content-Length: 1751
G'day,
I've managed to build the gcc-3.0 binaries, however, when trying to
compile the famous "hello world" program the following error occurs:
hotdog: {860} /usr/opt/bin/gcc test.c -o test
/usr/lib/crt0.o: In function `___start':
/usr/lib/crt0.o(.text+0xc1): undefined reference to `main'
/var/tmp//ccESugbu.o(.text+0x22): undefined reference to `_printf'
/usr/opt/lib/gcc-lib/i386-unknown-netbsdelf1.5V/3.1/libgcc.a(__main.o):
In function `__do_global_ctors':
/usr/src/contrib/gnu/gcc/gcc/./libgcc2.c(.text+0x57): undefined
reference to `_atexit'
collect2: ld returned 1 exit status
What does this mean? Do I need a newer version of the csu files?
Please find below the current STARTFILE_SPEC AND ENDFILE_SPEC
declarations:
#define STARTFILE_SPEC \
"%{!shared: \
%{pg:gcrt0%O%s} \
%{!pg: \
%{p:gcrt0%O%s} \
%{!p:crt0%O%s}}} \
%{!shared:crtbegin%O%s} %{shared:crtbeginS%O%s}"
#define ENDFILE_SPEC \
"%{!shared:crtend%O%s} %{shared:crtend%O%s}"
#define LINK_SPEC \
"%{assert*} \
%{shared:-shared} \
%{!shared: \
-dc -dp \
%{!nostdlib:%{!r*:%{!e*:-e __start}}} \
%{!static: \
%{rdynamic:-export-dynamic} \
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
%{static:-static}}"
Sysinfo: NetBSD-1.5V-i386, GCC-3.0, compiled with GCC-2.95.2
Any help is very much appreciated
cheerio Berndt
--
Name : Berndt Josef Wulf | +++ With BSD on Packet Radio +++
E-Mail : wulf@ping.net.au | tfkiss, tnt, dpbox, wampes
ICQ : 18196098 | VK5ABN, Nairne, South Australia
URL : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.5 | BBS : vk5abn.#lmr.#sa.aus.oc
----- End of forwarded message from Berndt Josef Wulf -----
--
Name : Berndt Josef Wulf | +++ With BSD on Packet Radio +++
E-Mail : wulf@ping.net.au | tfkiss, tnt, dpbox, wampes
ICQ : 18196098 | VK5ABN, Nairne, South Australia
URL : http://www.ping.net.au/~wulf | MBOX : vk5abn@vk5abn.#lmr.#sa.au.oc
Sysinfo : DEC AXPpci33+, NetBSD-1.5 | BBS : vk5abn.#lmr.#sa.aus.oc