Subject: port-powerpc/14873: some (all?) powerpc ports cannot compile vga_pci.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 12/08/2001 10:11:44
>Number:         14873
>Category:       port-powerpc
>Synopsis:       some (all?) powerpc ports cannot compile vga_pci.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-powerpc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 08 07:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Brown
>Release:        NetBSD 1.5Z
>Organization:
none
>Environment:
System: NetBSD dunno 1.5Z NetBSD 1.5Z (GENERIC.MP) #9: Mon Dec 3 15:49:28 EST 2001 christos@dunno:/home/NetBSD/cvsroot/src/sys/arch/i386/compile/GENERIC.MP i386
Architecture: i386
Machine: i386
>Description:

when cross compiling a lot of kernels for all possible different
platforms (where possible is defined by the presence of a cross
compiler), several of the ports failed to complete their builds.
in the case of bebox, prep, and sandpoint, this was due to, eg,

cc1: warnings being treated as errors
/home/andrew/current/src/sys/arch/bebox/compile/buildme/../../../../dev/pci/vga_pci.c: In function `vga_pci_mmap':
/home/andrew/current/src/sys/arch/bebox/compile/buildme/../../../../dev/pci/vga_pci.c:227: warning: implicit declaration of function `bus_space_mmap'
*** Error code 1

(the path to vga_pci.c varies with the port).

>How-To-Repeat:

	(1) update a source tree
	(2) ./built -t -m prep (for example)
	(3) cd sys/arch/prep/conf
	(4) config GENERIC
	(5) cd ../compile/GENERIC
	(6) cross-do prep make vga_pci.o

>Fix:

*shrug*
>Release-Note:
>Audit-Trail:
>Unformatted: