On Thu, Jan 27, 2022 at 2:03 AM Richard Purdie
<richard.pur...@linuxfoundation.org> wrote:
>
> On Tue, 2022-01-25 at 20:41 -0800, Khem Raj wrote:
> > This fixes a build issue that started with 3.1 upgrade
> > Fixes
> > > ../ruby-3.1.0/vm_dump.c:916:38: error: use of undeclared identifier 
> > > 'REG_S1'
> > >         dump_machine_register(mctx->__gregs[REG_S1], "s1");
> >
> > Signed-off-by: Khem Raj <raj.k...@gmail.com>
> > ---
> >  ...ine-REG_S1-and-REG_S2-for-musl-riscv.patch | 30 +++++++++++++++++++
> >  meta/recipes-devtools/ruby/ruby_3.1.0.bb      |  9 +-----
> >  2 files changed, 31 insertions(+), 8 deletions(-)
> >  create mode 100644 
> > meta/recipes-devtools/ruby/ruby/0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch
> >
> > diff --git 
> > a/meta/recipes-devtools/ruby/ruby/0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch
> >  
> > b/meta/recipes-devtools/ruby/ruby/0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch
> > new file mode 100644
> > index 00000000000..8821325c0fe
> > --- /dev/null
> > +++ 
> > b/meta/recipes-devtools/ruby/ruby/0001-vm_dump.c-Define-REG_S1-and-REG_S2-for-musl-riscv.patch
> > @@ -0,0 +1,30 @@
> > +From dfb22e4d6662bf72879eda806eaa78c7b52b519e Mon Sep 17 00:00:00 2001
> > +From: Khem Raj <raj.k...@gmail.com>
> > +Date: Tue, 25 Jan 2022 20:29:14 -0800
> > +Subject: [PATCH] vm_dump.c: Define REG_S1 and REG_S2 for musl/riscv
> > +
> > +Upstream-Status: Inappropriate [musl bug]
> > +Signed-off-by: Khem Raj <raj.k...@gmail.com>
>
> Is there something open on the musl side to resolve this?

I have discussed a potential patch on musl IRC
https://github.com/kraj/musl/commit/383656460aa3f2ad1e7b66762f5a7d1949d419b7

the feedback is to include complete set. I dont want to apply half
cooked patch to musl in OE
since it then becomes sort of API for OE, so until this gets fixed in
musl in whatever form, its better to carry the ruby patch.

>
> Cheers,
>
> Richard
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#161043): 
https://lists.openembedded.org/g/openembedded-core/message/161043
Mute This Topic: https://lists.openembedded.org/mt/88690372/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to