mpv: bump to version 0.21.0
PATCH 1/1 mpv: bump to version 0.21.0
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/
--- package/mpv/Config.in | 11 ++++++++--- package/mpv/mpv.hash | 2 +- package/mpv/mpv.mk | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-)
package/mpv/Config.in +8 -3
@@ -2,7 +2,10 @@ config BR2_PACKAGE_MPV bool "mpv" depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 + # It needs basic atomics support + # Uses stdatomic.h (gcc 4.9+) or emulation via sync_add_and_fetch_1 + depends on BR2_TOOLCHAIN_HAS_ATOMIC + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || BR2_TOOLCHAIN_HAS_SYNC_1 select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_FFMPEG select BR2_PACKAGE_FFMPEG_SWSCALE
@@ -15,7 +18,9 @@ config BR2_PACKAGE_MPV https://mpv.io/ -comment "mpv needs a toolchain w/ threads, gcc >= 4.5" +comment "mpv needs a toolchain w/ threads, gcc >= 4.9" depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS + depends on BR2_TOOLCHAIN_HAS_ATOMIC + depends on !BR2_TOOLCHAIN_HAS_SYNC_1 depends on !BR2_TOOLCHAIN_HAS_THREADS || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
package/mpv/mpv.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 fe6ec9d2ded5ce84b963f54b812d579d04f944f4a737f3ae639c4d5d9e842b56 v0.20.0.tar.gz +sha256 d05f8ece859c500ef1649cdfea911ec1529df1898b8fda3e217766dc28dc9bd3 v0.21.0.tar.gz sha256 01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b waf-1.8.12
package/mpv/mpv.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -MPV_VERSION = 0.20.0 +MPV_VERSION = 0.21.0 MPV_WAF_VERSION = 1.8.12 MPV_SITE = https://github.com/mpv-player/mpv/archive MPV_SOURCE = v$(MPV_VERSION).tar.gz
Signature · 1 line
2.7.3
PATCH 1/1 mpv: bump to version 0.21.0
Hello,
Quoted 8 lines · Gustavo Zacarias
It now requires gcc 4.9+ with arch atomics for stdatomic support
(https://gcc.gnu.org/wiki/C11Status) or alternativelyBR2_TOOLCHAIN_HAS_SYNC_1for emulation fallback.Fixes:
http://autobuild.buildroot.net/results/0b7/0b7b42a72ac2bef2dd476e23a71f87adad6690f6/Signed-off-by Gustavo Zacarias <[email protected]>
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 mpv: bump to version 0.21.0
Quoted 10 lines · Thomas Petazzoni
Hello,
Quoted 7 lines · Gustavo Zacarias
It now requires gcc 4.9+ with arch atomics for stdatomic support
(https://gcc.gnu.org/wiki/C11Status) or alternativelyBR2_TOOLCHAIN_HAS_SYNC_1for emulation fallback.Fixes:
http://autobuild.buildroot.net/results/0b7/0b7b42a72ac2bef2dd476e23a71f87adad6690f6/
Quoted 7 lines
Quoted 1 line
Signed-off-by Gustavo Zacarias <[email protected]>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.
Hi. Exactly.
Quoted 6 lines
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.
I've tested with several combinations, mostly "retro" m68k with/without atomics (real m68k vs coldfire) and ARM of course with default versions.
Quoted 7 lines
We already handle this situation for the 8 bytes sync atomic operation using the
BR2_TOOLCHAIN_ARM_HAS_SYNC_8option. 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.
The situation changed with 0.21, that's the reason it's all in a single patch.
0.20 couldn't deal with the fallback 8-bit atomics and failed as you said with 64-bit, but 0.21 does deal with it.
I've not expressed the 64-bit requirement/possibility since 8-bit will general be present for 64-bit as well, hence i don't have a way to test it. I've started the condition tests separately from the bump when i hit the same issue you mention, but bumping it made the fallback implementation without stdatomic buildable.
Regards.