Subject: pkg/24643: pkgsrc/db4 causes cc1 to dump core
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gr@eclipsed.net>
List: netbsd-bugs
Date: 03/02/2004 12:34:29
>Number:         24643
>Category:       pkg
>Synopsis:       pkgsrc/db4 causes cc1 to dump core
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 02 17:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     gabriel rosenkoetter
>Release:        NetBSD 1.6.1_RC2
>Organization:
	
>Environment:
	
	
System: NetBSD uriel 1.6.1_RC2 NetBSD 1.6.1_RC2 (URIEL) #0: Wed Mar 26 19:22:52 EST 2003 gr@grappa:/new/src/netbsd-1-6/src/sys/arch/macppc/compile/URIEL macppc
Architecture: powerpc
Machine: macppc

gcc version 2.95.3
>Description:
===> Building for db4-4.2.52
/bin/sh ./libtool --mode=compile gcc -c -I. -I../dist/.. -O2 /usr/pkgsrc/databases/db4/work/db-4.2.52/build_unix/../dist/../mutex/mut_tas.c
mkdir .libs
gcc -c -I. -I../dist/.. -O2 /usr/pkgsrc/databases/db4/work/db-4.2.52/build_unix/../dist/../mutex/mut_tas.c  -fPIC -DPIC -o .libs/mut_tas.o
/usr/pkgsrc/databases/db4/work/db-4.2.52/build_unix/../dist/../mutex/mut_tas.c: In function `__db_tas_mutex_lock':
/usr/pkgsrc/databases/db4/work/db-4.2.52/build_unix/../dist/../mutex/mut_tas.c:174: internal error--unrecognizable insn:
(insn/i 68 212 215 (parallel[
            (set (reg/v:SI 7 r7)
                (asm_operands/v ("0:
               lwarx   %0,0,%1
               cmpwi   %0,0
               bne-    1f
               stwcx.  %1,0,%1
               isync
               beq+    2f
               b       0b
        1:
               li      %1, 0
        2:
        ") ("=&r") 0[
                        (reggcc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/db4/work/db-4.2.52/build_unix
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/db4
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/databases/db4
>How-To-Repeat:
cd pkgsrc/db4 && make
>Fix:
Beats me.

It's possible that this is a gcc3 growing pain, it's possible that
it's a PowerPC problem, it's possible that it's SMP merge pain
(going on the /parallel[/ in the bad insn; I don't speak PowerPC
assembler without a reference manual handy, though). Um. That *is*
PowerPC assembly, right? Because if not then db4 isn't actually
portable...
>Release-Note:
>Audit-Trail:
>Unformatted: