https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90419
--- Comment #3 from Andreas K. Huettel <dilfridge at gentoo dot org> --- (In reply to Jim Wilson from comment #2) > I talked to Palmer. Apparently what you want to do is build multilibs for > lp64 and lp64d, to test the linux multilib support. That isn't currently > supported. I would suggest applying a local patch to change the > gcc/config/riscv/t-linux-multilib file with one that just has the lp64 and > lp64d multilibs. If you are trying to do this natively, you are likely to > run into problems along the way, as no one has tried to do this before as > far as I know. Yes, that's what I did, and it works fine. (My gcc-maintaining colleague asked me to file an upstream bug before accepting the patch, since he is of the opinion that gcc should build out of the box.)