Subject: "make" vs "make dependall" building powerpc kernels
To: None <tech-toolchain@netbsd.org, tech-powerpc@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: tech-toolchain
Date: 02/24/2003 17:52:59
If I start in sys/arch/evbppc/GENERIC (or any other *ppc)

	rm -rf GENERIC ; cd ../conf
	nbconfig GENERIC
	cd ../compile/GENERIC
	nbmake-evbppc

results in:

	.../powerpc--netbsd-gcc ... .../lib/libkern/arch/powerpc/bzero.S
	...
	bzero.o: In function `memset':
	bzero.o(.text+0x8): multiple definition of `memset'
	memset.o:.../lib/libkern/memset.c:81: first defined here
	*** Error code 1

	Stop.

but:

	rm -rf GENERIC ; cd ../conf
	nbconfig GENERIC
	cd ../compile/GENERIC
	nbmake-evbppc

results in:

	.../powerpc--netbsd-gcc ... .../lib/libkern/bzero.c
	...
	text    data    bss     dec     hex     filename
	3511660 339296  228428  4079384 3e3f18  netbsd

Notice a bzero.S in the "make" case and a different bzero.c in the
"make depend" case.


Anyone with enough make fu to work out what's happening here?

Simon.
--
Simon Burge                                   <simonb@wasabisystems.com>
NetBSD Development, Support and Service:   http://www.wasabisystems.com/