pkgsrc-Bugs archive

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

Re: pkg/48680 (gcc48 chokes on ffmpeg2 inline assembly (i386-6.99.38))



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

From: "John D. Baker" <jdbaker%mylinuxisp.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/48680 (gcc48 chokes on ffmpeg2 inline assembly (i386-6.99.38))
Date: Thu, 4 Dec 2014 23:44:13 -0600 (CST)

 On Fri, 5 Dec 2014, dholland%NetBSD.org@localhost wrote:
 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland%NetBSD.org@localhost
 > State-Changed-When: Fri, 05 Dec 2014 04:14:59 +0000
 > State-Changed-Why:
 > Does that work?
 
 Yes, it does.
 
 Partially related, ffmpeg010 also needs the stack-realignment options
 enabled for i386:
 
 +Index: multimedia/ffmpeg010/Makefile
 +===================================================================
 +RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg010/Makefile,v
 +retrieving revision 1.19
 +diff -u -p -r1.19 Makefile
 +--- multimedia/ffmpeg010/Makefile	11 Aug 2014 23:09:45 -0000	1.19
 ++++ multimedia/ffmpeg010/Makefile	16 Aug 2014 03:35:49 -0000
 +@@ -30,17 +30,15 @@ CONF_FILES+=	${PREFIX}/share/examples/ff
 + .include "../../mk/compiler.mk"
 + 
 + # disable asm on i386 for non-gcc and gcc < 4.2
 +-# no alignment options needed for gcc >= 4.6 on i386
 + 
 + .if ${MACHINE_ARCH} == "i386"
 +-.if !empty(MACHINE_PLATFORM:MDarwin-*-i386)
 +-CONFIGURE_ARGS+=	--disable-asm
 +-.elif !empty(CC_VERSION:Mgcc-4.[2345]*)
 +-CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4
 +-.elif !empty(CC_VERSION:Mgcc-[123]*) \
 +-   || !empty(CC_VERSION:Mgcc-4.[01]*) \
 ++.if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
 ++   || !empty(CC_VERSION:Mgcc-[123]*) \
 ++   || !empty(CC_VERSION:Mgcc-4.[01].*) \
 +    || empty(CC_VERSION:Mgcc*)
 + CONFIGURE_ARGS+=	--disable-asm
 ++.elif !empty(CC_VERSION:Mgcc-4.*)
 ++CFLAGS+=-mstackrealign -mpreferred-stack-boundary=4
 + .endif
 + .endif
 + 
 
 -- 
 |/"\ 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