https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94009
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|c++ |libstdc++ Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There are three issues here. First is libstdc++ uses weak for the pthread library. The second issue is libpthread is not linked unless you do -pthread or -lpthread. The third and final issue is libpthread.a is not fully linked because of the first issue and libpthread.a is not an object file.