Subject: Re: Build problems anyone?
To: =?ISO-8859-1?Q?Emil_Sk=F6ldberg?= <emil@math.su.se>
From: =?ISO-8859-1?Q?Timo_Sch=F6ler?= <timo.schoeler@macfinity.net>
List: current-users
Date: 09/07/2004 15:52:03
>> building tools with up-to-date src tree using
>>
>> ./build.sh -T /usr/obj/tools -x -X /home/dolecek/soft/netbsd/xsrc -U  
>> -u
> -j2 >tools
>>
>> fails for me in lex with:
>>
>> #   compile  lex/ccl.lo
>> cc -O -I/usr/obj/obj.i386/usr/home/dolecek/soft/netbsd/tools/compat
>> -I/usr/obj/obj.i386/usr/home/dolecek/soft/netbsd/tools/compat/include
>> -I/usr/home/dolecek/soft/netbsd/tools/lex/../compat
>> -DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64  -I.
>> -I/usr/home/dolecek/soft/netbsd/tools/lex/../../usr.bin/lex -c -o
> ccl.lo.o    >/usr/home/dolecek/soft/netbsd/usr.bin/lex/ccl.c
>> In file included from
> /usr/obj/obj.i386/usr/home/dolecek/soft/netbsd/tools/compat/config.h: 
> 114,
>>                 from
> /usr/home/dolecek/soft/netbsd/usr.bin/lex/flexdef.h:34,
>>                 from  
>> /usr/home/dolecek/soft/netbsd/usr.bin/lex/ccl.c:31:
> /usr/home/dolecek/soft/netbsd/tools/compat/compat_defs.h:66:2:
> #error _NETBSD_SOURCE is *not* to be defined.
>
>> Anyone else seen this problem?
>
> Yes,
>
> trying to build 'tools' natively on an alpha (with an up-to-date source
> tree), the build fails here. Cross-building from Linux (on an x86)  
> works
> fine though.

my build machine is

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

i built macppc yesterday, amiga is going thru now. as long as i run  
*w/o* -j 2 thus utilizing just one cpu, all goes well.

using -j 2, it kicks the buck (mostly) at building libc.

timo

:x!

This life is a test.  It is only a test.  Had this been an actual life,
you would have received further instructions as to what to do and where
to go.