https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81451
--- Comment #1 from Ian Lance Taylor <ian at airs dot com> --- There does seem to be something wrong with your linux/futex.h, which is much shorter than the one on my system. But it is also true that the file where the error occurs no longer needs to #include <linux/futex.h>. You should just remove the #include and carry on. I'll commit a more comprehensive fix to mainline.