NetBSD Problem Report #45934

From www@NetBSD.org  Mon Feb  6 08:39:58 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 3711C63BCF4
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  6 Feb 2012 08:39:58 +0000 (UTC)
Message-Id: <20120206083957.646F663B86B@www.NetBSD.org>
Date: Mon,  6 Feb 2012 08:39:57 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: graphics/libwebp on Solaris/i86
X-Send-Pr-Version: www-1.0

>Number:         45934
>Category:       pkg
>Synopsis:       graphics/libwebp on Solaris/i86
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 06 08:40:01 +0000 2012
>Closed-Date:    Mon Feb 13 14:01:59 +0000 2012
>Last-Modified:  Mon Feb 13 14:01:59 +0000 2012
>Originator:     Jörn Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Building graphics/libwebp on Solaris/i86 with lang/gcc34 yields

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I/pkgsrc/source/pkgsrc/graphics/libwebp/work.pkgsrc-i86/.buildlink/include -I/pkgsrc/source/pkgsrc/graphics/libwebp/work.pkgsrc-i86/.buildlink/gcc34/include -O -MT libwebpdsp_la-cpu.lo -MD -MP -MF .deps/libwebpdsp_la-cpu.Tpo -c cpu.c  -fPIC -DPIC -o .libs/libwebpdsp_la-cpu.o
cpu.c: In function `x86CPUInfo':
cpu.c:35: error: can't find a register in class `BREG' while reloading `asm'
*** Error code 1

As far as I can tell, the other half of the #if block (starting line 24) should have been used, but as __pic__ is not defined, it isn't. Adding

CFLAGS.SunOS+= -D__pic__

to the Makefile fixes the problem for me. I guess it should be restricted even more (only i86, maybe only 32 bit, maybe only GCC 3), but I am not sure.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 06 Feb 2012 12:59:00 +0000
Responsible-Changed-Why:
Solaris pkgsrc problem.


From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45934: graphics/libwebp on Solaris/i86
Date: Mon, 13 Feb 2012 19:33:11 +0900 (JST)

 This problem seems as same as PR pkg/42865.

 Please try the following patch.
 I have tested on Solaris 10/i386 with lang/gcc34.
 (With native gcc, /usr/sfw/bin/gcc, gcc 3.4.3, this patch is not needed.)

 Index: Makefile
 ===================================================================
 RCS file: /cvsroot/pkgsrc/graphics/libwebp/Makefile,v
 retrieving revision 1.1.1.1
 diff -u -r1.1.1.1 Makefile
 --- Makefile	28 Oct 2011 13:48:00 -0000	1.1.1.1
 +++ Makefile	13 Feb 2012 10:29:46 -0000
 @@ -15,6 +15,12 @@
  GNU_CONFIGURE=	yes
  USE_LIBTOOL=	yes

 +.include "../../mk/compiler.mk"
 +# fix PR pkg/45934
 +.if !empty(MACHINE_PLATFORM:MSunOS-*-i386) && !empty(CC_VERSION:Mgcc-[23]*)
 +CPPFLAGS += -D__pic__
 +.endif
 +
  PKGCONFIG_OVERRIDE+=	src/libwebp.pc.in

  .include "../../graphics/png/buildlink3.mk"

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


From: =?ISO-8859-1?Q?J=F6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org
Cc: Ryo ONODERA <ryo_on@yk.rim.or.jp>, solaris-pkg-people@NetBSD.org,
 gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/45934: graphics/libwebp on Solaris/i86
Date: Mon, 13 Feb 2012 14:02:45 +0100

 >   Please try the following patch.
 >   I have tested on Solaris 10/i386 with lang/gcc34.

 Works for me as well.

 >   (With native gcc, /usr/sfw/bin/gcc, gcc 3.4.3, this patch is not needed.)

 That's strange. My question was, if this is only a problem on 
 SunOS-*-i386, or if *-*-i386 is affected, when using GCC3. But the 
 problem seems to be much more complicated...

 -- 
   Jörn Clausen                             joern.clausen@uni-bielefeld.de
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld

From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/45934: graphics/libwebp on Solaris/i86
Date: Mon, 13 Feb 2012 22:53:25 +0900 (JST)

 From: J=F6rn Clausen <joern.clausen@uni-bielefeld.de>, Date: Mon, 13 Fe=
 b 2012 13:05:04 +0000 (UTC)

 > The following reply was made to PR pkg/45934; it has been noted by GN=
 ATS.
 > =

 > From: =3D?ISO-8859-1?Q?J=3DF6rn_Clausen?=3D <joern.clausen@uni-bielef=
 eld.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: Ryo ONODERA <ryo_on@yk.rim.or.jp>, solaris-pkg-people@NetBSD.org,=

 >  gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
 > Subject: Re: pkg/45934: graphics/libwebp on Solaris/i86
 > Date: Mon, 13 Feb 2012 14:02:45 +0100
 > =

 >  >   Please try the following patch.
 >  >   I have tested on Solaris 10/i386 with lang/gcc34.
 >  =

 >  Works for me as well.

 Thank you.

 >  >   (With native gcc, /usr/sfw/bin/gcc, gcc 3.4.3, this patch is not=
  needed.)
 >  =

 >  That's strange. My question was, if this is only a problem on =

 >  SunOS-*-i386, or if *-*-i386 is affected, when using GCC3. But the =

 >  problem seems to be much more complicated...

 As described in PR pkg/42865, probably lang/gcc34 on Solaris has bug.
 But I cannot confirm the patch for gcc/config/sol2.h.

 --
 Ryo ONODERA // ryo_on@yk.rim.or.jp
 PGP fingerprint =3D 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Responsible-Changed-From-To: solaris-pkg-people->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Mon, 13 Feb 2012 13:55:58 +0000
Responsible-Changed-Why:
I will take this.


From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45934 CVS commit: pkgsrc/graphics/libwebp
Date: Mon, 13 Feb 2012 13:58:26 +0000

 Module Name:	pkgsrc
 Committed By:	ryoon
 Date:		Mon Feb 13 13:58:26 UTC 2012

 Modified Files:
 	pkgsrc/graphics/libwebp: Makefile

 Log Message:
 PR pkg/45934

 Fix build on Solaris/x86 with lang/gcc34.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/graphics/libwebp/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: ryoon@NetBSD.org
State-Changed-When: Mon, 13 Feb 2012 14:01:59 +0000
State-Changed-Why:
Already confirmed. Thank you.


>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.