On Fri, 13 Jan 2023, Xianmiao Qu via Gcc-patches wrote: > The earlier patch > https://gcc.gnu.org/pipermail/gcc-patches/2021-July/575418.html > refine the way to generate sysroot suffix, but it can't find the > right path for all CPUs. The SYSROOT_SUFFIX_SPEC should be defined > to fix it.
I think this caused the build failures with build-many-glibcs.py shown by my bot. SYSROOT_SUFFIX_SPEC should not be defined for a --disable-multilib build; in such a build you can expect a single sysroot without a suffix involved. Thus, you should put the SYSROOT_SUFFIX_SPEC definition in a separate header only used if test "x${enable_multilib}" = xyes (as in the config.gcc code removed in the older patch you refer to above), or something similar. https://sourceware.org/pipermail/libc-testresults/2023q1/010706.html The error is: /scratch/jmyers/glibc-bot/install/compilers/csky-linux-gnuabiv2/csky-glibc-linux-gnuabiv2/bin/ld: cannot find -lc: No such file or directory (linking shared libgcc). -- Joseph S. Myers jos...@codesourcery.com