https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85921
--- Comment #7 from Andreas Schwab <sch...@linux-m68k.org> --- (In reply to John Simon from comment #3) > The include chain is: > > # 415 "../../gcc-8.1.0/gcc/system.h" > <-- "/usr/include/signal.h" > <-- "/usr/include/bits/sigcontext.h" > <-- "/usr/include/asm/sigcontext.h" > <-- "/usr/include/linux/compiler.h" Your kernel headers are not properly installed. After make headers_install in the kernel sources, the file usr/include/asm/sigcontext.h no longer includes <linux/compiler.h> (which is a non-uapi header).