On 19.05.2011 23:52, Hisashi T Fujinaka wrote:
Can anyone help me with crossbuilding?
I'm using the following line to try to crosscompile netbsd-5 on a
amd64-current system and I'm getting failures.
/home/netbsd/netbsd-5/src/build.sh -j8 -m amd64 -T
/usr/cross/amd64-stable -O /usr/obj/stable/amd64 -X
/home/netbsd/netbsd-5/xsrc -U -u distribution release iso-image
The failure is as follows:
( cd chown; printf '.PATH:
/home/netbsd/netbsd-5/src/sbin/chown\n.CURDIR:=
/home/netbsd/netbsd-5/src/sbin/chown\n.include
"${.CURDIR}/Makefile"\n' | /usr/cross/amd64-stable/bin/nbmake -f-
CRUNCHEDPROG=1 DBG="-Os" depend ) nbmake: "(stdin)" line 3: Cannot
open /home/netbsd/netbsd-5/src/sbin/chown/Makefile nbmake: Fatal
errors encountered -- cannot continue
nbmake: stopped in /usr/obj/stable/amd64/rescue/chown
*** Failed target: chown_make *** Failed command: ( cd chown; printf
'.PATH: /home/netbsd/netbsd-5/src/sbin/chown\n.CURDIR:=
/home/netbsd/netbsd-5/src/sbin/chown\n.include
"${.CURDIR}/Makefile"\n' | /usr/cross/amd64-stable/bin/nbmake -f-
CRUNCHEDPROG=1 DBG="-Os" depend ) *** Error code 1
Stop. nbmake: stopped in /home/netbsd/netbsd-5/src/rescue
Wild guess: -j8 can create lots of processes and files descriptors for
parallel builds, and you have probably hit the limit (for unprivileged
build).
Try increasing some limits (by going root), then su back to your user:
su
ulimit -p unlimited
ulimit -n unlimited
su <user>
*build*