NetBSD Problem Report #56789

From gson@gson.org  Sun Apr 10 12:13:47 2022
Return-Path: <gson@gson.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 F226D1A921F
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 10 Apr 2022 12:13:46 +0000 (UTC)
Message-Id: <20220410121338.D0D082546F8@guava.gson.org>
Date: Sun, 10 Apr 2022 15:13:38 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: alpha build fails with internal compiler error
X-Send-Pr-Version: 3.95

>Number:         56789
>Category:       toolchain
>Synopsis:       alpha build fails with internal compiler error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 10 12:15:00 +0000 2022
>Closed-Date:    Sun Apr 24 21:14:31 +0000 2022
>Last-Modified:  Sun Apr 24 21:14:31 +0000 2022
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

Cross-building NetBSD/alpha on NetBSD/amd64 fails with an internal
compiler error:

  /tmp/build/2022.04.08.21.48.19-alpha/src/usr.bin/xlint/lint1/cgram.y:2159:1: internal compiler error: in store_data_bypass_p_1, at recog.c:3714
   2159 | }
        | ^

The problem started with these commits (which is not to say there is
anything wrong with them - an internal compiler error is a bug in the
compiler by definition):

  2022.04.08.21.48.19 rillig src/tests/usr.bin/xlint/lint1/msg_048.c 1.4
  2022.04.08.21.48.19 rillig src/tests/usr.bin/xlint/lint1/msg_048.exp 1.4
  2022.04.08.21.48.19 rillig src/usr.bin/xlint/Makefile.inc 1.21
  2022.04.08.21.48.19 rillig src/usr.bin/xlint/lint1/decl.c 1.269

Logs:

  http://releng.netbsd.org/b5reports/alpha/commits-2022.04.html#2022.04.08.21.48.19

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56789 CVS commit: src/usr.bin/xlint
Date: Sun, 10 Apr 2022 13:21:34 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Apr 10 13:21:34 UTC 2022

 Modified Files:
 	src/usr.bin/xlint: Makefile.inc

 Log Message:
 PR 56789: avoid -ftrapv for alpha, it triggers a gcc error.
 OK: rillig


 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 src/usr.bin/xlint/Makefile.inc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56789 CVS commit: src/doc
Date: Sun, 10 Apr 2022 13:26:47 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Apr 10 13:26:47 UTC 2022

 Modified Files:
 	src/doc: HACKS

 Log Message:
 PR 56789: document gcc bug workaround for -ftrapv on alpha.


 To generate a diff of this commit:
 cvs rdiff -u -r1.226 -r1.227 src/doc/HACKS

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Roland Illig <roland.illig@gmx.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/56789
Date: Mon, 11 Apr 2022 01:04:14 +0200 (GMT+02:00)

 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105209

State-Changed-From-To: open->closed
State-Changed-By: rillig@NetBSD.org
State-Changed-When: Sun, 24 Apr 2022 21:14:31 +0000
State-Changed-Why:
The build has been fixed, the internal compiler error has been reported
upstream.


>Unformatted:

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.