https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106102
--- Comment #6 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- Also found a closely related jit build failure, but there <pthread.h> is used directly. Proposed the change to move <pthread.h> before poisoning step as: https://gcc.gnu.org/pipermail/gcc-patches/2022-June/597379.html