Skip to contentSkip to conversation

package/alljoyn: needs BR2_TOOLCHAIN_HAS_SYNC_4

PATCH New Romain Naour 2 participants 2 messages Jul 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/alljoyn: needs BR2_TOOLCHAIN_HAS_SYNC_4

After applying a patch like [1], the build failed with the following error:
liballjoyn_c.a(Message.o): In function `alljoyn_message_destroy':
Message.cc:(.text+0x74): undefined reference to __sync_sub_and_fetch_4' liballjoyn.so: undefined reference to __sync_bool_compare_and_swap_4' liballjoyn.so: undefined reference to `__sync_add_and_fetch_4'

So, add dependency on BR2_TOOLCHAIN_HAS_SYNC_4 which also disable the alljoyn build on sparc.

[1] https://git.buildroot.org/buildroot/commit/?id=c5e96d8935016456bea342db170ae6a139a8470f

Fixes:
http://autobuild.buildroot.net/results/cea/cea62a7ed7f1eda6f817d8e27fd645942def25ec

---
 package/alljoyn/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/alljoyn/Config.in +2 -0
index 021a07b..6eb417d 100644
@@ -3,6 +3,7 @@ config BR2_PACKAGE_ALLJOYN
 	depends on BR2_USE_MMU # fork()
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_USE_WCHAR
 	select BR2_PACKAGE_LIBCAP
@@ -19,5 +20,6 @@ config BR2_PACKAGE_ALLJOYN
 
 comment "alljoyn needs a toolchain w/ C++, threads, wchar and dynamic library"
 	depends on BR2_USE_MMU
+	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
 		!BR2_USE_WCHAR || BR2_STATIC_LIBS
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 package/alljoyn: needs BR2_TOOLCHAIN_HAS_SYNC_4

Hello,

Quoted 12 lines · Romain Naour

After applying a patch like [1], the build failed with the following error:
liballjoyn_c.a(Message.o): In function `alljoyn_message_destroy':
Message.cc:(.text+0x74): undefined reference to __sync_sub_and_fetch_4' liballjoyn.so: undefined reference to __sync_bool_compare_and_swap_4' liballjoyn.so: undefined reference to `__sync_add_and_fetch_4'

So, add dependency on BR2_TOOLCHAIN_HAS_SYNC_4 which also disable the alljoyn build on sparc.

[1] https://git.buildroot.org/buildroot/commit/?id=c5e96d8935016456bea342db170ae6a139a8470f

Quoted 7 lines

Fixes:
http://autobuild.buildroot.net/results/cea/cea62a7ed7f1eda6f817d8e27fd645942def25ec

---
 package/alljoyn/Config.in | 2 ++
 1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas

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