NetBSD Problem Report #49609

From www@NetBSD.org  Tue Jan 27 14:20:20 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BBFFAA567D
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 27 Jan 2015 14:20:20 +0000 (UTC)
Message-Id: <20150127142019.694BDA6554@mollari.NetBSD.org>
Date: Tue, 27 Jan 2015 14:20:19 +0000 (UTC)
From: frank@phoenix.owl.de
Reply-To: frank@phoenix.owl.de
To: gnats-bugs@NetBSD.org
Subject: internal compiler error while building gcc for m68k with GCC48 and DBG="-O1 -g"
X-Send-Pr-Version: www-1.0

>Number:         49609
>Category:       toolchain
>Synopsis:       internal compiler error while building gcc for m68k with GCC48 and DBG="-O1 -g"
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 27 14:25:00 +0000 2015
>Closed-Date:    Sun Feb 01 17:51:44 +0000 2015
>Last-Modified:  Wed Feb 04 07:00:00 +0000 2015
>Originator:     Frank Wille
>Release:        7.99.4
>Organization:
NetBSD
>Environment:
NetBSD tethys 6.1.5 NetBSD 6.1.5 (TETHYS) #0: Wed Oct  8 14:25:21 CEST 2014  frank@tethys:/home/frank/netbsd/REL6.1.5/src/objx64/sys/arch/amd64/compile/TETHYS amd64
>Description:
Building release (userland) with GCC4.8 for amiga (and probably other m68k ports as well) with Option DBG="-O1 -g" runs into an internal compiler error while building external/gpl3/gcc/usr.bin/backend:

#   compile  backend/tree-loop-distribution.o
/home/frank/netbsd/current/src/objamiga/tooldir.NetBSD-6.1.5-amd64/bin/m68k--netbsdelf-c++ -O1 -g -Werror   -g  -Wno-stack-protector  -I. -I/home/frank/netbsd/current/src/external/gpl3/gcc/usr.bin/backend/../gcc/arch/m68k -DIN_GCC -DHAVE_CONFIG_H -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/. -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/../include -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/../libcpp/include -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/../libdecnumber -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/../libdecnumber/dpd -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/../libbacktrace -DTARGET_NAME=\"m68k--netbsdelf\" -I/home/frank/netbsd/current/src/external/gpl3/gcc/dist/libgcc -I/home/frank/netbsd/current/src/external/gpl3/gcc/usr.bin/backend/../../lib/libgcc/libgcov/arch/m68k --sysroot=/home/frank/netbsd/current/src/
 objamiga/destdir.amiga -DLOCALEDIR=\"/usr/share/locale\" -DNETBSD_NATIVE -I. -DENABLE_SHARED_LIBGCC  -c    /home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/tree-loop-distribution.c -o tree-loop-distribution.o
/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/tree-loop-distribution.c: In function 'unsigned int tree_loop_distribution()':
/home/frank/netbsd/current/src/external/gpl3/gcc/dist/gcc/tree-loop-distribution.c:1568:1: internal compiler error: in cselib_record_set, at cselib.c:2373
 }
 ^
no stack trace because unwind library not available

>How-To-Repeat:
Build a current release (7.99.4) for any m68k port. Define the variables "HAVE_GCC=48" and "DBG=-O1 -g". Example:

$ ./build.sh -m amiga -O objamiga -U -x -X /home/frank/netbsd/current/xsrc -V HAVE_GCC=48 -V "DBG=-O1 -g" release

After some time the build process runs into the error message above, on my amd64 6.1.5 server.

>Fix:
Unknown.

>Release-Note:

>Audit-Trail:
From: "Chuck Silvers" <chs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49609 CVS commit: src/external/gpl3/gcc/usr.bin/backend
Date: Sun, 1 Feb 2015 17:47:00 +0000

 Module Name:	src
 Committed By:	chs
 Date:		Sun Feb  1 17:47:00 UTC 2015

 Modified Files:
 	src/external/gpl3/gcc/usr.bin/backend: Makefile

 Log Message:
 update m68k gcc bug workarounds for gcc 4.8.  fixes PR 49609.


 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/gcc/usr.bin/backend/Makefile

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

State-Changed-From-To: open->closed
State-Changed-By: chs@NetBSD.org
State-Changed-When: Sun, 01 Feb 2015 17:51:44 +0000
State-Changed-Why:
fixed by the attached commit.


From: "Soren Jacobsen" <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49609 CVS commit: [netbsd-7] src/external/gpl3/gcc/usr.bin/backend
Date: Wed, 4 Feb 2015 06:57:37 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Wed Feb  4 06:57:37 UTC 2015

 Modified Files:
 	src/external/gpl3/gcc/usr.bin/backend [netbsd-7]: Makefile

 Log Message:
 Pull up following revision(s) (requested by chs in ticket #486):
 	external/gpl3/gcc/usr.bin/backend/Makefile: revision 1.24
 update m68k gcc bug workarounds for gcc 4.8.  fixes PR 49609.


 To generate a diff of this commit:
 cvs rdiff -u -r1.22.2.1 -r1.22.2.2 \
     src/external/gpl3/gcc/usr.bin/backend/Makefile

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

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.