Nonbootstrap build with Apple clang broken in gm2

FX Coudert fxcoudert@gmail.com
Thu Jul 11 14:08:28 GMT 2024


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gm2.diff
Type: application/octet-stream
Size: 1246 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20240711/53e6729e/attachment.obj>


More information about the Gcc mailing list