From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] package/rt-tests: disable for musl toolchains
Date: Thu, 14 Jul 2016 21:01:09 +0200 [thread overview]
Message-ID: <1468522869-3887-3-git-send-email-romain.naour@gmail.com> (raw)
In-Reply-To: <1468522869-3887-1-git-send-email-romain.naour@gmail.com>
The cyclictest program doesn't build with musl toolchains due to
several issues with a different implementation of the "struct sigevent"
from Glibc/uClibc and musl (similar to [1]).
The pi_stress program doesn't build with musl toolchains with the
following error since musl doesn't provide _POSIX_THREAD_PRIO_INHERIT
define even if musl have Priority Inheritance mutexes [2]:
src/pi_tests/pi_stress.c:78:2: error: #error "Can't run this test without PI Mutex support"
#error "Can't run this test without PI Mutex support"
Since the fix for cyclictest is not trivial, disable rt-tests for musl
toolchains.
Fixes:
http://autobuild.buildroot.net/results/c27/c272ef7df6190cbb688e6db0b1ee210e6fbb472c
[1] https://bugs.mysql.com/bug.php?id=80322
[2] http://www.openwall.com/lists/musl/2016/03/18/6
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/rt-tests/Config.in | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/package/rt-tests/Config.in b/package/rt-tests/Config.in
index 12e084e..08967ce 100644
--- a/package/rt-tests/Config.in
+++ b/package/rt-tests/Config.in
@@ -3,6 +3,7 @@ config BR2_PACKAGE_RT_TESTS
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on BR2_USE_MMU # fork()
depends on !BR2_STATIC_LIBS # dlopen
+ depends on !BR2_TOOLCHAIN_USES_MUSL # cyclictest
help
Set of utilities for testing the real-time behaviour of a
Linux system.
@@ -27,6 +28,7 @@ comment "rt-tests may not work on MIPS with an external uClibc toolchain"
depends on BR2_TOOLCHAIN_EXTERNAL_UCLIBC
depends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
-comment "rt-tests needs a toolchain w/ NPTL, dynamic library"
- depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
+comment "rt-tests needs a uClibc or glibc toolchain w/ NPTL, dynamic library"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
+ || BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_MMU
--
2.5.5
next prev parent reply other threads:[~2016-07-14 19:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-14 19:01 [Buildroot] [PATCH 1/3] package/rt-tests: switch to the upstream repository Romain Naour
2016-07-14 19:01 ` [Buildroot] [PATCH 2/3] package/rt-tests: bump to 1.0 Romain Naour
2016-07-15 13:04 ` Thomas Petazzoni
2016-07-16 11:58 ` Romain Naour
2016-07-16 12:16 ` Thomas Petazzoni
2016-07-14 19:01 ` Romain Naour [this message]
2016-07-15 13:03 ` [Buildroot] [PATCH 1/3] package/rt-tests: switch to the upstream repository Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1468522869-3887-3-git-send-email-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox