package/ltp-testsuite: remove ldd command test with static only build
PATCH v3 1/3 package/ltp-testsuite: remove ldd command 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 v3 2/3 package/ltp-testsuite: introduce BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
ltp-testsuite needs __sync*() built-ins for 4-byte data, except on a few architectures for which a specific implementation is provided in ltp-testsuite source code.
To prepare for the introduction of this dependency, add BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS.
--- package/ltp-testsuite/Config.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
package/ltp-testsuite/Config.in +7 -3
@@ -1,10 +1,14 @@ +config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS + bool + # does not build on nios2, cachectl.h issue + default y if !BR2_nios2 + config BR2_PACKAGE_LTP_TESTSUITE bool "ltp-testsuite" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on !BR2_TOOLCHAIN_USES_MUSL - # does not build, cachectl.h issue - depends on !BR2_nios2 + depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC help The Linux Test Project provides a huge testsuite for Linux.
@@ -12,6 +16,6 @@ config BR2_PACKAGE_LTP_TESTSUITE http://linux-test-project.github.io comment "ltp-testsuite needs a glibc or uClibc toolchain w/ NPTL" - depends on !BR2_nios2 + depends on BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_TOOLCHAIN_USES_MUSL
Signature · 1 line
2.9.3
PATCH v3 3/3 package/ltp-testsuite: add dependency on BR2_TOOLCHAIN_HAS_SYNC_4
In reply to Romain NaourAs 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
---
v3: Fix comment dependency
Rebase after newly introduced BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS (ThomasP)
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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
package/ltp-testsuite/Config.in +6 -1
@@ -1,7 +1,12 @@ config BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS bool # does not build on nios2, cachectl.h issue - default y if !BR2_nios2 + # Needs __sync*() built-ins for 4-byte data, except on a few + # architectures for which a specific implementation is provided + # in ltp-testsuite + default y if !BR2_nios2 || (BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_arc \ + || BR2_i386 || BR2_powerpc || BR2_powerpc64 \ + || BR2_powerpc64le || BR2_x86_64) config BR2_PACKAGE_LTP_TESTSUITE bool "ltp-testsuite"
Signature · 1 line
2.9.3
PATCH v3 3/3 package/ltp-testsuite: add dependency on BR2_TOOLCHAIN_HAS_SYNC_4
Hello,
package/ltp-testsuite/Config.in line 9
Quoted 10 lines · Romain Naour
config
BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTSpackage/ltp-testsuite/Config.in +6
-1bool # does not build on nios2, cachectl.h issue - default y if !BR2_nios2 + # Needs __sync*() built-ins for 4-byte data, except on a few + # architectures for which a specific implementation is provided + # in ltp-testsuite + default y if !BR2_nios2 || (BR2_TOOLCHAIN_HAS_SYNC_4 || BR2_arc \ + || BR2_i386 || BR2_powerpc || BR2_powerpc64 \ + || BR2_powerpc64le || BR2_x86_64)
This is very convoluted. What about:
depends on !BR2_nios2
default y if BR2_TOOLCHAIN_HAS_SYNC_4
default y if BR2_arc
default y if BR2_i386
default y if BR2_powerpc
default y if BR2_powepc64
default y if BR2_powerpc64le
default y if BR2_x86_64
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Thomas Petazzoni
AppliedPATCH v3 1/3 package/ltp-testsuite: remove ldd command test with static only build
In reply to Romain NaourHello,
Quoted 6 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.o
Quoted 8 lines
Fixes:
http://autobuild.buildroot.net/results/2ec/2eccf9f517ab15d8d459b06195423fdfe3fba9faSigned-off-by Romain Naour <[email protected]>Acked-by Thomas Petazzoni <[email protected]>--- package/ltp-testsuite/ltp-testsuite.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 2/3 package/ltp-testsuite: introduce BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
In reply to Romain NaourHello,
Quoted 11 lines · Romain Naour
ltp-testsuite needs __sync*() built-ins for 4-byte data, except on a few architectures for which a specific implementation is provided in ltp-testsuite source code.
To prepare for the introduction of this dependency, add
BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS.Signed-off-by Romain Naour <[email protected]>--- package/ltp-testsuite/Config.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
Thanks, I've applied patches 2 and 3, after changing a bit how the ARCH_SUPPORTS option is defined, as I suggested in my review of patch 3.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 2/3 package/ltp-testsuite: introduce BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
Hi Thomas,
Le 10/05/2017 ? 23:41, Thomas Petazzoni a ?crit :
Quoted 10 lines
Hello,
Quoted 7 lines · Romain Naour
ltp-testsuite needs __sync*() built-ins for 4-byte data, except on a few architectures for which a specific implementation is provided in ltp-testsuite source code.
To prepare for the introduction of this dependency, add
BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Romain Naour <[email protected]>--- package/ltp-testsuite/Config.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)Thanks, I've applied patches 2 and 3, after changing a bit how the
ARCH_SUPPORTSoption is defined, as I suggested in my review of patch 3.
Thanks for the final fixup.
Best regards,
Romain
Quoted 5 lines
Thanks!
Thomas