https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
Alexandre Oliva changed:
What|Removed |Added
CC||aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
--- Comment #8 from CVS Commits ---
The master branch has been updated by Alexandre Oliva :
https://gcc.gnu.org/g:21edd841611a97442a6b95e8ec7e91ff8fd3a451
commit r13-6461-g21edd841611a97442a6b95e8ec7e91ff8fd3a451
Author: Alexandre Oliva
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
Jonathan Wakely changed:
What|Removed |Added
Last reconfirmed||2022-03-09
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
--- Comment #6 from Jonathan Wakely ---
(In reply to Jackson Huff from comment #5)
> Just for reference, another person in bug 52590 had tried the same before
> but also had no luck.
No, they tried a different command, not the one I suggested.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
--- Comment #5 from Jackson Huff ---
Just for reference, another person in bug 52590 had tried the same before but
also had no luck.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
--- Comment #4 from Jackson Huff ---
(In reply to Jonathan Wakely from comment #2)
> For distros other than Red Hat (and Fedora, CentOS etc.) you need to use:
>
> -Wl,--whole-archive -lpthread -Wl,--no-whole-archive
>
> Otherwise the pthread
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
--- Comment #2 from Jonathan Wakely ---
This is the usual problem with weak symbols and static linking.
For distros other than Red Hat (and Fedora, CentOS etc.) you need to use:
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive
Otherwise
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104852
--- Comment #1 from Jackson Huff ---
Note that my CMake command includes -lpthread even though CMake has been
configured to link it already with -pthread, so when reproducing it, remove
-lpthread to better replicate the situation (I only