Subject: Re: -current kernel build fails
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Greg A. Woods <woods@weird.com>
List: current-users
Date: 02/21/2003 15:17:03
[ On Friday, February 21, 2003 at 15:30:19 (+0000), Patrick Welche wrote: ]
> Subject: Re: -current kernel build fails
>
> On Fri, Feb 21, 2003 at 05:24:40PM +0200, Ossi Herrala wrote:
> > Hii
> > 
> > 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
> > c/sys/dev/pci/if_pcn.c
> > /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)
> >         (unspec:SI[ 
> >                 (const_int 512 [0x200])
> >             ]  5)) -1 (nil)
> >     (nil))
> > cpp0: output pipe has been closed
> > *** [if_pcn.o] Error code 1
> > 1 error
> 
> and mysteriously it will succeeded if you don't use -pipe. It also doesn't
> matter whether you use PIPE_SOCKETPAIR or not.

I encountered the very same problem when building the netbsd-1-6 branch
last night too.  However my build is running on an older 1.5W kernel
which also happens to have "options NEW_PIPE".

I smell a very nasty pipe() bug.  Back to using an MFS TMPDIR for me, at
least until I can bootstrap up onto a newer kernel.

Now I thought I did have '-O2' included somewhere appropriate, but it
seems not....  (which would explain why my libc grew bigger too!  ;-)

/home/proven/woods/NetBSD-1.6.x-tools/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/work/woods/m-NetBSD-1.6/sys/arch -I/work/woods/m-NetBSD-1.6/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /work/woods/m-NetBSD-1.6/sys/dev/pci/if_pcn.c
/work/woods/m-NetBSD-1.6/sys/dev/pci/if_pcn.c: In function `pcn_init':
/work/woods/m-NetBSD-1.6/sys/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))
cpp0: output pipe has been closed


-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>