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

Mike Frysinger vapier@gentoo.org
Thu Nov 18 01:29:32 GMT 2021


On 18 Nov 2021 11:32, Alan Modra via Binutils wrote:
> On Wed, Nov 17, 2021 at 10:52:26AM -0300, Luis Machado wrote:
> > On 11/12/21 6:34 AM, Alan Modra via Binutils 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.
> > > 
> > 
> > Unfortunately it seems to have side effects. The bpf sim still gets built
> > for a 32-bit host, but its opcodes dependencies are no longer there,
> > resulting in undefined references:
> 
> Did such a sim configuration actually work prior to my patch?  If it
> did, I'm willing to move the bpf files from TARGET64_LIBOPCODES_CFILES
> to TARGET32_LIBOPCODES_CFILES.

`--host=i686-linux-gnu --enable-targets=all --enable-sim` was working
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20211117/d6f35be5/attachment.sig>


More information about the Binutils mailing list