Subject: port-cobalt/12121: 1.5R GENERIC kernel build failed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <psybear@ogre.rim.or.jp>
List: netbsd-bugs
Date: 02/03/2001 09:39:19
>Number: 12121
>Category: port-cobalt
>Synopsis: 1.5R GENERIC kernel build failed
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: port-cobalt-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 03 09:42:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Shigeji Ishikawa
>Release: 1.5R
>Organization:
>Environment:
NetBSD minotaur.ogre.rim.or.jp 1.5R NetBSD 1.5R (MINOS) #2: Mon Jan 29 01:24:21 JST 2001 root@minotaur.ogre.rim.or.jp:/export0/current/src/sys/arch/cobalt/compile/MINOS cobalt
>Description:
NetBSD/cobalt kernel build process stopped due to compile error below.
cc -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-uninitialized -Wno-main -G 0 -mno-abicalls -mno-half-pic -EL -I. -I../../.
./../arch -I../../../.. -nostdinc -DMIPS3 -DMIPS3_5200 -D__NO_SOFT_SERIAL_INTERR
UPT -DLKM -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -Dcobalt -c ../../../../arch/cob
alt/pci/pci_machdep.c
cc1: warnings being treated as errors
../../../../arch/cobalt/pci/pci_machdep.c: In function `pci_intr_map':
../../../../arch/cobalt/pci/pci_machdep.c:155: warning: dereferencing `void *' p
ointer
../../../../arch/cobalt/pci/pci_machdep.c:155: request for member `pa_intrtag' i
n something not a structure or union
*** Error code 1
Stop.
>How-To-Repeat:
cd /usr/src/sys/arch/cobalt/conf
config GENERIC
cd ../compile/GENERIC
make
>Fix:
apply this patch.
Index: pci_machdep.c
===================================================================
RCS file: /export3/NetBSD/main/syssrc/sys/arch/cobalt/pci/pci_machdep.c,v
retrieving revision 1.10
diff -u -r1.10 pci_machdep.c
--- pci_machdep.c 2000/12/28 22:59:09 1.10
+++ pci_machdep.c 2001/02/01 15:55:38
@@ -152,7 +152,7 @@
pci_intr_handle_t *ihp;
{
pci_chipset_tag_t pc = pa->pa_pc;
- pcitag_t intrtag = pc->pa_intrtag;
+ pcitag_t intrtag = pa->pa_intrtag;
int pin = pa->pa_intrpin;
int line = pa->pa_intrline;
int bus, dev, func;
>Release-Note:
>Audit-Trail:
>Unformatted: