https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118009
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|DUPLICATE |--- --- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #2) > If you install a new version of glibc, you need to rerun fixincludes (which > does get installed these days and had for a long time now). In general yes, but this specific obsolete rule in fixincludes is ... obsolete, abd it unintentionally started to match modern glibc systems again fairly recently (2020), see https://sourceware.org/bugzilla/show_bug.cgi?id=26647#c10 And due to some other changes in glibc, having a "fixed" pthread.h installed by GCC is causing problems again and again and again (see Bug 119089 and its dups, and https://sourceware.org/bugzilla/show_bug.cgi?id=32621 in glibc bugzilla). While it's true that mkheaders should be re-run after a glibc update, this specific fixincludes rule is completely useless and *only* causes problems. Users do not know how to run mkheaders, and they just keep reporting bugs to us. If we just stopped trying to apply a completely unnecessary "fix" to pthread.h then we wouldn't have a problem. So I'm reopening this.