https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87231
--- Comment #5 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Created attachment 64934 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64934&action=edit OpenBSD: '__size_t is a typedef, must not trash it' in 'gcc/ginclude/stddef.h' [PR87231] As the build proceeds, we run into: In file included from [...]/build-gcc/gcc/include-fixed/stdlib.h:49, from [...]/build-gcc/x86_64-unknown-openbsd7.9/libstdc++-v3/include/cstdlib:83, from ../../../../source-gcc/libstdc++-v3/libsupc++/atexit_thread.cc:25: /usr/include/amd64/_types.h:123:18: error: declaration does not declare anything [-fpermissive] 123 | typedef unsigned long __size_t; | ^~~~ Attaching a patch that just copies for OpenBSD what is done for other BSDs. Not validated any further.
