NetBSD Problem Report #55266

From  Thu May 14 22:14:46 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 69C0D1A9227
	for <>; Thu, 14 May 2020 22:14:46 +0000 (UTC)
Message-Id: <>
Date: Fri, 15 May 2020 07:14:37 +0900 (JST)
From: Izumi Tsutsui <>
Subject: NetBSD/sh3el 9.0 gcc 7.4.0 ICE on building pkgsrc/graphics/graphviz
X-Send-Pr-Version: 3.95

>Number:         55266
>Category:       toolchain
>Synopsis:       NetBSD/sh3el 9.0 gcc 7.4.0 ICE on building pkgsrc/graphics/graphviz
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 14 22:15:00 +0000 2020
>Last-Modified:  Fri May 15 14:55:01 +0000 2020
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0
System: NetBSD lantank 9.0 NetBSD 9.0 (LANTANK) #1: Sun May  3 17:58:04 JST 2020  tsutsui@mirage:/s/netbsd-9/src/sys/arch/landisk/compile/LANTANK landisk
Architecture: sh3el
Machine: landisk
On building pkgsrc-2020Q1 pkgsrc/graphics/graphviz on NetBSD/sh3el 9.0
gcc gets ICE:
config.status: creating lib/ast/Makefile
config.status: executing depfiles commands
  CC       pathpath.lo


  CC       error.lo
In file included from ../../lib/sfio/sfio.h:28:0,
                 from ./ast.h:21,
                 from error.c:26:
../../config.h:466:0: warning: "NO_POSTSCRIPT_ALIAS" redefined

<command-line>:0:0: note: this is the location of the previous definition
error.c: In function '_err_msgv':
error.c:55:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual]
     if (level && ((s = || (s = (char *) id))) {
gcc: internal compiler error: Illegal instruction (program cc1 received signal 4)
Please submit a full bug report,
with preprocessed source if appropriate.
See <> for instructions.
*** Error code 1

make[3]: stopped in /usr/obj.sh3el/pkgsrc/graphics/graphviz/work.sh3el/graphviz-2.40.1/lib/ast
*** Error code 1


Build pkgsrc-2020Q1 pkgsrc/graphics/graphviz on NetBSD/sh3el 9.0.
Not reproducible with cross toolchains.

No idea.
Adding "-fno-tree-dominator-opts -fno-tree-vrp" to CFLAGS works around.

Izumi Tsutsui

Subject: Re: toolchain/55266: NetBSD/sh3el 9.0 gcc 7.4.0 ICE on building
Date: Fri, 15 May 2020 14:51:14 +0000


 could you re-run the build command with -save-temps,
 save the build command,
 save the .i file

 This will save a few steps for anyone attempting to reproduce the
 failure (no need to build all the dependencies of graphviz, etc.)

 Most likely, the build command will be what comes from
 grep error.c work/.work.log


NetBSD Home
NetBSD PR Database Search

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