NetBSD Problem Report #42999
From www@NetBSD.org Thu Mar 18 08:03:12 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 21C3463B873
for <gnats-bugs@gnats.NetBSD.org>; Thu, 18 Mar 2010 08:03:12 +0000 (UTC)
Message-Id: <20100318080311.DB40063B86C@www.NetBSD.org>
Date: Thu, 18 Mar 2010 08:03:11 +0000 (UTC)
From: dennis.c.ferguson@gmail.com
Reply-To: dennis.c.ferguson@gmail.com
To: gnats-bugs@NetBSD.org
Subject: macppc POWERMAC_G5 kernel build fails in macppc/pci/u3.c: in32rb(), out32rb() undeclared
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 18 08:05:00 +0000 2010
>Closed-Date: Sat Dec 24 04:48:45 +0000 2016
>Last-Modified: Sat Dec 24 04:48:45 +0000 2016
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Sat, 24 Dec 2016 04:48:45 +0000
State-Changed-Why:
Fixed in 2012.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.