Subject: -current kernel build fails
To: None <>
From: Ossi Herrala <>
List: current-users
Date: 02/21/2003 17:24:40

I get this while building todays -current kernel on i386:

/usr/tools/bin/i386--netbsdelf-gcc  -pipe -ffreestanding  -pipe -Werror -Wall -W
no-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-pr
ototypes -Wno-sign-compare -Wno-uninitialized  -Di386 -I.  -I/usr/src/sys/arch -
I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /usr/sr
/usr/src/sys/dev/pci/if_pcn.c: In function `pcn_init':
/usr/src/sys/dev/pci/if_pcn.c:1769: internal error--unrecognizable insn:
(insn 644 643 646 (set (reg:SI 170)
                (const_int 512 [0x200])
            ]  5)) -1 (nil)
cpp0: output pipe has been closed
*** [if_pcn.o] Error code 1
1 error

nbmake: stopped in

ERROR: make all failed in

This also happens with GENERIC kernel. Build command is

./ -M/usr/obj -T/usr/tools -D/usr/NetBSD/dest -uU -j2 kernel=TXPO

and dmesg shows:

NetBSD 1.6N (GENERIC) #0: Wed Feb 12 00:55:38 EET 2003
total memory = 511 MB
avail memory = 467 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfb4c0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD K6-2 (586-class), 400.92 MHz, id 0x58c
cpu0: features 8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8021bf<PGE,MMX>
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: ITLB 64 4 KB entries direct-mapped
cpu0: DTLB 128 4 KB entries 2-way
cpu0: 4 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Acer Labs M1541 Host-PCI Bridge (rev. 0x04)
agp0 at pchb0: aperture at 0xe0000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Acer Labs M5243 PCI-AGP Bridge (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: 3Dfx Interactive Voodoo3 (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ohci0 at pci0 dev 2 function 0: Acer Labs M5237 USB Host Controller (rev. 0x03)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Acer Labs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 7 function 0
pcib0: Acer Labs M1543 PCI-ISA Bridge (rev. 0xc3)
ex0 at pci0 dev 10 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 5
ex0: MAC address 00:50:da:72:87:1c
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc1 at pci0 dev 11 function 0
ahc1: interrupting at irq 9
ahc1: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc1: 16 targets, 8 luns per target
emuxki0 at pci0 dev 12 function 0: Creative Labs SBLive! EMU 10000 (audio multimedia, revision 0x08)
emuxki0: interrupting at irq 10
emuxki0: TriTech TR28602 codec; no 3D stereo
audio0 at emuxki0: full duplex, mmap, independent
joy0 at pci0 dev 12 function 1: Creative Labs PCI Gameport Joystick (rev 0x08)
joy0: joystick not connected
pciide0 at pci0 dev 15 function 0: Acer Labs M5229 UDMA IDE Controller (rev. 0xc1)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <MAXTOR 6L040J2>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38172 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 78177792 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <Hewlett-Packard CD-Writer Plus 7500, YMT3GLA6Z9, 1.0a> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
boot device: wd0
root on wd0a dumps on wd0b
wd0: transfer error, downgrading to Ultra-DMA mode 1
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 1 (using DMA data transfers)
wd0a: DMA error reading fsbn 16 of 16-0 (wd0 bn 79; cn 0 tn 1 sn 16), retrying
wd0: soft error (corrected)
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

Any ideas?

Ossi Herrala
Personal PGP key at