From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Simon Dawson <spdawson@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/libsigsegv: fix musl build with powerpc
Date: Tue, 2 Jan 2024 23:20:06 +0100 [thread overview]
Message-ID: <20240102232006.2a66c6c5@windsurf> (raw)
In-Reply-To: <20240102204208.1662781-1-fontaine.fabrice@gmail.com>
On Tue, 2 Jan 2024 21:42:08 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following musl build failure with powerpc raised since bump to
> version 2.14 in commit c6addf4606c3a41cdad5c6ac4c6508b298b6e92a:
>
> In file included from fault.h:36,
> from handler-unix.c:77,
> from handler.c:19:
> handler-unix.c: In function 'sigsegv_handler':
> fault-linux-powerpc.h:35:73: error: 'mcontext_t' has no member named 'uc_regs'; did you mean 'gregs'?
> 35 | # define SIGSEGV_FAULT_STACKPOINTER ((ucontext_t *) ucp)->uc_mcontext.uc_regs->gregs[1]
> | ^~~~~~~
> handler-unix.c:157:43: note: in expansion of macro 'SIGSEGV_FAULT_STACKPOINTER'
> 157 | uintptr_t old_sp = (uintptr_t) (SIGSEGV_FAULT_STACKPOINTER);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/77b600071f07605be3ec28e2da46d6938e240087
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...-Linux-PowerPC-32-bit-with-musl-libc.patch | 114 ++++++++++++++++++
> package/libsigsegv/0002-add-musl.m4.patch | 47 ++++++++
> package/libsigsegv/libsigsegv.mk | 2 +
> 3 files changed, 163 insertions(+)
> create mode 100644 package/libsigsegv/0001-Add-support-for-Linux-PowerPC-32-bit-with-musl-libc.patch
> create mode 100644 package/libsigsegv/0002-add-musl.m4.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-01-02 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-02 20:42 [Buildroot] [PATCH 1/1] package/libsigsegv: fix musl build with powerpc Fabrice Fontaine
2024-01-02 22:20 ` Thomas Petazzoni via buildroot [this message]
2024-01-12 17:16 ` 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=20240102232006.2a66c6c5@windsurf \
--to=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=spdawson@gmail.com \
--cc=thomas.petazzoni@bootlin.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.