https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69881
--- Comment #14 from Bernd Edlinger <bernd.edlinger at hotmail dot de> --- OK, I built the ecos cross compiler now. It works. But eCos headers don't work well with C99 because of duplicate symbols with inline functions, so I have to use -std=c89, but that started with gcc-5, so that was no surprise. The new C++ standard does not make any problems at least. confirmed, that offsetof is defined by including <cstddef> now, but not by this for instance: #define __need_NULL #define __need_offsetof #include <stddef.h>