package/mplayer: disable inline asm on i386
PATCH 1/1 package/mplayer: disable inline asm on i386
A similar fix was committed to ffmpeg:
https://git.buildroot.net/buildroot/commit/package/ffmpeg?id=bfb8df2ad9b164b421d25294c6882c8b61dc59a5
Special cflags, added by
https://git.buildroot.net/buildroot/commit/package/multimedia/mplayer?id=fd38100e1189d19cad87a64c52df2c773eb47e40
are no longer needed now so remove them as well.
Fixes
http://autobuild.buildroot.net/results/030/03066dd8937ef4c75d62f237fd195df92b247ee2//
and many others.
--- package/mplayer/mplayer.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
package/mplayer/mplayer.mk +6 -3
@@ -285,10 +285,13 @@ MPLAYER_CFLAGS += -mfpu=neon endif endif +define MPLAYER_DISABLE_INLINE_ASM + $(SED) 's,#define HAVE_INLINE_ASM 1,#define HAVE_INLINE_ASM 0,g' \ + $(@D)/config.h +endef + ifeq ($(BR2_i386),y) -# inline asm breaks with "can't find a register in class 'GENERAL_REGS'" -# inless we free up ebp -MPLAYER_CFLAGS += -fomit-frame-pointer +MPLAYER_POST_CONFIGURE_HOOKS += MPLAYER_DISABLE_INLINE_ASM endif ifeq ($(BR2_X86_CPU_HAS_MMX),y)
Signature · 1 line
2.11.0
PATCH 1/1 package/mplayer: disable inline asm on i386
Hello,
Quoted 2 lines · Bernd Kuhls
A similar fix was committed to ffmpeg:
https://git.buildroot.net/buildroot/commit/package/ffmpeg?id=bfb8df2ad9b164b421d25294c6882c8b61dc59a5
It is not similar: ffmpeg only disables it for i586, while for mplayer you disable it for the x86 architecture completely.
Quoted 2 lines
Fixes
http://autobuild.buildroot.net/results/030/03066dd8937ef4c75d62f237fd195df92b247ee2//
And this configuration is i686, so if the ffmpeg fix of disabling inline ASM is used, it will not solve this build failure.
package/mplayer/mplayer.mk MPLAYER_CFLAGS += -mfpu=neon · line 295
Quoted 6 lines
ifeq ($(BR2_i386),y)
package/mplayer/mplayer.mk +1
-3-# inline asm breaks with "can't find a register in class 'GENERAL_REGS'" -# inless we free up ebp -MPLAYER_CFLAGS += -fomit-frame-pointer +MPLAYER_POST_CONFIGURE_HOOKS += MPLAYER_DISABLE_INLINE_ASM endif
Do we really want to disable this for all x86 platforms?
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com