Subject: cross-compile build.sh fails in tools/pax
To: None <current-users@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 01/25/2002 23:15:30
Hi,
a:
./build.sh -u -d -m sparc -D/usr/src/destdir
on i386 fails in tools/sparc. It seem that there are multiple inclusions:
obj ===> tools/pax
nbmake: "/usr/src/1.5ZA/src/share/mk/bsd.hostprog.mk" line 78: warning: duplicat
e script for target "pax" ignored
nbmake: "/usr/src/1.5ZA/src/share/mk/bsd.prog.mk" line 147: warning: using previ
ous script for "pax" defined here
nbmake: "/usr/src/1.5ZA/src/share/mk/bsd.hostprog.mk" line 91: warning: duplicat
e script for target "cleanprog" ignored
nbmake: "/usr/src/1.5ZA/src/share/mk/bsd.prog.mk" line 168: warning: using previ
ous script for "cleanprog" defined here
[etc - about 30 lines like this]

and then compilation fails because the host mkdep is passed -nostdinc which
it doesn't understand. Anyway it looks wrong to pass -nostdinc when compiling
a host tool. I suspect it's because bsd.prog.mk is inclued first.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--