https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106271
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |doko at gcc dot gnu.org --- Comment #4 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- ..., and then I wondered: but how, then, are Debian/Ubuntu building GCC? Per <https://packages.debian.org/experimental/gcc-13>, <http://deb.debian.org/debian/pool/main/g/gcc-13/gcc-13_13.1.0-3.debian.tar.xz>, there is a 'debian/patches/gcc-multiarch.diff' file, which contains "Remaining multiarch patches, not yet submitted upstream", which (amongst others) includes: --- a/src/gcc/config/riscv/t-linux +++ b/src/gcc/config/riscv/t-linux @@ -1,3 +1,5 @@ # Only XLEN and ABI affect Linux multilib dir names, e.g. /lib32/ilp32d/ MULTILIB_DIRNAMES := $(patsubst rv32%,lib32,$(patsubst rv64%,lib64,$(MULTILIB_DIRNAMES))) MULTILIB_OSDIRNAMES := $(patsubst lib%,../lib%,$(MULTILIB_DIRNAMES)) + +MULTIARCH_DIRNAME := $(call if_multiarch,$(firstword $(subst -, ,$(target)))-linux-gnu)