Subject: toolchain/36409: cannot cross-build netbsd-4 for amd64 on i386
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Greg A. Woods <woods@planix.com>
List: netbsd-bugs
Date: 05/29/2007 20:05:00
>Number:         36409
>Category:       toolchain
>Synopsis:       cannot cross-build netbsd-4 for amd64 on i386
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 29 20:05:00 +0000 2007
>Originator:     Greg A. Woods
>Release:        netbsd-4 2007/05/26
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: netbsd-4
Architecture: i386
Machine: i386
>Description:

	I cannot seem to cross-build netbsd-4 for amd64 on an i386 host
	running either recent netbsd-3 or netbsd-4 code.

	i386 (and I think sparc) builds for netbsd-4 work fine when
	hosted on either netbsd-3 or netbsd-4 i386 hosts.

	I'm trying sparc and alpha again right now....

>How-To-Repeat:

	This is from a "build -m amd64 ..." running on a NetBSD/i386
	3.1_RC4 host, and a netbsd-4 source tree updated from an rsync
	at ~2007/05/26-03:00

--- regexp.go ---

#   compile  libcompat/regexp.go
/build/woods/always/netbsd-4-i386-amd64-tools/bin/x86_64--netbsd-gcc -O2 -g -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wreturn-type -Wswitch -Wshadow  -Werror -O2 -pipe   -DLIBC_SCCS -DSYSLIBC_SCCS -D__LIBCOMPAT_SOURCE__   -nostdinc -isystem /build/woods/always/netbsd-4-amd64-destdir/usr/include -c -DDEBUG    -g /building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c -o regexp.go
cc1: warnings being treated as errors
/building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c: In function 'regdump':
/building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c:1178: warning: format '%2d' expects type 'int', but argument 2 has type 'long int'
/building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c:1183: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
*** [regexp.go] Error code 1
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libcompat



	It gets worse it seems.  This is from a "build -m amd64 ..."
	running on a NetBSD/i386 4.0_BETA2 host, and a netbsd-4 source
	tree updated from an rsync at ~2007/05/28-03:00


--- dependall-libcrypt ---
/building/work/woods/m-NetBSD-4/lib/libcrypt/md5crypt.c(67): warning: conversion from 'unsigned long' to 'unsigned int' may lose accuracy [132]
/building/work/woods/m-NetBSD-4/lib/libcrypt/md5crypt.c(81): warning: conversion from 'long' to 'unsigned int' may lose accuracy [132]
--- pw_gensalt.ln ---
#   compile  libcrypt/pw_gensalt.ln
CC=/build/woods/once/netbsd-4-i386-amd64-tools/bin/x86_64--netbsd-gcc /build/woods/once/netbsd-4-i386-amd64-tools/bin/x86_64--netbsd-lint -chapbxzFS -d /build/woods/once/netbsd-4-amd64-destdir/usr/include      -i /building/work/woods/m-NetBSD-4/lib/libcrypt/pw_gensalt.c
--- dependall-libcompat ---
cc1: warnings being treated as errors
/building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c: In function 'regdump':
/building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c:1178: warning: format '%2d' expects type 'int', but argument 2 has type 'long int'
/building/work/woods/m-NetBSD-4/lib/libcompat/regexp/regexp.c:1183: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
*** [regexp.go] Error code 1
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libcompat
*** [dependall] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libcompat
*** [dependall-libcompat] Error code 2
--- dependall-libcrypt ---
/building/work/woods/m-NetBSD-4/lib/libcrypt/pw_gensalt.c(161): warning: conversion to 'unsigned int' due to prototype, arg #1 [259]
/building/work/woods/m-NetBSD-4/lib/libcrypt/pw_gensalt.c(161): warning: conversion from 'unsigned long' to 'unsigned int' may lose accuracy, arg #1 [298]
A failure has been detected in another branch of the parallel make

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libcrypt
*** [dependall] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libcrypt
*** [dependall-libcrypt] Error code 2
--- dependall-libbz2 ---
A failure has been detected in another branch of the parallel make

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libbz2
*** [dependall] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib/libbz2
*** [dependall-libbz2] Error code 2
3 errors

nbmake: stopped in /building/work/woods/m-NetBSD-4/lib
*** [do-lib] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4
*** [build] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4
*** [distribution] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4
*** [release] Error code 2
1 error

nbmake: stopped in /building/work/woods/m-NetBSD-4

ERROR: Failed to make release
*** BUILD ABORTED ***


>Fix:

	unknown