From: Peter Korsgaard <peter@korsgaard.com>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/strace: musl on aarch64 needs headers >= 5.0
Date: Sun, 03 Mar 2024 13:06:32 +0100 [thread overview]
Message-ID: <87sf174j07.fsf@48ers.dk> (raw)
In-Reply-To: <20240302125938.790570-1-fontaine.fabrice@gmail.com> (Fabrice Fontaine's message of "Sat, 2 Mar 2024 13:59:38 +0100")
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> strace needs headers >= 5.0 and
> https://github.com/torvalds/linux/commit/9966a05c7b80f075f2bc7e48dbb108d3f2927234
> to avoid the following build failure on musl and aarch64 due to headers
> conflict raised at least since bump to version 6.0 in commit
> 544806bfd8052d05dee671c23c354e5f73f954f9:
> In file included from /home/autobuild/autobuild/instance-7/output-1/host/aarch64_be-buildroot-linux-musl/sysroot/usr/include/signal.h:48,
> from strace.c:17:
> /home/autobuild/autobuild/instance-7/output-1/host/aarch64_be-buildroot-linux-musl/sysroot/usr/include/bits/signal.h:18:16: error: redefinition of 'struct sigcontext'
> 18 | typedef struct sigcontext {
> | ^~~~~~~~~~
> In file included from /home/autobuild/autobuild/instance-7/output-1/host/aarch64_be-buildroot-linux-musl/sysroot/usr/include/asm/ptrace.h:26,
> from /home/autobuild/autobuild/instance-7/output-1/host/aarch64_be-buildroot-linux-musl/sysroot/usr/include/linux/ptrace.h:107,
> from ptrace.h:33,
> from strace.c:16:
> /home/autobuild/autobuild/instance-7/output-1/host/aarch64_be-buildroot-linux-musl/sysroot/usr/include/asm/sigcontext.h:28:8: note: originally defined here
> 28 | struct sigcontext {
> | ^~~~~~~~~~
> Fixes:
> - http://autobuild.buildroot.org/results/74a480aa76970b36dcd890d9bd7a9df1d49e8e16
> - http://autobuild.buildroot.org/results/79ee8ae5fb9712fd874b56e836eca1b997c50cd9
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/strace/Config.in | 9 +++++++++
> 1 file changed, 9 insertions(+)
> diff --git a/package/strace/Config.in b/package/strace/Config.in
> index dc245c7297..cace7e129d 100644
> --- a/package/strace/Config.in
> +++ b/package/strace/Config.in
> @@ -4,6 +4,10 @@ config BR2_PACKAGE_STRACE
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0 || !BR2_nios2
> # needs at least kernel headers 5.0 on xtensa
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 || !BR2_xtensa
> + # needs at least kernel headers 5.0 on musl aarch64
> + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0 || \
> + !BR2_aarch64 || !BR2_aarch64_be || \
This doesn't work as BR2_aarch64 cannot be true at the same time as
BR2_aarch64_be (so with ! at least one of them are true).
I've changed it to !(BR2_aarch64 || BR2_aarch64_be) and committed,
thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-03-03 12:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-02 12:59 [Buildroot] [PATCH 1/1] package/strace: musl on aarch64 needs headers >= 5.0 Fabrice Fontaine
2024-03-03 12:06 ` Peter Korsgaard [this message]
2024-03-19 12:05 ` Peter Korsgaard
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=87sf174j07.fsf@48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
/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