pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/49600: macppc (powerpc) gcc 4.8.4 internal compiler error on multimedia/libvpx



The following reply was made to PR pkg/49600; it has been noted by GNATS.

From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/49600: macppc (powerpc) gcc 4.8.4 internal compiler error
 on multimedia/libvpx
Date: Fri, 23 Jan 2015 21:45:46 -0600 (CST)

 Removing the "-O3" optimization flag avoids the internal compiler error.
 The following patch accomplishes this:
 
 +Index: multimedia/libvpx/hacks.mk
 +===================================================================
 +RCS file: /cvsroot/pkgsrc/multimedia/libvpx/hacks.mk,v
 +retrieving revision 1.4
 +diff -u -p -r1.4 hacks.mk
 +--- multimedia/libvpx/hacks.mk	26 May 2014 18:10:22 -0000	1.4
 ++++ multimedia/libvpx/hacks.mk	24 Jan 2015 03:44:37 -0000
 +@@ -10,3 +10,17 @@ PKG_HACKS+=		sparc-gcc-lock-up
 + BUILDLINK_TRANSFORM+=	rm:-O[0-9]*
 + .  endif
 + .endif
 ++ 
 ++### GCC 4.8.4 internal compiler error in "vp9/encoder/vp9_variance_c.c".
 ++### See PR pkg/49600 for more details.
 ++.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc"
 ++.  include "../../mk/compiler.mk"
 ++.  if !empty(CC_VERSION:Mgcc-4.[89].*)
 ++PKG_HACKS+=		powerpc-internal-compiler-error
 ++SUBST_CLASSES+=		libs
 ++SUBST_STAGE.libs=	post-configure
 ++SUBST_MESSAGE.libs=	Work around internal compiler error
 ++SUBST_FILES.libs=	libs-ppc32-linux-gcc.mk
 ++SUBST_SED.libs=		-e '/CFLAGS/s,-O3 ,,g'
 ++.  endif
 ++.endif
 
 I would prefer modifying the flags for only those sources that present
 a problem, but I don't see how at the moment.
 
 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645
 


Home | Main Index | Thread Index | Old Index