Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Can I get some crossbuilding help (rescue/chown not building)

On Fri, 20 May 2011, Jean-Yves Migeon wrote:

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/ -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:
"${.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:=
"${.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

Try increasing some limits (by going root), then su back to your user:

ulimit -p unlimited
ulimit -n unlimited
su <user>

Nope. I forgot, I did it without that (you can tell by the missing
build lines you get when you do a parallel build).

Hisashi T Fujinaka -
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

Home | Main Index | Thread Index | Old Index