https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119089
--- Comment #14 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to John David Anglin from comment #13) > Debian doesn't ship fixed pthread.h but they are in my personal > builds. I will probably remove fixed pthread.h from my personal > builds. Or use --disable-fixincludes. For most not-so-old Linux systems "fixing" the headers is not needed and may cause troubles like this.