Subject: port-i386/17257: cross building netbsd-1-6 branch port-i386 on sparc64
To: None <gnats-bugs@gnats.netbsd.org>
From: Todd Kover <kovert@omniscient.com>
List: netbsd-bugs
Date: 06/14/2002 13:40:06
>Number:         17257
>Category:       port-i386
>Synopsis:       port-i386 has failed to build on sparc64 for several weeks
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 14 10:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Todd Kover
>Release:        NetBSD 1.6-BETA2
>Organization:
Omniscient Technologies
>Environment:
NetBSD waygate.omniscient.com 1.6_BETA2 NetBSD 1.6_BETA2 (GENERIC) #1: Thu Jun 13 00:51:08 EDT 2002     kovert@waygate.omniscient.com:/build/NetBSD-1.6/src/obj.sparc64/sys/arch/sparc64/compile/GENERIC sparc64
[ based on a cvs co from a few hours before kernel date]


>Description:
	Using the toolchain with /etc/mk.conf settings:
		USE_XF86_4 = yes
		MKTOOLS=yes
		USE_NEW_TOOLCHAIN=yes
		OBJMACHINE=yes

	building a cvs checkout of today of i386 on the abovementioned
	environment, I get:

---<snip>---
/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc -O2 -DALL_STATE -DUSG_COMPAT  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wswitch -Wshadow  -Werror  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/release/NetBSD-i386-dest-2002-06-14/usr/include  -c /build/NetBSD-1.6/src/lib/libc/net/iso_addr.c
/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc -O2 -DALL_STATE -DUSG_COMPAT  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wswitch -Wshadow  -Werror  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/release/NetBSD-i386-dest-2002-06-14/usr/include  -c -pg /build/NetBSD-1.6/src/lib/libc/net/iso_addr.c -o iso_addr.po
/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc -O2 -DALL_STATE -DUSG_COMPAT  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wswitch -Wshadow  -Werror  -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/release/NetBSD-i386-dest-2002-06-14/usr/include  -c -fPIC -DPIC -D_I18N_DYNAMIC /build/NetBSD-1.6/src/lib/libc/net/iso_addr.c -o iso_addr.so
/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc   -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/release/NetBSD-i386-dest-2002-06-14/usr/include  -c -traditional-cpp -DALL_STATE -DUSG_COMPAT -I/build/NetBSD-1.6/src/lib/libc/arch/i386 -nostdinc -idirafter /build/release/NetBSD-i386-dest-2002-06-14/usr/include /build/NetBSD-1.6/src/lib/libc/issetugid.S
/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc   -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/release/NetBSD-i386-dest-2002-06-14/usr/include  -c -traditional-cpp -DGPROF -DPROF -DALL_STATE -DUSG_COMPAT -I/build/NetBSD-1.6/src/lib/libc/arch/i386 -nostdinc -idirafter /build/release/NetBSD-i386-dest-2002-06-14/usr/include /build/NetBSD-1.6/src/lib/libc/issetugid.S -o issetugid.po
/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc   -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -isystem /build/release/NetBSD-i386-dest-2002-06-14/usr/include  -c -traditional-cpp -DPIC -fPIC -DPIC -D_I18N_DYNAMIC -DALL_STATE -DUSG_COMPAT -I/build/NetBSD-1.6/src/lib/libc/arch/i386 -nostdinc -idirafter /build/release/NetBSD-i386-dest-2002-06-14/usr/include /build/NetBSD-1.6/src/lib/libc/issetugid.S -o issetugid.so
CC=/build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-gcc /build/NetBSD-1.6/src/tools/obj.i386/tools.NetBSD-1.6_BETA2-sparc64/bin/i386--netbsdelf-lint -chapbxzF -w -X 272 -d /build/release/NetBSD-i386-dest-2002-06-14/usr/include -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/build/NetBSD-1.6/src/lib/libc/include -DHESIOD -DINET6 -DNLS -DYP -D__DBINTERFACE_PRIVATE -I/build/NetBSD-1.6/src/lib/libc/../../libexec/ld.elf_so -I/build/NetBSD-1.6/src/lib/libc/dlfcn -DI18NMODULE_MAJOR=4 -DWITH_RUNE -I/build/NetBSD-1.6/src/lib/libc -DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -i /build/NetBSD-1.6/src/lib/libc/locale/iswctype.c
/build/NetBSD-1.6/src/lib/libc/locale/iswctype.c(205): warning: conversion to 'unsigned long' due to prototype, arg #2 [259]
/build/NetBSD-1.6/src/lib/libc/locale/iswctype.c(205): warning: conversion of negative constant to unsigned type, arg #2 [296]
*** Error code 1

Stop.
nbmake: stopped in /build/NetBSD-1.6/src/lib/libc
*** Error code 1

Stop.
nbmake: stopped in /build/NetBSD-1.6/src/lib/libc
*** Error code 1
---<snip>---

        This has been actually going on with builds on sparc64 for a
        week or two now (releng.netbsd.org based installs as well as my
        own builds).

	I have yet to try it natively on i386 .

>How-To-Repeat:

	DESTDIR=/build/release/NetBSD-i386-dest-today
	RELEASE=/build/release/NetBSD-i386-release-today
	./build.sh -R $RELEASEDIR -a sparc64 -m sparc64
	
>Fix:
        I have no idea.  I noticed there no -nostdinc on the invocation
        line but it doesn't appear to make a difference if I add it by
        hand.
>Release-Note:
>Audit-Trail:
>Unformatted: