Subject: misc/14507: i386 to sparc cross build fails to create kernels
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
List: netbsd-bugs
Date: 11/08/2001 23:23:47
>Number: 14507
>Category: misc
>Synopsis: i386 to sparc cross build fails to create kernels
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 08 14:24:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5Y 2001-11-08 sources
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5Y NetBSD 1.5Y (LYSSA) #2: Thu Nov 8 17:25:14 CET 2001 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
I'm trying to build a NetBSD-sparc release under NetBSD-i386. While the
"make build" works fine it fails to build the kernels because it uses
the native compiler instead of the toolchain one:
===> DESTDIR path: /export/scratch/dest
===> TOOLDIR path: /src/tools
Build started at: Thu Nov 8 19:41:04 CET 2001
/src/tools/bin/nbmake do-make-tools
cd /usr/src/tools && /src/tools/bin/nbmake build
[...]
/src/tools/bin/nbmake do-distrib-dirs
cd /usr/src/etc && /src/tools/bin/nbmake DESTDIR=/export/scratch/dest distrib-dirs
STRIP=/src/tools/bin/sparc--netbsdelf-strip /src/tools/bin/binstall -d -o root -g wheel -m 755 /export/scratch/dest
/src/tools/bin/mtree -def mtree/NetBSD.dist -p /export/scratch/dest/ -U
cd /export/scratch/dest/; rm -f sys; ln -s usr/src/sys sys
/src/tools/bin/nbmake includes
[...]
cd /src/NetBSD-current/src/sys/arch/sparc/conf && /src/tools/bin/config -b /src/NetBSD-current/src/sys/arch/sparc/compile/GENERIC -s /src/NetBSD-current/src/sys GENERIC
Don't forget to run "make depend"
cd /src/NetBSD-current/src/sys/arch/sparc/compile/GENERIC && /src/tools/bin/nbmake depend && /src/tools/bin/nbmake
depending the kern library objects
depending the compat library objects
sh /src/NetBSD-current/src/sys/kern/genassym.sh cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-main -mno-fpu -I. -I/src/NetBSD-current/src/sys/arch -I/src/NetBSD-current/src/sys -nostdinc -DSUN4 -DSUN4C -DSUN4M -DSUN4_MMU3L -DRASTERCONSOLE -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT < /src/NetBSD-current/src/sys/arch/sparc/sparc/genassym.cf > assym.h.tmp && mv -f assym.h.tmp assym.h
cc1: Invalid option `no-fpu'
cc1: warnings being treated as errors
In file included from /src/NetBSD-current/src/sys/sys/systm.h:326,
from /src/NetBSD-current/src/sys/uvm/uvm_map.h:336,
from /src/NetBSD-current/src/sys/uvm/uvm_extern.h:447,
from /src/NetBSD-current/src/sys/uvm/uvm.h:46,
from /tmp/1690.c:16:
/src/NetBSD-current/src/sys/lib/libkern/libkern.h:265: warning: conflicting types for built-in function `memcmp'
/src/NetBSD-current/src/sys/lib/libkern/libkern.h:266: warning: conflicting types for built-in function `memcpy'
/src/NetBSD-current/src/sys/lib/libkern/libkern.h:268: warning: conflicting types for built-in function `memset'
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
cd /usr/src
./build.sh -m sparc -o -u -D /export/scratch/dest -R /scratch/netbsd/sparc
>Fix:
Sorry, I dont' know.
>Release-Note:
>Audit-Trail:
>Unformatted: