[Buildroot] [PATCH] mpv: bump to version 0.21.0

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Oct 29 13:49:07 UTC 2016


Hello,

On Fri, 28 Oct 2016 12:04:02 -0300, Gustavo Zacarias wrote:
> It now requires gcc 4.9+ with arch atomics for stdatomic support
> (https://gcc.gnu.org/wiki/C11Status) or alternatively
> BR2_TOOLCHAIN_HAS_SYNC_1 for emulation fallback.
> 
> Fixes:
> http://autobuild.buildroot.net/results/0b7/0b7b42a72ac2bef2dd476e23a71f87adad6690f6/
> 
> Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>

This one I'd like to have a closer look. Indeed, I started
investigating the build issue at
http://autobuild.buildroot.net/results/0b7/0b7b42a72ac2bef2dd476e23a71f87adad6690f6/,
and the problem was that we couldn't express the atomic dependency
properly with our current Config.in options.

Indeed, the problem of
http://autobuild.buildroot.net/results/0b7/0b7b42a72ac2bef2dd476e23a71f87adad6690f6/
is that it is using 8 bytes atomic operations. On ARM < v7, such atomic
operations require help from the kernel. Unfortunately, the gcc code in
gcc < 6 is bogus and uses the internal _write() glibc symbol, which
fails with uclibc or musl.

We already handle this situation for the 8 bytes sync atomic operation
using the BR2_TOOLCHAIN_ARM_HAS_SYNC_8 option. But we don't handle it
for the 8 bytes atomic operation.

So, maybe things have changed between mpv 0.20 and 0.21 in terms of
atomic handling. But if it hasn't changed, then I'm not sure your patch
is correct.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the buildroot mailing list