[RFC] RISC-V: Fix the 32-bit --enable-targets=all build breakage.

Nelson Chu nelson.chu@sifive.com
Sat Dec 11 03:01:59 GMT 2021


On Fri, Dec 10, 2021 at 6:40 PM Andrew Burgess <aburgess@redhat.com> wrote:
>
> * Nelson Chu <nelson.chu@sifive.com> [2021-11-12 17:42:42 +0800]:
>
> > On Fri, Nov 12, 2021 at 5:35 PM Alan Modra <amodra@gmail.com> wrote:
> > >
> > > On Fri, Nov 12, 2021 at 04:38:08PM +0800, Nelson Chu wrote:
> > > > Hi Alan,
> > > >
> > > > I see you have a gcc patch to fix the problem of libopcodes, so should
> > > > we still need this patch to fix the --target-all on the 32-bit host
> > > > machine?
> > >
> > > No, the patch I just committed now fixed the build problem.
> >
> > Thanks for helping to fix this :)
> >
> > > Whether you want to enable riscv32 support with a 32-bit bfd is really
> > > a separate issue.
> >
> > OK, I will figure this out, thanks.
>
> Just to keep you in the loop, I ran into GDB build problems caused by
> the riscv (and mips) libopcodes and bfd libraries not being built,
> when building bfd in 32-bit mode.  There's a dependency between GDB
> and libopcodes.  I posted this patch:

Yeah, thanks.  I have been paying attention to this problem, but I
don’t have good solutions and ideas like you, Alan, Jim, Mike and
Luis, so I can’t give some comments that I think are helpful...

>   https://sourceware.org/pipermail/gdb-patches/2021-December/184365.html
>
> I'll probably push the patch next week unless someone gives a
> compelling reason not too, but I'm more than happy to revert the riscv
> parts if/when the riscv libopcodes is built in 32-bit mode.

I'm OK with this, we could probably revert it when my previous patch
does work.  Thanks for all your work and Jim's suggestion.  Thanks for
Alan's help, I think his idea is really great, but as I said, I can’t
give some comments that I think are helpful for now...  So I create a
bugzilla as follows, in case I forgot the details in the future, or
someone is interested to fix the problem,
https://sourceware.org/bugzilla/show_bug.cgi?id=28684

Thanks for all
Nelson

> Thanks,
> Andrew
>


More information about the Binutils mailing list