* [Buildroot] [PATCH v2 1/1] package/ffmpeg: Fix i586 compilation with gcc5
@ 2015-06-20 19:44 Bernd Kuhls
2015-07-05 12:44 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2015-06-20 19:44 UTC (permalink / raw)
To: buildroot
In file included from libavcodec/cabac_functions.h:46:0,
from libavcodec/h264_cabac.c:37:
libavcodec/h264_cabac.c: In function 'ff_h264_decode_mb_cabac':
libavcodec/x86/cabac.h:192:5: error: 'asm' operand has impossible constraints
__asm__ volatile(
To reproduce the bug use this defconfig:
BR2_GCC_VERSION_5_1_X=y
BR2_PACKAGE_FFMPEG=y
BR2_PACKAGE_FFMPEG_GPL=y
BR2_PACKAGE_FFMPEG_NONFREE=y
BR2_PACKAGE_FFMPEG_FFPLAY=y
BR2_PACKAGE_FFMPEG_FFSERVER=y
BR2_PACKAGE_FFMPEG_FFPROBE=y
BR2_PACKAGE_FFMPEG_AVRESAMPLE=y
BR2_PACKAGE_FFMPEG_POSTPROC=y
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: bug only occurs with a i586 target cpu
package/ffmpeg/ffmpeg.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index 787dbb1..83c3cfb 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -261,6 +261,9 @@ ifeq ($(BR2_X86_CPU_HAS_MMX),y)
FFMPEG_CONF_OPTS += --enable-yasm
FFMPEG_DEPENDENCIES += host-yasm
else
+ifeq ($(BR2_x86_i586),y)
+FFMPEG_CONF_OPTS += --disable-inline-asm
+endif
FFMPEG_CONF_OPTS += --disable-yasm
FFMPEG_CONF_OPTS += --disable-mmx
endif
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] package/ffmpeg: Fix i586 compilation with gcc5
2015-06-20 19:44 [Buildroot] [PATCH v2 1/1] package/ffmpeg: Fix i586 compilation with gcc5 Bernd Kuhls
@ 2015-07-05 12:44 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-07-05 12:44 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sat, 20 Jun 2015 21:44:55 +0200, Bernd Kuhls wrote:
> In file included from libavcodec/cabac_functions.h:46:0,
> from libavcodec/h264_cabac.c:37:
> libavcodec/h264_cabac.c: In function 'ff_h264_decode_mb_cabac':
> libavcodec/x86/cabac.h:192:5: error: 'asm' operand has impossible constraints
> __asm__ volatile(
>
> To reproduce the bug use this defconfig:
>
> BR2_GCC_VERSION_5_1_X=y
> BR2_PACKAGE_FFMPEG=y
> BR2_PACKAGE_FFMPEG_GPL=y
> BR2_PACKAGE_FFMPEG_NONFREE=y
> BR2_PACKAGE_FFMPEG_FFPLAY=y
> BR2_PACKAGE_FFMPEG_FFSERVER=y
> BR2_PACKAGE_FFMPEG_FFPROBE=y
> BR2_PACKAGE_FFMPEG_AVRESAMPLE=y
> BR2_PACKAGE_FFMPEG_POSTPROC=y
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: bug only occurs with a i586 target cpu
Applied, thanks. Did you submit a bug report to ffmpeg upstream?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-07-05 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-20 19:44 [Buildroot] [PATCH v2 1/1] package/ffmpeg: Fix i586 compilation with gcc5 Bernd Kuhls
2015-07-05 12:44 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox