Subject: port-sparc64/23497: i386 crossbuild of sparc64 fails
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/19/2003 10:33:06
>Number:         23497
>Category:       port-sparc64
>Synopsis:       i386 crossbuild of sparc64 fails
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 19 18:34:00 UTC 2003
>Release:        NetBSD 1.6ZF
System: NetBSD sanctum 1.6ZF NetBSD 1.6ZF (GENERIC) #0: Tue Nov 18 22:05:39 PST 2003 root@sanctum:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
	I am attempting a 32bit -> 64bit crossbuild.  Specifically I am using
	a i386 host to build a -current sparc64 distribution.  It fails to
	compile config.

	cd /usr/src
	./ -D /usr/destdir -R /usr/releasedir distribution
	#   compile  gram.o
	/usr/src/obj/tooldir.NetBSD-1.6ZF-i386/bin/sparc64--netbsd-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wno-format-y2k -Werror   -I/usr/src/usr.sbin/config -I.  -nostdinc -isystem /usr/destdir/usr/include  -c    gram.c
	/usr/src/usr.sbin/config/gram.y: In function `yyparse':
	/usr/src/usr.sbin/config/gram.y:384: warning: long long int format, __int64_t arg (arg 4)
	/usr/src/usr.sbin/config/gram.y:384: warning: long long unsigned int format, __int64_t arg (arg 4)

	*** Failed target:  gram.o
	*** Failed command: /usr/src/obj/tooldir.NetBSD-1.6ZF-i386/bin/sparc64--netbsd-gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wno-format-y2k -Werror -I/usr/src/usr.sbin/config -I. -nostdinc -isystem /usr/destdir/usr/include -c gram.c
	*** Error code 1

	nbmake: stopped in /usr/src/usr.sbin/config

	I am not sure about a proper fix, but the following makes it compile.

	cd /usr/src/usr.sbin/config
	cvs update -r 1.44 gram.y