NetBSD Problem Report #56222

From www@netbsd.org  Mon May 31 16:37:07 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id EF9681A923B
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 31 May 2021 16:37:06 +0000 (UTC)
Message-Id: <20210531163705.9F4251A924C@mollari.NetBSD.org>
Date: Mon, 31 May 2021 16:37:05 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: ICE building tools compat/bt_page.lo on NetBSD/alpha under Qemu
X-Send-Pr-Version: www-1.0

>Number:         56222
>Category:       toolchain
>Synopsis:       ICE building tools compat/bt_page.lo on NetBSD/alpha under Qemu
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 31 16:40:00 +0000 2021
>Originator:     Jason Thorpe
>Release:        NetBSD 9.99.82
>Organization:
RISCy Business
>Environment:
NetBSD alpha-vm 9.99.82 NetBSD 9.99.82 (GENERIC-$Revision: 1.411 $) #73: Sun May 30 12:37:25 PDT 2021  thorpej@the-ripe-vessel:/space/src/sys/arch/alpha/compile/GENERIC.QEMU alpha

Qemu configured for 4 CPUs and 2GB of RAM.
>Description:
    compile  compat/bt_page.lo
during GIMPLE pass: strlen
/nbsd/src/tools/compat/../../lib/libc/db/btree/bt_page.c: In function '__bt_new':
/nbsd/src/tools/compat/../../lib/libc/db/btree/bt_page.c:87:1: internal compiler error: Segmentation fault
   87 | __bt_new(BTREE *t, pgno_t *npg)
      | ^~~~~~~~
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/support/send-pr.html> for instructions.
--- bt_page.lo ---

*** Failed target: bt_page.lo
*** Failed commands:
        ${_MKTARGET_COMPILE}
        ${HOST_COMPILE.c} -o ${.TARGET}.o ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC}
        ${MV} ${.TARGET}.o ${.TARGET}
*** [bt_page.lo] Error code 1

nbmake[3]: stopped in /nbsd/src/tools/compat

Version of the compiler that failed:

alpha-vm:thorpej 30$ cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/lto-wrapper
Target: alpha--netbsd
Configured with: /usr/src/tools/gcc/../../external/gpl3/gcc/dist/configure --target=alpha--netbsd --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/support/send-pr.html --with-pkgversion='NetBSD nb1 20210411' --with-system-zlib --without-isl --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --with-default-libstdcxx-abi=new --with-mpc-lib=/var/obj/mknative/alpha/usr/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/alpha/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/alpha/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/alpha --enable-tls --disable-multilib --disable-libstdcxx-pch --build=alpha--netbsd --host=alpha--netbsd --with-sysroot=/var/obj/mknative/alpha/usr/src/destdir.alpha
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.3.0 (nb1 20210411) 
alpha-vm:thorpej 31$ 

>How-To-Repeat:
Build tools on Alpha under Qemu.  Here is the exact command I used:

./build.sh -j2 -D /nbsd/destdir/alpha -m alpha -O /nbsd/objdir/alpha -R /nbsd/releasedir/alpha -T /nbsd/tools -U -N 1 -V MAKECONF=/nbsd/src/mk.conf -w /nbsd/tools/bin/nbmake-alpha tools

mk.conf contains:

MKDEBUG=yes

>Fix:
N/A

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.