Skip to contentSkip to conversation

trinity: needs __sync_val_compare_and_swap_4

PATCH New Rahul Bedarkar 3 participants 4 messages Apr 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trinity: needs __sync_val_compare_and_swap_4

syscalls/futex.c uses sync_val_compare_and_swap(). So add dependency on BR2_TOOLCHAIN_HAS_SYNC_4.

Fixes:
http://autobuild.buildroot.net/results/17f/17f7fe79242a40ff3e588748230de7bf2a010941

---
 package/trinity/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/trinity/Config.in +1 -0
index 0ce1f9a..0fc737e 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_TRINITY_ARCH_SUPPORTS
 	bool
 	default y
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_val_compare_and_swap_4
 	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
 		BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 || \
 		BR2_powerpc64le || BR2_sparc || BR2_x86_64
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 trinity: needs __sync_val_compare_and_swap_4

Hi Rahul,

Quoted 16 lines · Rahul Bedarkar

syscalls/futex.c uses sync_val_compare_and_swap(). So add dependency on BR2_TOOLCHAIN_HAS_SYNC_4.

Fixes:
http://autobuild.buildroot.net/results/17f/17f7fe79242a40ff3e588748230de7bf2a010941

---
 package/trinity/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/trinity/Config.in +0 -0
index 0ce1f9a..0fc737e 100644

package/trinity/Config.in config BR2_PACKAGE_TRINITY_ARCH_SUPPORTS · line 8

Quoted 7 lines
package/trinity/Config.in +1 -0
@@ -2,6 +2,7 @@ config BR2_PACKAGE_TRINITY_ARCH_SUPPORTS
 	bool
 	default y
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_val_compare_and_swap_4
 	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
 		BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 || \
 		BR2_powerpc64le || BR2_sparc || BR2_x86_64

Please update the comment dependency as well.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 trinity: needs __sync_val_compare_and_swap_4

Hi Baruch,

Quoted 14 lines · Baruch Siach

Hi Rahul,

Quoted 11 lines · Rahul Bedarkar

syscalls/futex.c uses sync_val_compare_and_swap(). So add dependency on BR2_TOOLCHAIN_HAS_SYNC_4.

Fixes:
http://autobuild.buildroot.net/results/17f/17f7fe79242a40ff3e588748230de7bf2a010941

---
 package/trinity/Config.in | 1 +
 1 file changed, 1 insertion(+)
Quoted 14 lines

package/trinity/Config.in config BR2_PACKAGE_TRINITY_ARCH_SUPPORTS · line 8

Quoted 12 lines
package/trinity/Config.in +1 -0
index 0ce1f9a..0fc737e 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_TRINITY_ARCH_SUPPORTS
      bool
      default y
      depends on BR2_USE_MMU # fork()
+     depends on BR2_TOOLCHAIN_HAS_SYNC_4 # __sync_val_compare_and_swap_4
      depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
              BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 || \
              BR2_powerpc64le || BR2_sparc || BR2_x86_64

Please update the comment dependency as well.

SYNC_4 dependency is added in BR2_PACKAGE_TRINITY_ARCH_SUPPORTS which is already a dependency of comment string.

Thanks,
Rahul

#3 lore raw

PATCH 1/1 trinity: needs __sync_val_compare_and_swap_4

In reply to Rahul Bedarkar

Hello,

Quoted 10 lines · Rahul Bedarkar

syscalls/futex.c uses sync_val_compare_and_swap(). So add dependency on BR2_TOOLCHAIN_HAS_SYNC_4.

Fixes:
http://autobuild.buildroot.net/results/17f/17f7fe79242a40ff3e588748230de7bf2a010941

---
 package/trinity/Config.in | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com