[Buildroot] [PATCH 1/1] package/ffmpeg: needs sync_4

Romain Naour romain.naour at gmail.com
Mon May 29 21:28:48 UTC 2017


Hi Bernd,

Le 25/05/2017 à 11:31, Bernd Kuhls a écrit :
> Fixes
> http://autobuild.buildroot.net/results/b3e/b3eaaf6d73cd49f5919143aeaa5cbb4d15a7ccc3/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
> ---
>  package/ffmpeg/Config.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/ffmpeg/Config.in b/package/ffmpeg/Config.in
> index 383374ddb..1326c7b8d 100644
> --- a/package/ffmpeg/Config.in
> +++ b/package/ffmpeg/Config.in
> @@ -4,6 +4,7 @@ config BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
>  	# No support for ARMv7-M in the ARM assembly logic
>  	# Microblaze build affected by gcc PR71124 (infinite loop)
>  	default y if !BR2_nios2 && !BR2_ARM_CPU_ARMV7M && !BR2_microblaze
> +	depends on BR2_TOOLCHAIN_HAS_SYNC_4

The code libavutil/buffer.c use atomic_fetch_add_explicit() and ffmpeg should
build correctly if you disable BR2_PACKAGE_FFMPEG_FFMPEG with this defconfig.

But with all option enabled except BR2_PACKAGE_FFMPEG_FFMPEG, it fail elsewhere:
ffmpeg-3.3.1/libavdevice/v4l2.c:515: undefined reference to `__sync_fetch_and_add_4

So,

Acked-by: Romain Naour <romain.naour at gmail.com>

Best regards,
Romain

>  
>  menuconfig BR2_PACKAGE_FFMPEG
>  	bool "ffmpeg"
> 



More information about the buildroot mailing list