Nonbootstrap build with Apple clang broken in gm2

Gaius Mulley gaiusmod2@gmail.com
Fri Jul 12 12:52:05 GMT 2024


FX Coudert <fxcoudert@gmail.com> writes:

> Hi,
>
> I am unable to perform a nonbootstrap build when gm2 is included, with
> Apple clang 15 as compiler. The error is due to incorrect inclusion of
> headers (<string> and <vector>) which are included after GCC’s
> system.h has been included, and macros like abort() are redefined or
> poisoned.
>
> I think the correct idiom in GCC is to #define INCLUDE_STRING (for
> example) before “system.h” is included, rather than #include <string>
> directly. The attached patch fixes the issue.
>
> Best,
> FX

Hi,

many thanks for the patch - will apply,

regards,
Gaius


More information about the Gcc mailing list