Subject: building 2.0.2/sparc64 on 3.0_BETA/i386 fails
To: -current <current-users@netbsd.org>
From: Stefan Schumacher <stefan@net-tex.de>
List: current-users
Date: 06/21/2005 09:29:44
--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I got a used Ultra 5 last weekend and installed 2.0.2 on it.
Yesterday, I tried to build a stripped down Kernel for it on my AMD
Athlon, but it failed.=20

I created a mfs to /ramdisk and succefully built the tools:

=3D=3D=3D> Tools built to /ramdisk
=3D=3D=3D> build.sh started: Mon Jun 20 23:03:14 CEST 2005
=3D=3D=3D> build.sh ended:   Mon Jun 20 23:16:31 CEST 2005
=3D=3D=3D> Summary of results:
	 build.sh command: ./build.sh -O /ramdisk/ -T /ramdisk/ -m sparc64
	 tools
	 build.sh started: Mon Jun 20 23:03:14 CEST 2005
	 MACHINE:          sparc64
	 MACHINE_ARCH:     sparc64
	 TOOLDIR path:     /ramdisk
	 DESTDIR path:     /ramdisk/destdir.sparc64
	 RELEASEDIR path:  /ramdisk/releasedir
	 makewrapper: /ramdisk/bin/nbmake-sparc64
	 Updated /ramdisk/bin/nbmake-sparc64
	 Tools built to /ramdisk
	 build.sh started: Mon Jun 20 23:03:14 CEST 2005
	 build.sh ended:   Mon Jun 20 23:16:31 CEST 2005
=3D=3D=3D> .


But compiling the Kernel failed:

--------------------

=3D=3D=3D> build.sh command: ./build.sh -O /ramdisk/ -T /ramdisk/ -m sparc64
tools
=3D=3D=3D> build.sh started: Mon Jun 20 23:03:14 CEST 2005
=3D=3D=3D> MACHINE:          sparc64
=3D=3D=3D> MACHINE_ARCH:     sparc64
=3D=3D=3D> TOOLDIR path:     /ramdisk
=3D=3D=3D> DESTDIR path:     /ramdisk/destdir.sparc64
=3D=3D=3D> RELEASEDIR path:  /ramdisk/releasedir
=3D=3D=3D> makewrapper:      /ramdisk/bin/nbmake-sparc64
=3D=3D=3D> Updated /ramdisk/bin/nbmake-sparc64

[...]

Build directory is /ramdisk/sys/arch/sparc64/compile/ULTRA5
Don't forget to run "make depend"
depending the kern library objects
#    create  kern/__assert.d
CC=3D/ramdisk/bin/sparc--netbsdelf-gcc /ramdisk/bin/nbmkdep -f
__assert.d --     -I/usr/home/unenc/202/src/sys/lib/libkern/arch/sparc
-Dsparc64 -D__sparc64__ -m32 -Wa,-Av8plusa -mcpu=3Dultrasparc -I../../.
-I/usr/home/unenc/202/src/sys/arch -I/usr/home/unenc/202/src/sys
-nostdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT    -nostdinc
-isystem /ramdisk/destdir.sparc64/usr/include
/usr/home/unenc/202/src/sys/lib/libkern/__assert.c
nbmkdep: /ramdisk/bin/sparc--netbsdelf-gcc: not found: No such file or
directory

*** Failed target:  __assert.d
*** Failed command: CC=3D/ramdisk/bin/sparc--netbsdelf-gcc
/ramdisk/bin/nbmkdep -f __assert.d --
-I/usr/home/unenc/202/src/sys/lib/libkern/arch/sparc -Dsparc64
-D__sparc64__ -m32 -Wa,-Av8plusa -mcpu=3Dultrasparc -I../../.
-I/usr/home/unenc/202/src/sys/arch -I/usr/home/unenc/202/src/sys
-nostdinc -DLKM -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT -nostdinc
-isystem /ramdisk/destdir.sparc64/usr/include
/usr/home/unenc/202/src/sys/lib/libkern/__assert.c
*** Error code 1

Stop.
nbmake: stopped in /ramdisk/sys/arch/sparc64/compile/ULTRA5/lib/kern

*** Failed target:  dependkernlib
*** Failed command: cd
/ramdisk/sys/arch/sparc64/compile/ULTRA5/lib/kern &&
/ramdisk/bin/nbmake -f
/usr/home/unenc/202/src/sys/lib/libkern/Makefile
KERNDIR=3D/usr/home/unenc/202/src/sys/lib/libkern
CC=3D/ramdisk/bin/sparc--netbsdelf-gcc CFLAGS=3D\ -mno-fpu\ \ \ \ \
-ffreestanding\ \ \ -O2\ -Werror\ -Wall\ -Wno-main\
-Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\
-Wstrict-prototypes\ -Wno-sign-compare\ -fno-zero-initialized-in-bss
AS=3D/ramdisk/bin/sparc--netbsdelf-as AFLAGS=3D\ -Wa,-Av8plusa\ -x\
assembler-with-cpp\ -traditional-cpp\ \ -D_LOCORE
LORDER=3DNM=3D/ramdisk/bin/sparc--netbsdelf-nm\
MKTEMP=3D/ramdisk/bin/nbmktemp\ /ramdisk/bin/nblorder
TSORT=3D/ramdisk/bin/nbtsort\ -q LD=3D/ramdisk/bin/sparc--netbsdelf-ld
STRIP=3D/ramdisk/bin/sparc--netbsdelf-strip
AR=3D/ramdisk/bin/sparc--netbsdelf-ar
NM=3D/ramdisk/bin/sparc--netbsdelf-nm
RANLIB=3D/ramdisk/bin/sparc--netbsdelf-ranlib
SIZE=3D/ramdisk/bin/sparc--netbsdelf-size MACHINE=3Dsparc64
MACHINE_ARCH=3Dsparc KERNCPPFLAGS=3D-Dsparc64\ -D__sparc64__\ -m32\
-Wa,-Av8plusa\ -mcpu=3Dultrasparc\ -I../../.\
-I/usr/home/unenc/202/src/sys/arch\ -I/usr/home/unenc/202/src/sys\
-nostdinc\ -DLKM\ -DMAXUSERS=3D32\ -D_KERNEL\ -D_KERNEL_OPT
KERNMISCCPPFLAGS=3D LINTFLAGS=3D-bcehnxzFS depend
*** Error code 1

Stop.
nbmake: stopped in /ramdisk/sys/arch/sparc64/compile/ULTRA5

ERROR: Failed to make depend in
/ramdisk/sys/arch/sparc64/compile/ULTRA5
*** BUILD ABORTED ***


--------------------




nbmkdep looks for /ramdisk/bin/sparc--netbsdelf-gcc, but there is no
sparc--* only sparc64--netbsd-* is there.


Using /usr/src instead the ramdisk and kernel=3DGENERIC32 raises the
same error. So, what is wrong?

--=20
PGP FPR: CF74 D5F2 4871 3E5C FFFE 0130 11F4 C41E B3FB AE33
--=20
Strength in time of suffering
Man alone is a weakling
Ascension is what you ask
I will be the fall of man       - Fear Factory    [http://www.net-tex.de]

--YZ5djTAD1cGYuMQK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFCt8HoEfTEHrP7rjMRAlr9AJ0QWH3QJzvc7isRx5RTxziWxYdtPQCfaVYI
dd+5b3da3V0etZogH2kpsGk=
=rKMs
-----END PGP SIGNATURE-----

--YZ5djTAD1cGYuMQK--