https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103011
--- Comment #8 from Pekka S <p...@gcc-bugzilla.mail.kapsi.fi> --- Created attachment 51734 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51734&action=edit For CPP_FOR_BUILD use $(CC_FOR_BUILD) -E instead of $(CPP). The problem is that when $(CPP) is not defined it is set to $(CC) -E by default (by GNU make). However, CPP_FOR_BUILD shall use CC_FOR_BUILD, not CC.