Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] ffmpeg: disable for mips64r2 and mips64r6
@ 2016-05-25 16:14 Vicente Olivert Riera
  2016-05-26  5:26 ` Bernd Kuhls
  0 siblings, 1 reply; 5+ messages in thread
From: Vicente Olivert Riera @ 2016-05-25 16:14 UTC (permalink / raw)
  To: buildroot

MIPS architecture detection is not accurate and is always detected as
mips64 even if we are using mips64r2 or mips64r6. Due to that, ffmpeg's
build system will pass the -mips64 flag which will conflict with the
-march option that our toolchain wrapper uses, and it will fail to build
showing errors like this one:

error: '-mips64' conflicts with the other architecture options, which
specify a mips64r2 processor

This problem has been already fixed upstream, but we would need to
backport 17 patches plus some changes in the ffmpeg.mk file. This is too
much, so better to just disable ffmpeg for mips64r2 and mips64r6 for the
upcoming Buildroot release.

This commit can be reverted in the next ffmpeg's version bump.

Fixes:

  http://autobuild.buildroot.net/results/7fd/7fd8187c0110cdcac622e667f4a81d2db84f11ef/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/ffmpeg/Config.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/ffmpeg/Config.in b/package/ffmpeg/Config.in
index a273aea..debef0a 100644
--- a/package/ffmpeg/Config.in
+++ b/package/ffmpeg/Config.in
@@ -2,6 +2,10 @@ menuconfig BR2_PACKAGE_FFMPEG
 	bool "ffmpeg"
 	# fenv.h lacks FE_INVALID, FE_OVERFLOW & FE_UNDERFLOW on nios2
 	depends on !BR2_nios2
+	# MIPS architecture detection is not accurate for 64-bit
+	# variants. This has been already fixed upstream, so please
+	# remove it in the next version bump.
+	depends on !BR2_mips_64r2 && !BR2_mips_64r6
 	help
 	  FFmpeg is a complete, cross-platform solution to record, convert
 	  and stream audio and video.
-- 
2.7.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-26 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-25 16:14 [Buildroot] [PATCH] ffmpeg: disable for mips64r2 and mips64r6 Vicente Olivert Riera
2016-05-26  5:26 ` Bernd Kuhls
2016-05-26  9:36   ` Vicente Olivert Riera
2016-05-26 14:48   ` Thomas Petazzoni
2016-05-26 15:55     ` Vicente Olivert Riera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox