Subject: Re: macppc kernel make -j4 fail
To: None <port-macppc@NetBSD.ORG>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-macppc
Date: 08/09/2003 17:25:33
On Sat, Aug 09, 2003 at 05:13:04PM +0200, Manuel Bouyer wrote:
> On Sat, Aug 09, 2003 at 05:02:01PM +0200, Manuel Bouyer wrote:
> > Hi,
> > I just found that a './build.sh -j4 kernel' fails for macppc (current).
> > bzero.S includes assym.h but make tries to build bzero.o before assym.h has
> > been generated.
> 
> Correction: the build fails in makedepend:
> ===> Build directory:  /local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/sys/arch/macppc/compile/CUBA
> Build directory is /local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/sys/arch/macppc/compile/CUBA
> Don't forget to run "make depend"
> depending the kern library objects
> CC=/local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/powerpc--netbsd-gcc /local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/nbmkdep -f __assert.d   -I/local/pop1/bouyer/current/src/sys/lib/libkern/arch/powerpc -Dmacppc -I../../. -I/local/pop1/bouyer/current/src/sys/arch -I/local/pop1/bouyer/current/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -nostdinc -isystem /local/pop1/bouyer/tmp/macppc/dest/usr/include   /local/pop1/bouyer/current/src/sys/lib/libkern/__assert.c
> CC=/local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/powerpc--netbsd-gcc /local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/nbmkdep -f __cmsg_alignbytes.d   -I/local/pop1/bouyer/current/src/sys/lib/libkern/arch/powerpc -Dmacppc -I../../. -I/local/pop1/bouyer/current/src/sys/arch -I/local/pop1/bouyer/current/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -nostdinc -isystem /local/pop1/bouyer/tmp/macppc/dest/usr/include   /local/pop1/bouyer/current/src/sys/lib/libkern/__cmsg_alignbytes.c
> CC=/local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/powerpc--netbsd-gcc /local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/nbmkdep -f __main.d   -I/local/pop1/bouyer/current/src/sys/lib/libkern/arch/powerpc -Dmacppc -I../../. -I/local/pop1/bouyer/current/src/sys/arch -I/local/pop1/bouyer/current/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -nostdinc -isystem /local/pop1/bouyer/tmp/macppc/dest/usr/include   /local/pop1/bouyer/current/src/sys/lib/libkern/__main.c
> [...]
> CC=/local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/powerpc--netbsd-gcc /local/pop1/bouyer/tmp/macppc/obj/local/pop1/bouyer/current/src/tooldir.NetBSD-1.6_STABLE-i386/bin/nbmkdep -f bzero.d  -D_LOCORE -I/local/pop1/bouyer/current/src/sys/lib/libkern/arch/powerpc -Dmacppc -I../../. -I/local/pop1/bouyer/current/src/sys/arch -I/local/pop1/bouyer/current/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -nostdinc -isystem /local/pop1/bouyer/tmp/macppc/dest/usr/include   -traditional-cpp  /local/pop1/bouyer/current/src/sys/lib/libkern/arch/powerpc/bzero.S
> /local/pop1/bouyer/current/src/sys/lib/libkern/arch/powerpc/bzero.S:33: assym.h: No such file or directory
> nbmkdep: compile failed.

Hum, build fails later with
making sure the compat library is up to date...
`libcompat.a' is up to date.
making sure the kern library is up to date...
building standard kern library
bzero.o: In function `memset':
bzero.o(.text+0x8): multiple definition of `memset'
memset.o(.text+0x0): first defined here
*** Error code 1

Maybe bzero.S shound't be there at all

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
     NetBSD: 24 ans d'experience feront toujours la difference
--