@flash
Quote:
Using -Wextra as compiler switch (GCC 11) I got the following error:
*************************************
/SDK/newlib/include/stddef.h:2:15: fatal error: stddef.h: No such file or directory
2 | #include_next <stddef.h>
| ^~~~~~~~~~
compilation terminated.
*************************************
That really shouldn't happen and I'm so far unable to reproduce it here (either with a cross compiler or native gcc).
The reason the #include_next fails is because the gcc internal stddef.h is ahead of the "newlib" one in the compiler's include search path, but for this exact reason and the fact that the gcc stddef.h does not contain a #include_next directive the "newlib" stddef.h header should never be used...
The only reason that there is a stddef.h header included at all with newlib is for vbcc compiler support, so if you do not use the vbcc compiler (or don't use the +newlib target) you can simply delete this file, and if this doesn't fix things then there is something wrong with your gcc installation.