Subject: cross-compiler
To: i386 NetBSD Mailing List <port-i386@NetBSD.ORG>
From: Brian Hechinger <wonko@blackhole.arkham.net>
List: port-i386
Date: 06/13/1997 11:12:32
ok, i tried to build binutils-2.8:

root@blackhole> ./configure --target=i386-intel-netbsd
Configuring for a sparc-sun-solaris2.5.1 host.
Created "Makefile" in /export/home/wonko/src/binutils-2.8 using "config/mh-solaris"

cool.

root@blackhole> make

get's a lot done but complains with this:

In file included from /usr/local/include/ctype.h:45,
                 from fnmatch.c:47:
/usr/local/include/sys/cdefs.h:62: warning: `__P' redefined
../include/fnmatch.h:30: warning: this is the location of the previous definition

and then later dies with:

getruntime.c: In function `get_run_time':
getruntime.c:72: `HZ' undeclared (first use this function)
getruntime.c:72: (Each undeclared identifier is reported only once
getruntime.c:72: for each function it appears in.)
make[1]: *** [getruntime.o] Error 1
make[1]: Leaving directory `/export/home/wonko/src/binutils-2.8/libiberty'
make: *** [all-libiberty] Error 2

at least i'm assuming it died as i can't find the cross-as or cross-ld bins
anywhere.  as i look in /export/home/wonko/src/binutils-2.8/libiberty i see
that only half of the source has made it to object code (everything before
getruntime.c has been compiled, everything after getruntime.c hasn't)

what am i missing? where did i go wrong? i copied /usr/include and /usr/lib
from my i386-netbsd box to /usr/local/i386-intel-netbsd/[include,lib]

-brian

-- 
** Brian Hechinger ** wonko@mail.arkham.net ** http://www.arkham.net **
--
"Color is for web wanking.  mono is for writing code.  Gimme a Mono Sun 3 and 
an expresso machine any day :-)"

						-Bob Beck