NetBSD Problem Report #24293

Received: (qmail 13674 invoked by uid 605); 1 Feb 2004 18:39:09 -0000
Message-Id: <20040201183906.9E9AE21012@smistad.uninett.no>
Date: Sun,  1 Feb 2004 19:39:06 +0100 (CET)
From: he@netbsd.org
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: he@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: Native compile of igmp.c fails with internal compiler error
X-Send-Pr-Version: 3.95

>Number:         24293
>Category:       port-m68k
>Synopsis:       Native compile of igmp.c fails with internal compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-m68k-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 01 18:40:00 +0000 2004
>Closed-Date:    Fri Jul 02 15:53:53 +0000 2004
>Last-Modified:  Fri Jul 02 15:53:53 +0000 2004
>Originator:     Havard Eidnes
>Release:        NetBSD 1.6ZI
>Organization:
	Unorganized, Inc.
>Environment:
System: NetBSD dennis.urc.uninett.no 1.6ZC NetBSD 1.6ZC (DENNIS) #6: Fri Oct  3 14:21:27 CEST 2003  jarle@dennis.urc.uninett.no:/sys/arch/hp300/compile/DENNIS hp300
Architecture: m68k
Machine: hp300
>Description:
	The host is running 1.6ZC.

	I'm using sources from yesterday, and have rebuilt the tools,
	so gcc is 3.3.2 nb1:

dennis# /usr/tools/bin/m68k--netbsdelf-gcc --version
m68k--netbsdelf-gcc (GCC) 3.3.2 (NetBSD nb1 20031026)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

dennis# 

	while the host compiler which built the above is 2.95.3:

dennis# cc --version
2.95.3
dennis# 

	While trying to compile a new kernel, the following error was
	encountered:

    compile  DENNIS/igmp.o
/usr/src/sys/netinet/igmp.c: In function `rti_fill':
/usr/src/sys/netinet/igmp.c:110: error: unable to find a register to spill in class `DATA_REGS'
/usr/src/sys/netinet/igmp.c:110: error: this is the insn:
(insn:QI 33 32 34 3 0x10495660 (set (cc0)
        (compare (mem/s:SI (plus:SI (reg/v/f:SI 9 %a1 [31])
                    (const_int 12 [0xc])) [3 <variable>.rti_type+0 S4 A32])
            (const_int 1 [0x1]))) 11 {*m68k.md:518} (nil)
    (expr_list:REG_DEAD (reg/v/f:SI 9 %a1 [31])
        (nil)))
/usr/src/sys/netinet/igmp.c:110: confused by earlier errors, bailing out

*** Failed target:  igmp.o
*** Failed command: echo ' ' "compile DENNIS/igmp.o"; : echo /usr/tools/bin/m68k--netbsdelf-gcc -msoft-float -ffreestanding -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Dhp300 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DCOMPAT_NOLABEL -DDIOVERBOSE -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/netinet/igmp.c; /usr/tools/bin/m68k--netbsdelf-gcc -msoft-float -ffreestanding -g -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Dhp300 -I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DCOMPAT_NOLABEL -DDIOVERBOSE -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /usr/src/sys/netinet/igmp.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/hp300/compile/DENNIS

ERROR: Failed to make all in /usr/src/sys/arch/hp300/compile/obj/DENNIS
*** BUILD ABORTED ***

	The DENNIS kernel is a pruned-down GENERIC hp300 kernel.


>How-To-Repeat:
	Try to build a new kernel from recent sources and with updated
	tools on any m68k-based host (I suspect) which has not yet
	made the leap to gcc 3.3.2.


>Fix:
	Sorry, I don't know.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jmc 
State-Changed-When: Fri Jul 2 15:53:33 UTC 2004 
State-Changed-Why:  
All m68k ports are converted to gcc3.3.3 and this doesn't produce an error 
there. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.