https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105487
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I don't think there is anything GCC can do here really. If you don't have a correct sysroot, it is not a GCC bug. Requring usr/lib is because all directories are relative to that directory.