https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect this is due to the use of weak for pthread functions. Most likely you need to force include all of libthr archive file.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 12 Feb 2024 09:17:24 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113891
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I suspect this is due to the use of weak for pthread functions. Most likely you need to force include all of libthr archive file.