Subject: toolchain/15893: BIND breaks gcc
To: None <gnats-bugs@gnats.netbsd.org>
From: None <kre@munnari.OZ.AU>
List: netbsd-bugs
Date: 03/13/2002 23:33:32
>Number: 15893
>Category: toolchain
>Synopsis: with -mcup=ev6 on an alpha, building host in bind aborts gcc
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 13 04:34:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Robert Elz
>Release: NetBSD-current 2002-03-12
>Organization:
University of Melbourne
>Environment:
System: NetBSD munnnari.cs.mu.OZ.AU 1.5ZB NetBSD 1.5ZB (MUNNARI) #6: Tue Mar 12 23:55:31 EST 2002 kre@munnnari.cs.mu.OZ.AU:/usr/src/sys/arch/alpha/compile/MUNNNARI alpha
>Description:
Compiling BIND (as part of regular NetBSD source tree)on
an alpha, with -mcpu=ev6 causes gcc to detect an internal
error and abort, while compiling the host utility
>How-To-Repeat:
Add
COPTS+=-mcpu=ev6
to /etc/mk.conf on alpha (probably needs to be an ev6 alpha to be safe),
and do a regular NetBSD-current build (build.sh ...)
Expect to see...
dependall ===> usr.sbin/bind/host
CC=/usr/obj/tools/bin/alpha--netbsd-gcc /usr/obj/tools/bin/nbmkdep -a -I/usr/obj/usr.sbin/bind/lib -I/usr/obj/usr.sbin/bind/host -I/usr/src/usr.sbin/bind/host/../../../dist/bind/include -nostdinc -isystem //usr/include /usr/src/usr.sbin/bind/host/../../../dist/bind/bin/host/host.c
/usr/obj/tools/bin/alpha--netbsd-gcc -O2 -mcpu=ev6 -Werror -mieee -I/usr/obj/usr.sbin/bind/lib -I/usr/obj/usr.sbin/bind/host -I/usr/src/usr.sbin/bind/host/../../../dist/bind/include -nostdinc -isystem //usr/include -c /usr/src/usr.sbin/bind/host/../../../dist/bind/bin/host/host.c
/usr/src/usr.sbin/bind/host/../../../dist/bind/bin/host/host.c: In function `ListHosts':
/usr/src/usr.sbin/bind/host/../../../dist/bind/bin/host/host.c:1980: Internal compiler error in `gen_add2_insn', at optabs.c:3691
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
*** Error code 1
Stop.
nbmake: stopped in /usr/src/usr.sbin/bind/host
*** Error code 1
Stop.
(etc)
>Fix:
Easy workaround is just to not use -mcpu=ev6 ...
>Release-Note:
>Audit-Trail:
>Unformatted: