https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68945
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- For __EXTENSIONS*, you IMHO want to use autoconf AC_USE_SYSTEM_EXTENSIONS and remove the explicit _GNU_SOURCE defines in the sources. In os-unix-sysdep.c you are mixing up the defines, some stuff is SPARC related (e.g. the membar), but other stuff is Solaris related (the headers, getticks), you really should use different define for that, or different files depending on the size of changes. Otherwise it will fail to build on sparc*-linux*.