https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98878
--- Comment #1 from Sebastian Huber <sebastian.hu...@embedded-brains.de> --- It may have something to do with TARGET_RISCV_DEFAULT_ABI == ilp32d. The gcc/tm.h in the build tree contains this: gcc/tm.h:#ifndef TARGET_RISCV_DEFAULT_ARCH gcc/tm.h:# define TARGET_RISCV_DEFAULT_ARCH rv32gc gcc/tm.h:#ifndef TARGET_RISCV_DEFAULT_ABI gcc/tm.h:# define TARGET_RISCV_DEFAULT_ABI ilp32d The rv32imafd/ilp32d multilib is the only multilib (except ".") which has also this ABI. This could be checked by adding a rv32imfd/ilp32d multilib for example.