rt-tests: disable for architectures not supporting NPTL
PATCH 1/1 rt-tests: disable for architectures not supporting NPTL
Fixes
http://autobuild.buildroot.net/results/8aa/8aaa4b56a53241b7342fede568fbc72a7656cc38/.
--- package/rt-tests/Config.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
package/rt-tests/Config.in +3 -4
@@ -1,9 +1,8 @@ config BR2_PACKAGE_RT_TESTS bool "rt-tests" depends on BR2_TOOLCHAIN_HAS_THREADS - # Too old uClibc, does not provide priority-inheritance - # mutexes - depends on !BR2_avr32 + # uClibc does not provide priority-inheritance mutex (NPTL) + depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc help Set of utilities for testing the real-time behaviour of a Linux system.
@@ -23,5 +22,5 @@ config BR2_PACKAGE_RT_TESTS http://rt.wiki.kernel.org comment "rt-tests needs a toolchain w/ threads" - depends on !BR2_avr32 + depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc depends on !BR2_TOOLCHAIN_HAS_THREADS
Signature · 1 line
1.8.5.2
PATCH 1/1 rt-tests: disable for architectures not supporting NPTL
Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Fixes
http://autobuild.buildroot.net/results/8aa/8aaa4b56a53241b7342fede568fbc72a7656cc38/.Signed-off-by Baruch Siach <[email protected]>--- package/rt-tests/Config.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)package/rt-tests/Config.in +0
-0
package/rt-tests/Config.in line 5
Quoted 8 lines
package/rt-tests/Config.in +2
-3@@ -1,9 +1,8 @@ config BR2_PACKAGE_RT_TESTS bool "rt-tests" depends on BR2_TOOLCHAIN_HAS_THREADS - # Too old uClibc, does not provide priority-inheritance - # mutexes - depends on !BR2_avr32 + # uClibc does not provide priority-inheritance mutex (NPTL) + depends on !BR2_avr32 && !BR2_xtensa && !BR2_arc
So shouldn't we depend on !BR2_PTHREADS && !BR2_PTHREADS_OLD instead? What happens if you configure uClibc on E.G. ARM to use pthreads-old?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 rt-tests: disable for architectures not supporting NPTL
Hi Peter,
Quoted 10 lines · Peter Korsgaard
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Fixes
http://autobuild.buildroot.net/results/8aa/8aaa4b56a53241b7342fede568fbc72a7656cc38/.Signed-off-by Baruch Siach <[email protected]>--- package/rt-tests/Config.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
Quoted 16 lines
package/rt-tests/Config.in line 5
Quoted 13 lines
package/rt-tests/Config.in +2
-3@@ -1,9 +1,8 @@ config BR2_PACKAGE_RT_TESTS bool "rt-tests" depends on BR2_TOOLCHAIN_HAS_THREADS - # Too old uClibc, does not provide priority-inheritance - # mutexes - depends on !BR2_avr32 + # uClibc does not provide priority-inheritance mutex (NPTL) + depends on !BR2_avr32 && !BR2_xtensa && !BR2_arcSo shouldn't we depend on !BR2_PTHREADS && !BR2_PTHREADS_OLD instead? What happens if you configure uClibc on E.G. ARM to use pthreads-old?
We could, but this doesn't solve the problem for external toolchains. This issue of packages that require NPTL keeps coming up, but no solution has been implemented yet.
This patch takes the minimal approach of disabling rt-tests for arches that are known not to have NPTL support at all.
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 -PATCH 1/1 rt-tests: disable for architectures not supporting NPTL
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
Hi,
Quoted 9 lines
Quoted 2 lines
So shouldn't we depend on !BR2_PTHREADS && !BR2_PTHREADS_OLD instead? What happens if you configure uClibc on E.G. ARM to use pthreads-old?
We could, but this doesn't solve the problem for external toolchains. This issue of packages that require NPTL keeps coming up, but no solution has been implemented yet.
This patch takes the minimal approach of disabling rt-tests for arches that are known not to have NPTL support at all.
Ok, then I think the nicest approach would be to depend on !linuxthreads/old (for internal toolchains) and the explicit list of archs where we know glibc/nptl aren't available (for external toolchains).
If any of the archs we have blacklisted for nptl (arc/avr32/bfin/extensa/x86_i386) support glibc (with the needed functionality), then we could combine the arch list with BR2_TOOLCHAIN_EXTERNAL_UCLIBC.
Signature · 1 line
Bye, Peter Korsgaard