https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95402
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- As mentioned in https://gcc.gnu.org/install/prerequisites.html one needs to use GNU make to build gcc, are you sure make is a GNU make?