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

Andrew Burgess aburgess@redhat.com
Fri Dec 10 14:57:48 GMT 2021


* Luis Machado via Binutils <binutils@sourceware.org> [2021-12-10 09:36:12 -0300]:

> Hi,
> 
> On 12/10/21 7:40 AM, Andrew Burgess via Binutils 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:
> > 
> >    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
> > 
> 
> I suppose the binutils issue still remains in this case? As reported here:
> 
> https://sourceware.org/pipermail/binutils/2021-December/118736.html

I guess so.  I didn't see that in the 32-bit build I was doing, but
I've done nothing that would solve that problem.

Thanks,
Andrew



More information about the Binutils mailing list