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

Andrew Burgess aburgess@redhat.com
Fri Dec 10 10:40:32 GMT 2021


* 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:

  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.

Thanks,
Andrew



More information about the Binutils mailing list