https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57768
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I was going to say GCC should depend on std::filesystem::path but that was not added until C++17 and I think it still does not handle the case insenative correctly, see https://reviews.llvm.org/D68033?id=222210 .