NetBSD Problem Report #48501

From tron@zhadum.org.uk  Sun Jan  5 13:32:06 2014
Return-Path: <tron@zhadum.org.uk>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 553E3A6469
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  5 Jan 2014 13:32:06 +0000 (UTC)
Message-Id: <20140105133159.8D171AF4B@sheridan.zhadum.org.uk>
Date: Sun,  5 Jan 2014 13:31:59 +0000 (GMT)
From: tron@zhadum.org.uk
Reply-To: tron@zhadum.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: GCC 4.5.3 gets stuck compiling "libvpx" package
X-Send-Pr-Version: 3.95

>Number:         48501
>Category:       port-sparc64
>Synopsis:       GCC 4.5.3 gets stuck compiling "libvpx" package
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc64-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 05 13:35:00 +0000 2014
>Closed-Date:    Sun Jun 12 03:43:54 +0000 2016
>Last-Modified:  Sun Jun 12 03:43:54 +0000 2016
>Originator:     tron@zhadum.org.uk
>Release:        NetBSD 6.1_STABLE 2013-01-4 sources
>Organization:
Matthias Scheler                                  http://zhadum.org.uk/
>Environment:
System: NetBSD sheridan.zhadum.org.uk 6.1_STABLE NetBSD 6.1_STABLE (SHERIDAN) #0: Sat Jan 4 19:17:47 GMT 2014 tron@excalibur.zhadum.org.uk:/objdir/tron/nb/sys/arch/sparc64/compile/SHERIDAN sparc64
Architecture: sparc64
Machine: sparc64
>Description:
The "multimedia/libvpx" package in pkgsrc cannot be compiler under
NetBSD/sparc64 unless optimization is disabled. Otherwise the compile
will get stuck while building "vp9/vp9_cx_iface.c". I tried to disable
"-O3" first but it didn't help. Only disabling any kind of optimization
(the package used "-O2" *and*" "-O3") worked around the problem.

>How-To-Repeat:
cd pkgsrc/multimedia/libvpx
rm hacks.mk
make clean && make

>Fix:
Not known.

>Release-Note:

>Audit-Trail:
From: "Matthias Scheler" <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/48501 CVS commit: pkgsrc/multimedia/libvpx
Date: Sun, 5 Jan 2014 13:36:52 +0000

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Sun Jan  5 13:36:52 UTC 2014

 Modified Files:
 	pkgsrc/multimedia/libvpx: hacks.mk

 Log Message:
 Add reference to PR port-sparc64/48501.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/multimedia/libvpx/hacks.mk

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

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx" package
Date: Sun, 5 Jan 2014 15:10:54 +0100

 On Sun, Jan 05, 2014 at 01:35:00PM +0000, tron@zhadum.org.uk wrote:
 > The "multimedia/libvpx" package in pkgsrc cannot be compiler under
 > NetBSD/sparc64 unless optimization is disabled.

 I disagree. I have that pkg (build last november, so without the hack you
 just added) on a sparc64 machine.

 Maybe you were too impatient?

 Martin

From: Matthias Scheler <tron@zhadum.org.uk>
To: Martin Husemann <martin@duskware.de>
Cc: NetBSD GNATS <gnats-bugs@NetBSD.org>
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx"
 package
Date: Sun, 5 Jan 2014 19:29:15 +0000

 On Sun, Jan 05, 2014 at 02:15:01PM +0000, Martin Husemann wrote:
 >  On Sun, Jan 05, 2014 at 01:35:00PM +0000, tron@zhadum.org.uk wrote:
 >  > The "multimedia/libvpx" package in pkgsrc cannot be compiler under
 >  > NetBSD/sparc64 unless optimization is disabled.
 >  
 >  I disagree. I have that pkg (build last november, so without the hack you
 >  just added) on a sparc64 machine.

 The package has been updated since.

 >  Maybe you were too impatient?

 I doubt that. But I'll try.

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

From: Martin Husemann <martin@duskware.de>
To: Matthias Scheler <tron@zhadum.org.uk>
Cc: NetBSD GNATS <gnats-bugs@NetBSD.org>
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx" package
Date: Sun, 5 Jan 2014 20:43:01 +0100

 On Sun, Jan 05, 2014 at 07:29:15PM +0000, Matthias Scheler wrote:
 > The package has been updated since.

 Ah - I'll try to reproduce the problem.

 Martin

From: Matthias Scheler <tron@zhadum.org.uk>
To: Martin Husemann <martin@duskware.de>
Cc: NetBSD GNATS <gnats-bugs@NetBSD.org>
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx"
 package
Date: Sun, 5 Jan 2014 23:02:17 +0000

 On Sun, Jan 05, 2014 at 07:29:14PM +0000, Matthias Scheler wrote:
 > On Sun, Jan 05, 2014 at 02:15:01PM +0000, Martin Husemann wrote:
 > >  On Sun, Jan 05, 2014 at 01:35:00PM +0000, tron@zhadum.org.uk wrote:
 > >  > The "multimedia/libvpx" package in pkgsrc cannot be compiler under
 > >  > NetBSD/sparc64 unless optimization is disabled.
 > >  
 > >  I disagree. I have that pkg (build last november, so without the hack you
 > >  just added) on a sparc64 machine.
 > 
 > The package has been updated since.
 > 
 > >  Maybe you were too impatient?
 > 
 > I doubt that. But I'll try.

 My ULTRA60 has now spend more than 200 CPU minutes trying to compile
 a 1,200 line C source:

   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
  3715 tron      17   10    25M   18M CPU/0    201:57 99.85% 99.85% cc1

 I'm sorry but this is a compiler bug.

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

From: Martin Husemann <martin@duskware.de>
To: Matthias Scheler <tron@zhadum.org.uk>
Cc: NetBSD GNATS <gnats-bugs@NetBSD.org>
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx" package
Date: Mon, 6 Jan 2014 11:55:51 +0100

 On Sun, Jan 05, 2014 at 11:02:17PM +0000, Matthias Scheler wrote:
 > My ULTRA60 has now spend more than 200 CPU minutes trying to compile
 > a 1,200 line C source:
 > 
 >   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
 >  3715 tron      17   10    25M   18M CPU/0    201:57 99.85% 99.85% cc1
 > 
 > I'm sorry but this is a compiler bug.

 Yes, it is (I could reproduce it), and it is fixed in gcc 4.8 (just did a
 successfull build of the pkg without hacks.mk).

 Can we limit the hack to 4.5 or older?

 Martin

From: Matthias Scheler <tron@zhadum.org.uk>
To: Martin Husemann <martin@duskware.de>
Cc: NetBSD GNATS <gnats-bugs@NetBSD.org>
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx"
 package
Date: Mon, 6 Jan 2014 11:06:18 +0000

 On Mon, Jan 06, 2014 at 11:55:51AM +0100, Martin Husemann wrote:
 > On Sun, Jan 05, 2014 at 11:02:17PM +0000, Matthias Scheler wrote:
 > > My ULTRA60 has now spend more than 200 CPU minutes trying to compile
 > > a 1,200 line C source:
 > > 
 > >   PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
 > >  3715 tron      17   10    25M   18M CPU/0    201:57 99.85% 99.85% cc1
 > > 
 > > I'm sorry but this is a compiler bug.
 > 
 > Yes, it is (I could reproduce it), and it is fixed in gcc 4.8 (just did a
 > successfull build of the pkg without hacks.mk).

 Any change of back porting the fix to GCC 4.5?

 > Can we limit the hack to 4.5 or older?

 Can you please try to the change the following line in
 "pkgsrc/multimedia/libvpx/hacks.mk" ...

 .  if !empty(CC_VERSION:Mgcc*)

 ... to this:

 .  if !empty(CC_VERSION:Mgcc-4.[0-7].*)

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx" package
Date: Mon, 6 Jan 2014 12:51:20 +0100

 On Mon, Jan 06, 2014 at 11:10:01AM +0000, Matthias Scheler wrote:
 >  Any change of back porting the fix to GCC 4.5?

 It is not obvious to me which change this is, if someone spots a
 bugzilla ticket for it, we could evaluate.

 >  > Can we limit the hack to 4.5 or older?
 >  
 >  Can you please try to the change the following line in
 >  "pkgsrc/multimedia/libvpx/hacks.mk" ...
 >  
 >  .  if !empty(CC_VERSION:Mgcc*)
 >  
 >  ... to this:
 >  
 >  .  if !empty(CC_VERSION:Mgcc-4.[0-7].*)

 I commited this with [0-5] (we don't know about 4.6 or 4.7).

 Martin

From: csanchezdll@gmail.com (Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama)
To: Matthias Scheler <tron@zhadum.org.uk>
Cc: Martin Husemann <martin@duskware.de>, NetBSD GNATS <gnats-bugs@NetBSD.org>
Subject: Re: port-sparc64/48501: GCC 4.5.3 gets stuck compiling "libvpx"
Date: Mon, 26 May 2014 08:51:05 +0000

 Seems to happen on sparc 32-bit too.

 Same fix works:

 -.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
 +.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc*)

 -PKG_HACKS+=            sparc64-gcc-lock-up
 +PKG_HACKS+=            sparc-gcc-lock-up

 BR

 Carlos

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 12 Jun 2016 03:43:54 +0000
State-Changed-Why:
The hack for libvpx was committed, and in its current form it matches both
sparc and sparc64. Meanwhile, if nobody's found an upstream patch for gcc
yet and it doesn't affect gcc 4.8 and up, I think "wontfix" is the right
procedure going forward.


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