https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103889
--- Comment #6 from John Doe <bau2wux4sh at pkv73 dot anonbox.net> --- (In reply to Andreas Schwab from comment #4) > LIBRARY_PATH=/usr/lib64/gcc/riscv64-suse-linux/11/:/usr/lib64/gcc/riscv64- > suse-linux/11/../../../../riscv64-suse-linux/lib/:/lib64/lp64d/:/usr/lib64/ > lp64d/:/lib/:/usr/lib/ Hm, Alpine doesn't have /usr/lib64 and /lib64. Alpine only uses /lib and /usr/lib. However, it seems that gcc/config/riscv/t-linux assumes that the lib64/lib32 directory is present: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/riscv/t-linux;h=216d2776a183d13ade76642b73b9bf04b0c4694e;hb=HEAD this is contrary to configuration files for other architectures which explicitly check if the system has lib32/lib64, for example, compare this to the configuration file for x86_64: https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/i386/t-linux64;h=d288b0935220cc44998da1994a13aa2902db9509;hb=HEAD#l19 Might this be the root cause of this issue?