redis: needs BR2_TOOLCHAIN_HAS_SYNC_4
PATCH 1/1 redis: needs BR2_TOOLCHAIN_HAS_SYNC_4
Uses 32-bit atomics, fixes:
http://autobuild.buildroot.net/results/dfd/dfdfd77463b0ddd7016202372afcad7fb6fc9ce4/
--- package/redis/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/redis/Config.in +2 -0
@@ -2,6 +2,7 @@ config BR2_PACKAGE_REDIS bool "redis" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_HAS_SYNC_4 help Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can
@@ -11,4 +12,5 @@ config BR2_PACKAGE_REDIS comment "redis needs a toolchain w/ threads" depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_HAS_SYNC_4 depends on !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
2.7.3
PATCH 1/1 redis: needs BR2_TOOLCHAIN_HAS_SYNC_4
Hello,
Quoted 13 lines · Gustavo Zacarias
Uses 32-bit atomics, fixes:
http://autobuild.buildroot.net/results/dfd/dfdfd77463b0ddd7016202372afcad7fb6fc9ce4/Signed-off-by Gustavo Zacarias <[email protected]>--- package/redis/Config.in | 2 ++ 1 file changed, 2 insertions(+)package/redis/Config.in +0
-0
package/redis/Config.in config BR2_PACKAGE_REDIS · line 5
Quoted 4 lines
package/redis/Config.in +1
-0@@ -2,6 +2,7 @@ config BR2_PACKAGE_REDIS bool "redis" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_HAS_SYNC_4
No, that's not good. BR2_TOOLCHAIN_HAS_SYNC_4 is, as its name suggest, for the __sync_*() built-ins, not the __atomic_*() ones. And the autobuild failure you point at indicates:
undefined reference to `__atomic_fetch_add_4'
So what you need instead is:
1/ depends on BR2_TOOLCHAIN_HAS_ATOMIC in Config.in
2/ in the .mk file, pass -latomic if BR2_TOOLCHAIN_HAS_LIBATOMIC
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 redis: needs BR2_TOOLCHAIN_HAS_SYNC_4
Quoted 8 lines · Thomas Petazzoni
No, that's not good.
BR2_TOOLCHAIN_HAS_SYNC_4is, as its name suggest, for the __sync_*() built-ins, not the __atomic_*() ones. And the autobuild failure you point at indicates:undefined reference to `__atomic_fetch_add_4'
So what you need instead is:
Quoted 7 lines
1/ depends on
BR2_TOOLCHAIN_HAS_ATOMICin Config.in2/ in the .mk file, pass -latomic if
BR2_TOOLCHAIN_HAS_LIBATOMICThanks!
Thomas
Hi.
True, i must not send patches made after waking up without having my coffee yet ;)
I'll send an update.
Regards.