NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-macppc/42999: macppc POWERMAC_G5 kernel build fails in macppc/pci/u3.c: in32rb(), out32rb() undeclared



>Number:         42999
>Category:       port-macppc
>Synopsis:       macppc POWERMAC_G5 kernel build fails in macppc/pci/u3.c: 
>in32rb(), out32rb() undeclared
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 18 08:05:00 +0000 2010
>Originator:     Dennis Ferguson
>Release:        Recently updated 5.99.24 for macppc
>Organization:
>Environment:
Build machine is:

Darwin dennislaptop.jnpr.net 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 
10:35:19 PST 2009; root:xnu-1486.2.11~1/RELEASE_X86_64 x86_64
>Description:
While attempting a

   MACHINE=macppc ./build.sh kernel=POWERMAC_G5

the following compilation error occurs:

#   compile  POWERMAC_G5/u3.o
...
cc1: warnings being treated as errors
/Users/dennis/NetBSD/5.0-current/src/sys/arch/macppc/pci/u3.c: In function 
'ibmcpc_conf_read':
/Users/dennis/NetBSD/5.0-current/src/sys/arch/macppc/pci/u3.c:186: warning: 
implicit declaration of function 'in32rb'
/Users/dennis/NetBSD/5.0-current/src/sys/arch/macppc/pci/u3.c: In function 
'ibmcpc_conf_write':
/Users/dennis/NetBSD/5.0-current/src/sys/arch/macppc/pci/u3.c:214: warning: 
implicit declaration of function 'out32rb'

*** Failed target:  u3.o

I see the functions are defined in powerpc/include/pio.h, but
that isn't #included in macppc/pci/u3.c.
>How-To-Repeat:
Attempt to build a macppc POWERMAC_G5 kernel.
>Fix:
Add a

#include <machine/pio.h>

into macppc/pci/u3.c?  Doing that and working around my
other bug allowed the kernel compile to complete, at least,
though I don't yet know if it actually works.



Home | Main Index | Thread Index | Old Index