https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70073
--- Comment #2 from Douglas Bagnall <douglas.bagnall at catalyst dot net.nz> --- Created attachment 37864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37864&action=edit The preprocessed C file Here is the preprocessed source. It looks like _hx509_abort() has lost its attributes: void _hx509_abort ( const char * , ...) ; The relevant header contains this bit: #if !defined(__GNUC__) && !defined(__attribute__) #define __attribute__(x) #endif