http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56128
Bug #: 56128 Summary: [4.8 Regression] No way to disable build of libsanitizer Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: rgue...@gcc.gnu.org Target: x86_64-linux There is no way to disable libsanitizer on "supported" platforms. So with (broken) kernel headers build fails with In file included from /gcc/spec/sb-vangelis-head-64/gcc/libsanitizer/sanitizer_common/sanitizer_linux.cc:35:0: /usr/include/linux/futex.h:34:21: error: field '__user' has incomplete type struct robust_list __user *next; ^ /usr/include/linux/futex.h:34:21: error: expected ';' at end of member declaration /usr/include/linux/futex.h:69:21: error: expected ';' at end of member declaration struct robust_list __user *list_op_pending; ^ /usr/include/linux/futex.h:96:26: error: expected ',' or '...' before '*' token long do_futex(u32 __user *uaddr, int op, u32 val, unsigned long timeout, ^ /usr/include/linux/futex.h:100:31: error: expected ',' or '...' before '*' token handle_futex_death(u32 __user *uaddr, struct task_struct *curr, int pi); ^ make[3]: *** [sanitizer_linux.lo] Error 1 with no way to fix up (I don't need asan/tsan here).