NetBSD Problem Report #46719

From htodd@emily.i8u.org  Wed Jul 18 20:34:15 2012
Return-Path: <htodd@emily.i8u.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id CAD8F63E24B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 18 Jul 2012 20:34:14 +0000 (UTC)
Message-Id: <20120718203413.416D53D8F1@emily.i8u.org>
Date: Wed, 18 Jul 2012 13:34:12 -0700 (PDT)
From: htodd@twofifty.com
Reply-To: htodd@twofifty.com
To: gnats-bugs@gnats.NetBSD.org
Subject: mrtg fails to build with a compiler error on sparc64
X-Send-Pr-Version: 3.95

>Number:         46719
>Category:       port-sparc64
>Synopsis:       mrtg fails to build with a compiler error on sparc64
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-sparc64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 18 20:35:00 +0000 2012
>Closed-Date:    
>Last-Modified:  Thu May 23 07:05:01 +0000 2013
>Originator:     H. Todd Fujinaka
>Release:        NetBSD 6.0_BETA2
>Organization:
None
>Environment:


System: NetBSD emily.i8u.org 6.0_BETA2 NetBSD 6.0_BETA2 (EMILY) #17: Tue Jul 17 18:45:37 PDT 2012 htodd@chris:/usr/obj/netbsd-6/sparc64/objdir/usr/src/sys/arch/sparc64/compile/EMILY sparc64
Architecture: sparc64
Machine: sparc64
>Description:

===> Building for mrtg-2.17.2nb1
gcc -DPNG_NO_ASSEMBLER_CODE -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg -I/usr -I/usr/pkg -O2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/freetype2 -Wall -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c ./src/rateup.c -o bin/rateup.o
./src/rateup.c: In function 'update':
./src/rateup.c:1575:4: warning: comparison between signed and unsigned integer expressions
./src/rateup.c:1612:4: warning: comparison between signed and unsigned integer expressions
./src/rateup.c:1649:4: warning: comparison between signed and unsigned integer expressions
./src/rateup.c:1686:4: warning: comparison between signed and unsigned integer expressions
./src/rateup.c: In function 'image':
./src/rateup.c:1136:1: error: insn does not satisfy its constraints:
(insn 11219 11218 3096 307 ./src/rateup.c:913 (set (mem/c:SI (reg:DI 2 %g2) [23 %sfp+-10660 S4 A32])
        (reg:SI 65 %f33 [+4 ])) 50 {*movsi_insn} (nil))
./src/rateup.c:1136:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
*** Error code 1


>How-To-Repeat:
cd /usr/pkgsrc/net/mrtg; make whatever

>Fix:
No idea.


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->port-sparc64-maintainer
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 18 Jul 2012 21:49:21 +0000
Responsible-Changed-Why:
Compiler error on port-sparc64


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/46719 (mrtg fails to build with a compiler error on sparc64)
Date: Thu, 19 Jul 2012 00:35:06 +0200

 This should be reported upstream

 Martin

From: Hisashi T Fujinaka <htodd@twofifty.com>
To: gnats-bugs@NetBSD.org
Cc: port-sparc64-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: port-sparc64/46719 (mrtg fails to build with a compiler error
 on sparc64)
Date: Wed, 18 Jul 2012 16:16:36 -0700 (PDT)

 On Wed, 18 Jul 2012, Martin Husemann wrote:

 > This should be reported upstream

 gcc upstream?

 -- 
 Hisashi T Fujinaka - htodd@twofifty.com
 BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte

From: Martin Husemann <martin@duskware.de>
To: Hisashi T Fujinaka <htodd@twofifty.com>
Cc: gnats-bugs@NetBSD.org, port-sparc64-maintainer@NetBSD.org,
	gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: port-sparc64/46719 (mrtg fails to build with a compiler error on sparc64)
Date: Thu, 19 Jul 2012 09:50:06 +0200

 On Wed, Jul 18, 2012 at 04:16:36PM -0700, Hisashi T Fujinaka wrote:
 > On Wed, 18 Jul 2012, Martin Husemann wrote:
 > 
 > >This should be reported upstream
 > 
 > gcc upstream?

 Yes, please - this is in an area we have not touched (though it may already
 have been fixed, but I didn't spot any relevant changes on the 4.5 branch).

 Ideally a report would use a smaller demonstration program (the error is
 related to using a float value as integer, but I can't spot anything
 extraordinary in this regard in the mrtg code - it mostly uses long long
 and double).

 Martin

From: Martin Husemann <martin@duskware.de>
To: Hisashi T Fujinaka <htodd@twofifty.com>
Cc: gnats-bugs@NetBSD.org, port-sparc64-maintainer@NetBSD.org,
	gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: port-sparc64/46719 (mrtg fails to build with a compiler error on sparc64)
Date: Thu, 19 Jul 2012 09:52:15 +0200

 Btw, forgot to mention: compiling this single file with -O1 should work
 around the problem.

 Martin

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46719 CVS commit: pkgsrc/net/mrtg
Date: Mon, 23 Jul 2012 08:13:31 +0000

 Module Name:	pkgsrc
 Committed By:	martin
 Date:		Mon Jul 23 08:13:31 UTC 2012

 Added Files:
 	pkgsrc/net/mrtg: hacks.mk

 Log Message:
 Add compiler hack to work around PR port-sparc64/46719.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/net/mrtg/hacks.mk

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

State-Changed-From-To: open->suspended
State-Changed-By: martin@NetBSD.org
State-Changed-When: Sun, 23 Dec 2012 12:42:43 +0000
State-Changed-Why:
Worked around in pkgsrc, needs upstream fix but no easy upstream bugreport
(yet).


State-Changed-From-To: suspended->closed
State-Changed-By: htodd@NetBSD.org
State-Changed-When: Wed, 22 May 2013 21:54:40 +0000
State-Changed-Why:
Submitter no longer running NetBSD 6.0_BETA2 sparc64.


From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/46719 (mrtg fails to build with a compiler error on sparc64)
Date: Thu, 23 May 2013 09:00:26 +0200

 For the record: this seems to be gcc bugzilla ticket #48830, fixed in
 upstream trunk, backport mostly impossible.

 Martin

>Unformatted:
 Subject: mrtg fails to build with a compiler error

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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.