https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90419
--- Comment #9 from Andreas K. Huettel <dilfridge at gentoo dot org> --- (In reply to Jeffrey A. Law from comment #8) > So we discussed this in the RISC-V patchwork call today. Essentially > distros need to provide riscv32 glibc builds if --enable-multilib is going > to work in a native environment. > > I have checked Debian 13 and Ubuntu 24.04, neither of them are currently > providing riscv32 glibc builds that are required to make --enable-multilib > work seamlessly. I don't have a Fedora or gentoo system to check, but I > wouldn't be at all surprised if they're in the same boat. Gentoo ships rv32 installation stages (for ilp32 and for ilp32d) and also a full multilib one (rv64 lp64d system with 4 abi in the toolchain). https://www.gentoo.org/downloads/#riscv I'm not 100% sure what changed, but at some point it just started working. This bug may be obsolete (I'll have to research our build system / patches, it's been some time). > > So at this point I really don't see anything for the GCC project to do > unless the distros simply aren't going to provide those libraries (in which > case we should turn off multilibs for the native builds so they work > seamlessly out of the box). I'm suspending for now pending further > information on whether or not the distros are going to provide glibc rv32 > builds or not.
