Subject: Re: CFLAGS and building X from xsrc
To: Timo Sch?ler <timo.schoeler@macfinity.net>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: current-users
Date: 09/05/2004 05:28:28
On Sun, Sep 05, 2004 at 00:24:54 +0200, Timo Sch?ler wrote:

> >How does it fail?  I've just built x11 yesterday, updating my laptop.
> 
> - checked out (-current) src and xsrc approx. six hours ago
> 
> - /etc/mk.conf says:
> 
> X11SRCDIR=/usr/xsrc
> MKX11=yes
> 
> - built toolchain for macppc (host is i386/MP (-j 2 runs fine))
> 
> dreyfus: {100} uname -a
> NetBSD dreyfus.es43-bln.macfinity.net 2.0_BETA NetBSD 2.0_BETA  
> (GENERIC.MP) #0: Mon Aug 16 05:58:45 UTC 2004   
> autobuild@tgm.netbsd.org:/autobuild/netbsd-2-0/i386/OBJ/autobuild/ 
> netbsd-2-0/src/sys/arch/i386/compile/GENERIC.MP i386
> 
> - now building for macppc:
> 
> ./build.sh -m macppc -j 2 -x -T /usr/cross_macppc -O /usr/obj release
> 
> fails with:
> 
> (...)
> 
> --- libc_p.a ---
> /usr/cross_macppc/bin/powerpc--netbsd-ranlib libc_p.a
> [1]   Killed                  /usr/cross_macpp...
> *** [libc_p.a] Error code 137
> --- libc_pic.a ---
> /usr/cross_macppc/bin/powerpc--netbsd-ranlib libc_pic.a
> 1 error
> 
> nbmake: stopped in /usr/src/lib/libc
[...]
> building w/o X is successful...

Weird.  It fails way before it even reaches x11 build.  Also it's
killed with SIGKILL, which is suspicious.  From the waving a dead
chicked department, I'd try building w/out -j 2.

PS: You don't need to build tools as a separate step.  build.sh does
that automatically.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen