https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79724
--- Comment #2 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- It's puzzling, because although I've never read any Ada code, I can see there is some logic in place that should deal with it. In make.adb there is: Gcc : String_Access := Program_Name ("gcc", "gnatmake"); Gnatbind : String_Access := Program_Name ("gnatbind", "gnatmake"); Gnatlink : String_Access := Program_Name ("gnatlink", "gnatmake"); and in osint.adb the function Program_Name has some logic to find prefix and suffix: -- Find the target prefix if any, for the cross compilation case. -- For instance in "powerpc-elf-gcc" the target prefix is -- "powerpc-elf-" -- Ditto for suffix, e.g. in "gcc-4.1", the suffix is "-4.1" and it uses them to return the program that is going to be used: -- Create the new program name return new String' (Name_Buffer (Start_Of_Prefix .. End_Of_Prefix) & Nam & Name_Buffer (Start_Of_Suffix .. Name_Len)); I tried to debug this by sticking some Ada.Text_IO.Put_Line calls, but either I'm doing it wrong, or it's never actually called.