Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix cmake pthread complile #1473

Closed
wants to merge 1 commit into from
Closed

Conversation

qqwangxiaow
Copy link

I think we need to add a dependency on pthread here.

@alk
Copy link
Contributor

alk commented Jan 2, 2024

Hi. Thanks for the patch. But can you please elaborate what is the issue exactly that you're fixing here. What doesn't work without this patch ?

@qqwangxiaow
Copy link
Author

Hi. Thanks for the patch. But can you please elaborate what is the issue exactly that you're fixing here. What doesn't work without this patch ?

Description: Debian GNU/Linux 9.8 (stretch)
Release: 9.8
gcc version 9.4.0

I have encountered this problem
make -j 8
image

@alk
Copy link
Contributor

alk commented Jan 3, 2024

Thanks. it is clear now. But adding -lpthread is not the right fix. Some OSes don't have -lpthread. So I'll see what might be wrong.

P.S. Also for the later, please, consider learning how to quote regular text rather then posting screenshoots. Not as usable on mobile.

alk added a commit to alk/gperftools that referenced this pull request Jan 3, 2024
@alk
Copy link
Contributor

alk commented Jan 3, 2024

See my commit linked above. Should be fixed now.

@alk alk closed this Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants