Subject: Cross-compiling HBC
To: None <port-mac68k@NetBSD.ORG, netbsd-help@NetBSD.ORG>
From: Simon Raahauge DeSantis <xiamin@scdesantis.ne.mediaone.net>
List: netbsd-help
Date: 07/28/1998 14:52:41
I'm trying to cross-compile HBC (a Haskell compilier) on a Linux box for
my NetBSD/mac68k machine. I've built binutils and gcc for my mahcine on
the Linux box and have them installed in decent places. I also installed
/usr/include and /usr/lib into ~/local/{include,lib} (I'm not sure if
that's the correct thing to do though, I'm working from the
cross-compilation HOW-TO on macbsd.com, which doesn't mention /usr/lib).
However, when I try to make HBC (using my gcc) I get this:
xiamin@uberjihad ~/hbc/src % make universe
cd syntax; make EXE= SYSTEM='-D__NetBSD__' STATICFLAG='' myinstall
make[1]: Entering directory `/h1/xiamin/hbc/src/syntax'
cd ugendir; make EXE=
make[2]: Entering directory `/h1/xiamin/hbc/src/syntax/ugendir'
sh ../../bin/mycc -s main.o gen.o lex.yy.o y.tab.o id.o tree.o yyerror.o
-o ugen
/home/xiamin/local/m68k-apple-netbsd1.3.2/bin/ld: cannot open crt0.o: No
such file or directory
make[2]: *** [ugen] Error 1
make[2]: Leaving directory `/h1/xiamin/hbc/src/syntax/ugendir'
make[1]: *** [ugen] Error 2
make[1]: Leaving directory `/h1/xiamin/hbc/src/syntax'
make: *** [myinstall] Error 2

I had hoped that putting /usr/lib where I did would solve the ld problem,
but I guess it didn't work. Can anyone give me a few pointers regarding
cross-compiling?

TIA
-Simon Raahauge DeSantis