Subject: Re: compiling -current on amd64...
To: Kurt Schreiner <ks@ub.uni-mainz.de>
From: Andrew Reilly <andrew-netbsd@areilly.bpc-users.org>
List: current-users
Date: 06/26/2006 21:40:44
On Mon, Jun 26, 2006 at 11:42:01AM +0200, Kurt Schreiner wrote:
> ...failed (sources cvs updated an hour ago or so, starting from clean ...obj/ etc
> and using gcc4:

I've been getting the same fault today, cross-building
netbsd-i386 on a FreeBSD-amd64 system.  Thought it was my fault.

I've had a look at this and it's very odd.  I can get concat.c to
compile by running that command line with -E and then
back-editing the varargs parts by hand, but haven't figured out
an incantation to make it compile normally.  Seems that
__buildin_stdarg_start() (which va_start seems to expand to,
which VA_START() uses) is doing something terribly broken.  The
code itself looks fine.

*** Failed target:  concat.o
*** Failed command:
/usr/home/andrew/rtos-comp/netbsd/src/../obj/tooldir.FreeBSD
-6.1-RC-i386/bin/i386--netbsdelf-gcc -O2 -Werror -DHAVE_CONFIG_H
-I/usr/home/and
rew/rtos-comp/netbsd/src/gnu/lib/libiberty/arch/i386
-I/usr/home/andrew/rtos-com
p/netbsd/src/gnu/dist/binutils/include -nostdinc -isystem
/usr/home/andrew/rtos-
comp/netbsd/src/../obj/destdir.i386/usr/include -c
/usr/home/andrew/rtos-comp/ne
tbsd/src/gnu/dist/binutils/libiberty/concat.c -o concat.o
*** Error code 1

Stop.
nbmake: stopped in
/usr/home/andrew/rtos-comp/netbsd/src/gnu/lib/libiberty


-- 
Andrew