https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66018
--- Comment #6 from Christophe Lyon <clyon at gcc dot gnu.org> --- 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. 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?)