Subject: you're not kidding about compiler issues...
To: None <eeh@netbsd.org>
From: Matthew Jacob <mjacob@feral.com>
List: port-sparc64
Date: 12/30/2000 00:55:58
Even with the tarballed 'yet another local' compiler, there are still
problems. There's nothing wrong with the following code I had to change in
isp.c (which was the only change I had to make)to not blow up with a bad
address reference...

Index: isp.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/isp.c,v
retrieving revision 1.66
diff -u -r1.66 isp.c
--- isp.c	2000/12/28 22:27:46	1.66
+++ isp.c	2000/12/30 08:47:37
@@ -235,13 +235,12 @@
 	ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE);
 
 	if (IS_FC(isp)) {
-		revname = "2X00";
 		switch (isp->isp_type) {
 		case ISP_HA_FC_2100:
-			revname[1] = '1';
+			revname = "2100";
 			break;
 		case ISP_HA_FC_2200:
-			revname[1] = '2';
+			revname = "2200"; <<<<<<<<<<<<<<<<<<< BOOM!
 			break;
 		default:
 			break;
---

but once that was in place, I got (see below).. What're the chances the
compiler will get fixed for this one? This is pretty bad....


console is unknown
Copyright (c) 1996, 1997, 1998, 1999, 2000
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.5Q (GENERIC) #2: Sat Dec 30 00:38:56 PST 2000
    mjacob@slinx.feral.com:/tstsys/arch/sparc64/compile/GENERIC
total memory = 256 MB
avail memory = 229 MB
using 1651 buffers containing 13208 KB of memory
bootpath: /pci@1f,0/pci@1,1/network@1,1
mainbus0 (root): SUNW,Ultra-5_10
cpu0 at mainbus0: SUNW,UltraSPARC-IIi @ 300 MHz, version 0 FPU
cpu0: physical 4K instruction (32 b/l), 4K data (32 b/l), 2048K external (64 b/l) 
psycho0 at mainbus0 addr 0xfffc4000
sabre: bus range 0 to 2; simba b, PCI bus 1; simba a, PCI bus 2
DVMA map: c0002000 to ffffe000
pci0 at psycho0
pci0: i/o space, memory space enabled
Sun Microsystems product 0x2000 (miscellaneous prehistoric) at pci0 dev 0 function 0 not configured
simba0 at pci0 dev 1 function 0: Sun Microsystems Simba PCI bridge (rev. 0x11)
pci1 at simba0 bus 2
pci1: i/o space, memory space enabled
siop0 at pci1 dev 1 function 0: Symbios Logic 53c895 (ultra2-wide scsi)
siop0: using on-board RAM
siop0: interrupting at vector 16
scsibus0 at siop0: 16 targets, 8 luns per target
siop1 at pci1 dev 2 function 0: Symbios Logic 53c875 (ultra-wide scsi)
siop1: using on-board RAM
siop1: interrupting at vector 20
scsibus1 at siop1: 16 targets, 8 luns per target
siop2 at pci1 dev 2 function 1: Symbios Logic 53c875 (ultra-wide scsi)
siop2: using on-board RAM
siop2: interrupting at vector 21
scsibus2 at siop2: 16 targets, 8 luns per target
isp0 at pci1 dev 4 function 0
isp0: interrupting at vector 28
isp0: Board Revision 2200, loaded F/W Revision 2.1.26
isp0: 986 max I/O commands supported
isp0: NVRAM Port WWN 0x210000e08b01798e
isp0: LIP occurred
isp0: Loop UP
isp0: Port Database Changed
isp0: Port Database Changed
isp0: Firmware State <Config Wait->Ready>
isp0: Loop ID 0, AL_PA 0xef, Port ID 0x1000ef, Loop State 0x2, Topology 'FL Port'
scsibus3 at isp0: 256 targets, 8 luns per target
simba1 at pci0 dev 1 function 1: Sun Microsystems Simba PCI bridge (rev. 0x11)
pci2 at simba1 bus 1
pci2: i/o space, memory space enabled
ebus0 at pci2 dev 1 function 0
ebus0: Sun Microsystems PCIO Ebus2, revision 0x01
auxio0 at ebus0 addr 726000-726003 addr 728000-728003 addr 72a000-72a003 addr 72c000-72c003 addr 72f000-72f003
power at ebus0 addr 724000-724003 ipl 37 not configured
SUNW,pll at ebus0 addr 504000-504002 not configured
se at ebus0 addr 400000-40007f ipl 43 not configured
com0 at ebus0 addr 3083f8-3083ff ipl 41: ns16550a, working fifo
kbd0 at com0
com1 at ebus0 addr 3062f8-3062ff ipl 42: ns16550a, working fifo
ms0 at com1
lpt0 at ebus0 addr 3043bc-3043cb addr 30015c-30015d addr 700000-70000f ipl 34
fdthree at ebus0 addr 3023f0-3023f7 addr 706000-70600f addr 720000-720003 ipl 39 not configured
clock0 at ebus0 addr 0-1fff: mk48t59: hostid 80a020e8
flashprom at ebus0 addr 0-fffff not configured
SUNW,CS4231 at ebus0 addr 200000-2000ff addr 702000-70200f addr 704000-70400f addr 722000-722003 ipl 35 ipl 36 not configured
hme0 at pci2 dev 1 function 1: address 08:00:20:a0:20:e8
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 1
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
hme0: using vector 33 for interrupt
ATI Technologies Mach64 GT (VGA display, revision 0x9a) at pci2 dev 2 function 0 not configured
pciide0 at pci2 dev 3 function 0: CMD Technology PCI0646 (rev. 0x03)
pciide0: bus-master DMA support present
pciide0: primary channel configured to native-PCI mode
pciide0: using vector 32 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST32122A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 2014 MB, 4092 cyl, 16 head, 63 sec, 512 bytes/sect x 4124736 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel configured to native-PCI mode
atapibus0 at pciide0 channel 1
cd0 at atapibus0 drive 0: <CRD-8240B, 1997/12/08, 1.24> type 5 cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pcons0 at mainbus0
No counter-timer -- using %tick at 300MHz as system clock.
scsibus0: waiting 2 seconds for devices to settle...
isp0: isp_restart requeued 0 commands
scsibus1: waiting 2 seconds for devices to settle...
siop1: target 8 using tagged queuing
sd0 at scsibus1 target 8 lun 0: <SEAGATE, ST19171W SUN9.0G, 0776> SCSI2 0/direct fixed
siop1: target 8 using 16bit transfers
siop1: target 8 now synchronous at 20.0Mhz, offset 15
sd0: 8637 MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
siop1: target 9 using tagged queuing
sd1 at scsibus1 target 9 lun 0: <SEAGATE, ST19171W SUN9.0G, 0776> SCSI2 0/direct fixed
siop1: target 9 using 16bit transfers
siop1: target 9 now synchronous at 20.0Mhz, offset 15
sd1: 8637 MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
siop1: target 10 using tagged queuing
sd2 at scsibus1 target 10 lun 0: <SEAGATE, ST19171W SUN9.0G, 0776> SCSI2 0/direct fixed
siop1: target 10 using 16bit transfers
siop1: target 10 now synchronous at 20.0Mhz, offset 15
sd2: 8637 MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
siop1: target 11 using tagged queuing
sd3 at scsibus1 target 11 lun 0: <SEAGATE, ST19171W SUN9.0G, 0776> SCSI2 0/direct fixed
siop1: target 11 using 16bit transfers
siop1: target 11 now synchronous at 20.0Mhz, offset 15
sd3: 8637 MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
uk0 at scsibus1 target 15 lun 0: <SYMBIOS, , 2> SCSI2 3/processor fixed
uk0: unknown device
scsibus2: waiting 2 seconds for devices to settle...
scsibus3: waiting 2 seconds for devices to settle...
isp0: Fabric Device (Type 0x1)@PortID 0x100200 WWN 0x210100e08b00f3f9
isp0: Fabric Device (Type 0x2)@PortID 0x1003ef WWN 0x210000e08b01ae8b
isp0: Fabric Device (Type 0x2)@PortID 0x100429 WWN 0x210000e08b00391f
isp0: Fabric Device (Type 0x2)@PortID 0x1005c5 WWN 0x210000203730484b
isp0: Fabric Device (Type 0x2)@PortID 0x1005c6 WWN 0x2100002037304daf
isp0: Fabric Device (Type 0x2)@PortID 0x1005c7 WWN 0x210000203730487b
isp0: Fabric Device (Type 0x2)@PortID 0x1005c9 WWN 0x2100002037304e8b
isp0: Fabric Device (Type 0x2)@PortID 0x1000ef WWN 0x210000e08b01798e
isp0: Target 129 (Loop 0x81) Port ID 0x100200 role Target/Initiator arrived
 Port WWN 0x210100e08b00f3f9
 Node WWN 0x200100e08b00f3f9
isp0: Target 130 (Loop 0x82) Port ID 0x1003ef role Initiator arrived
 Port WWN 0x210000e08b01ae8b
 Node WWN 0x200000e08b01ae8b
isp0: Target 131 (Loop 0x83) Port ID 0x100429 role Initiator arrived
 Port WWN 0x210000e08b00391f
 Node WWN 0x200000e08b00391f
isp0: Target 132 (Loop 0x84) Port ID 0x1005c5 role Target arrived
 Port WWN 0x210000203730484b
 Node WWN 0x200000203730484b
isp0: Target 133 (Loop 0x85) Port ID 0x1005c6 role Target arrived
 Port WWN 0x2100002037304daf
 Node WWN 0x2000002037304daf
isp0: Target 134 (Loop 0x86) Port ID 0x1005c7 role Target arrived
 Port WWN 0x210000203730487b
 Node WWN 0x200000203730487b
isp0: Target 135 (Loop 0x87) Port ID 0x1005c9 role Target arrived
 Port WWN 0x2100002037304e8b
 Node WWN 0x2000002037304e8b
sd4 at scsibus3 target 129 lun 0: <VERITAS, vol002 active, 2.00> SCSI3 0/direct fixed
sd4: 5000 MB, 2500 cyl, 64 head, 64 sec, 512 bytes/sect x 10240000 sectors
sd5 at scsibus3 target 129 lun 1: <VERITAS, vol004 active, 2.00> SCSI3 0/direct fixed
sd5: 5000 MB, 2500 cyl, 64 head, 64 sec, 512 bytes/sect x 10240000 sectors
sd6 at scsibus3 target 129 lun 2: <VERITAS, vol005 active, 2.00> SCSI3 0/direct fixed
sd6: 15453 MB, 7726 cyl, 64 head, 64 sec, 512 bytes/sect x 31647744 sectors
uk1 at scsibus3 target 129 lun 3: <VERITAS, SOFT TARGET DEV, 0001> SCSI2 0/direct fixed offline
uk1: unknown device
uk2 at scsibus3 target 129 lun 4: <VERITAS, SOFT TARGET DEV, 0001> SCSI2 0/direct fixed offline
uk2: unknown device
uk3 at scsibus3 target 129 lun 5: <VERITAS, SOFT TARGET DEV, 0001> SCSI2 0/direct fixed offline
uk3: unknown device
uk4 at scsibus3 target 129 lun 6: <VERITAS, SOFT TARGET DEV, 0001> SCSI2 0/direct fixed offline
uk4: unknown device
uk5 at scsibus3 target 129 lun 7: <VERITAS, SOFT TARGET DEV, 0001> SCSI2 0/direct fixed offline
uk5: unknown device
sd7 at scsibus3 target 132 lun 0: <SEAGATE, ST39175FC, 0001> SCSI2 0/direct fixed
sd7: 8683 MB, 11721 cyl, 5 head, 303 sec, 512 bytes/sect x 17783240 sectors
sd8 at scsibus3 target 133 lun 0: <SEAGATE, ST39175FC, 0001> SCSI2 0/direct fixed
sd8: 8683 MB, 11721 cyl, 5 head, 303 sec, 512 bytes/sect x 17783240 sectors
sd9 at scsibus3 target 134 lun 0: <SEAGATE, ST39175FC, 0001> SCSI2 0/direct fixed
sd9: 8683 MB, 11721 cyl, 5 head, 303 sec, 512 bytes/sect x 17783240 sectors
sd10 at scsibus3 target 135 lun 0: <SEAGATE, ST39175FC, 0001> SCSI2 0/direct fixed
sd10: 8683 MB, 11721 cyl, 5 head, 303 sec, 512 bytes/sect x 17783240 sectors
Kernelized RAIDframe activated
root on hme0
nfs_boot: trying RARP (and RPC/bootparam)
nfs_boot: client_addr=192.67.166.201 (RARP from 192.67.166.202)
nfs_boot: server_addr=192.67.166.202
nfs_boot: hostname=slinx.feral.com
nfs_boot: timeout...
nfs_boot: timeout...
nfs_boot: timeout...
root on pilt:/export/root/slinx
root file system type: nfs

-matt

p.s.: I have an Ultra 170E on order from SolarSystems- I'll be able to
crosscheck SBus under netbsd sparc64 as well once that gets here.

-matt