https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66018
Thomas Preud'homme <thopre01 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thopre01 at gcc dot gnu.org --- Comment #8 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> --- (In reply to Christophe Lyon from comment #6) > Looking at libstdc++'s config.log, I noticed that GCC_NO_EXECUTABLES is set > because the default GCC link command fails on aarch64-none-elf and > arm-none-eabi --with-mode=thumb because librdimon.a is not used by default. GCC_NO_EXECUTABLES is set whenever cross-compilation is done (see around line 55 in libstdc++-v3/configure.ac). This is because in such a case host headers cannot be used. > > Could it be that this opendir test is the first link test in libstc++'s > configure for those targets? (And thus that the above problem was unnoticed > for months?) Not months, just a few days. The change that introduced this issue is the addition of AC_STRUCT_DIRENT_D_TYPE in libstdc++-v3/configure.ac as part of @222654. Commenting this directive allows the build to work.