Subject: port-macppc/23604: -current kernel compilation fails on macppc due to global ata/wd* changes
To: None <>
From: Markus W Kilbinger <>
List: netbsd-bugs
Date: 11/30/2003 22:40:35
>Number:         23604
>Category:       port-macppc
>Synopsis:       -current kernel compilation fails due to some wdc* changes elsewhere
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 21:41:00 UTC 2003
>Release:        NetBSD 1.6ZF
System: NetBSD mathilda 1.6ZF NetBSD 1.6ZF (MATHILDA) macppc
Architecture: powerpc
Machine: macppc
	As far as I can see/investigate global changes from

seem to break compilation of -current kernels for macppc, at least if
using macppc's proper wdc/obio interface. At first stage compilation
stops at

  >> /usr/toolchain-powerpc/bin/powerpc--netbsd-gcc -msoft-float -ffreestanding -mcpu=7400 -O2 -pipe -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Dmacppc -I. -I../../../../arch -I../../../.. -nostdinc -DUCONSOLE -DOFB_ENABLE_CACHE -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ../../../../arch/macppc/macppc/autoconf.c
  >> In file included from ../../../../arch/macppc/macppc/autoconf.c:57:
  >> ../../../../dev/ic/wdcvar.h:63: error: `WDC_NREG' undeclared here (not in a function)

But adding the now probably missing wdcreg.h for inclusion yields more
incompatibilities with these changes, especially in using the
bus_space_* functions.
Try to compile the GENERIC -current kernel for macppc
Guess macppc's proper wdc stuff has to be adapted to the global
ata/wd* changes?