Subject: kern/21311: Generic kernel doesnt compile in 1.6.1_STABLE
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mipam@ibb.net>
List: netbsd-bugs
Date: 04/24/2003 23:35:50
>Number:         21311
>Category:       kern
>Synopsis:       Generic kernel doesnt compile in 1.6.1_STABLE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 24 21:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     The Mipam user
>Release:        NetBSD 1.6.1_STABLE
>Organization:
	Mipster :-)	
>Environment:
System: NetBSD 143pc224.sshunet.nl 1.6.1_STABLE NetBSD 1.6.1_STABLE (Mipam_800) #0: Wed Apr 23 00:01:52 CEST 2003 root@143pc224.sshunet.nl:/usr/src/sys/arch/i386/compile/Mipam_800 i386
Architecture: i386
Machine: i386
>Description:
GENERIC kernel doesnt compile.
I renamed GENERIC to Mipam.GENERIC

/usr/src/tools/obj/tools.NetBSD-1.6.1_STABLE-i386/bin/i386--netbsdelf-gcc  -ffreestanding  -pipe -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /sys/arch/i386/compile/Mipam.GENERIC/../../../../dev/pci/if_pcn.c
/sys/arch/i386/compile/Mipam.GENERIC/../../../../dev/pci/if_pcn.c: In function `pcn_init':
/sys/arch/i386/compile/Mipam.GENERIC/../../../../dev/pci/if_pcn.c:1768: internal error--unrecognizable insn:
(insn 644 643 646 (set (reg:SI 170)
        (unspec:SI[ 
                (const_int 512 [0x200])
            ]  5)) -1 (nil)
    (nil))
*** Error code 1

Stop.
nbmake: stopped in /sys/arch/i386/compile/Mipam.GENERIC

Please note that the kernel i compiled was a modified one where i outcommented
all the devices i didnt need, so if_pcn.c is never processed in my custom
kernel. Long live adjustkernel from Hubert!! :-)
Yes, i did download the source again, didnt modify any etc etc, just the source
as it comes with -rnetbsd-1-6.
Second note: this is the case since at least 1,5 month now, i hoped this would
be addressed now, but it isnt, so i send this pr.
>How-To-Repeat:
	Try to compile GENERIC	
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: