package/ltp-testsuite: remove ldd commande test with static only build
PATCH v2 1/2 package/ltp-testsuite: remove ldd commande test with static only build
ldd command build system try to build a shared library unconditionally:
arc-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -matomic -Os -static \ -I[...]/sysroot/usr/include/tirpc -g -O2 -fno-strict-aliasing -pipe \ -Wall -W -Wold-style-definition -shared -o lddfile1.obj.so lddfile1.o
Fixes:
http://autobuild.buildroot.net/results/2ec/2eccf9f517ab15d8d459b06195423fdfe3fba9fa
--- package/ltp-testsuite/ltp-testsuite.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
package/ltp-testsuite/ltp-testsuite.mk +8 -0
@@ -68,4 +68,12 @@ endef LTP_TESTSUITE_POST_PATCH_HOOKS += LTP_TESTSUITE_REMOVE_UNSUPPORTED endif +# ldd command build system try to build a shared library unconditionally. +ifeq ($(BR2_STATIC_LIBS),y) +define LTP_TESTSUITE_REMOVE_LDD + rm -rf $(@D)/testcases/commands/ldd +endef +LTP_TESTSUITE_POST_PATCH_HOOKS += LTP_TESTSUITE_REMOVE_LDD +endif + $(eval $(autotools-package))
Signature · 1 line
2.9.3
PATCH v2 2/2 package/ltp-testsuite: add dependency on BR2_TOOLCHAIN_HAS_SYNC_4
As stated in commit [1], sparc toolchains doesn't have any of __sync_*() family of functions implementation.
When __sync_add_and_fetch() is missing, ltp fallback to a local implementation of tst_atomic_add_return() specific for each supported architecture.
But there is none for sparc.
So add a dependency on BR2_TOOLCHAIN_HAS_SYNC_4 except for architectures where a specific implementation is provided in ltp-testsuite.
Fixes:
http://autobuild.buildroot.net/results/d7c/d7c3b145a64ed3916b89ddb4090050f3b9205e37
[1] 6856e417da4f3aa77e2a814db2a89429af072f7d
---
v2: add a dependency on BR2_TOOLCHAIN_HAS_SYNC_4 except for arc, i386,
powerpc, powerpc64, powerpc64le and x86_64 --- package/ltp-testsuite/Config.in | 9 +++++++++ 1 file changed, 9 insertions(+)
package/ltp-testsuite/Config.in +9 -0
@@ -3,6 +3,12 @@ config BR2_PACKAGE_LTP_TESTSUITE depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on !BR2_TOOLCHAIN_USES_MUSL + # Needs __sync*() built-ins for 4-byte data, except on a few + # architectures for which a specific implementation is provided + # in ltp-testsuite + depends on BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_arc || BR2_i386 \ + || BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le \ + || BR2_x86_64 # does not build, cachectl.h issue depends on !BR2_nios2 select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
@@ -13,5 +19,8 @@ config BR2_PACKAGE_LTP_TESTSUITE comment "ltp-testsuite needs a glibc or uClibc toolchain w/ NPTL" depends on !BR2_nios2 + depends on !BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_arc && !BR2_i386 \ + && !BR2_powerpc && !BR2_powerpc64 && !BR2_powerpc64le \ + && !BR2_x86_64 depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_TOOLCHAIN_USES_MUSL
Signature · 1 line
2.9.3
PATCH v2 2/2 package/ltp-testsuite: add dependency on BR2_TOOLCHAIN_HAS_SYNC_4
Hello,
package/ltp-testsuite/Config.in config BR2_PACKAGE_LTP_TESTSUITE · line 24
Quoted 5 lines · Romain Naour
comment "ltp-testsuite needs a glibc or uClibc toolchain w/ NPTL"
package/ltp-testsuite/Config.in +3
-0depends on !BR2_nios2 + depends on !BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_arc && !BR2_i386 \ + && !BR2_powerpc && !BR2_powerpc64 && !BR2_powerpc64le \ + && !BR2_x86_64
Wrong. You want the dependencies on the Config.in comment in the same direction as for the main symbol. Or better: introduce a BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v2 1/2 package/ltp-testsuite: remove ldd commande test with static only build
In reply to Romain NaourHello,
Quoted 10 lines · Romain Naour
ldd command build system try to build a shared library unconditionally:
arc-linux-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -matomic -Os -static \ -I[...]/sysroot/usr/include/tirpc -g -O2 -fno-strict-aliasing -pipe \ -Wall -W -Wold-style-definition -shared -o lddfile1.obj.so lddfile1.oFixes:
http://autobuild.buildroot.net/results/2ec/2eccf9f517ab15d8d459b06195423fdfe3fba9faSigned-off-by Romain Naour <[email protected]>
Typo in commit title: s/commande/command. No need to respin for this.
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com