Subject: Re: acorn32 cross
To: Havard Eidnes <he@netbsd.org>
From: =?iso-8859-1?q?J=F6rn_Seger?= <joern.seger@udo.edu>
List: port-arm
Date: 09/06/2004 13:37:25
Hi H=E5vard,

Am Montag, 6. September 2004 12:20 schrieben Sie:
> > First I get the cvs sources and found out, that build changes
> > the -t option to "tools". Is that right!?
>
> Yes.
>
> > So I compiled the crossbuilding tools. Then I started to
> > compile a new kernel (just GENERIC).  nbconfig - works; nbmake
> > depend - works; nbmake fails (see below).  Same happens, if I
> > use the release-1-6 sources.
>
> "nbmake" doesn't set up MACHINE and MACHINE_ARCH correctly for cross
> compiling.  To do that you'd have to use the nbmake-acorn32 wrapper
> script instead.  For -current it's easier to use the top-level
> build.sh script to build a kernel using
>
> ./build.sh -m acorn32 kernel=3DGENERIC

Thanks - that's it!=20
(but there seems to be a problem in the ncr5380sbc.c - see below)
when I leave out the SCSI support, I could compile the kernel completely.

Best regards - J=F6rn

=2D--- snipp -----

/usr/local/src/cvs_curr/src/tooldir.NetBSD-1.6.2-i386/bin/arm--netbsdelf-gc=
c=20
=2Dffreestanding -O2 -Wcomment -Werror -Wall -Wno-main -Wno-format-zero-len=
gth=20
=2DWpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compar=
e=20
=2Dfno-zero-initialized-in-bss -Darm32 -I.=20
=2DI/usr/local/src/cvs_curr/src/sys/arch -I/usr/local/src/cvs_curr/src/sys=
=20
=2Dnostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT=20
=2Dc /usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c
/usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c: In function=20
`ncr5380_init':
/usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c:378: warning: implicit=
=20
declaration of function `bus_space_write_1'
/usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c:378: error: structure h=
as=20
no member named `sc_regt'
/usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c:378: error: structure h=
as=20
no member named `sc_regh'

*** Failed target:  ncr5380sbc.o
*** Failed command: echo '# ' "compile GENERIC/ncr5380sbc.o";=20
echo /usr/local/src/cvs_curr/src/tooldir.NetBSD-1.6.2-i386/bin/arm--netbsde=
lf-gcc=20
=2Dffreestanding -O2 -Wcomment -Werror -Wall -Wno-main -Wno-format-zero-len=
gth=20
=2DWpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compar=
e=20
=2Dfno-zero-initialized-in-bss -Darm32 -I.=20
=2DI/usr/local/src/cvs_curr/src/sys/arch -I/usr/local/src/cvs_curr/src/sys=
=20
=2Dnostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT=20
=2Dc /usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c; /usr/local/src/cv=
s_curr/src/tooldir.NetBSD-1.6.2-i386/bin/arm--netbsdelf-gcc=20
=2Dffreestanding -O2 -Wcomment -Werror -Wall -Wno-main -Wno-format-zero-len=
gth=20
=2DWpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compar=
e=20
=2Dfno-zero-initialized-in-bss -Darm32 -I.=20
=2DI/usr/local/src/cvs_curr/src/sys/arch -I/usr/local/src/cvs_curr/src/sys=
=20
=2Dnostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=3D32 -D_KERNEL -D_KERNEL_OPT=20
=2Dc /usr/local/src/cvs_curr/src/sys/dev/ic/ncr5380sbc.c
*** Error code 1

Stop.
nbmake: stopped=20
in /usr/local/src/cvs_curr/src/sys/arch/acorn32/compile/obj/GENERIC

ERROR: Failed to make all=20
in /usr/local/src/cvs_curr/src/sys/arch/acorn32/compile/obj/GENERIC
*** BUILD ABORTED ***