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

pthread in Ubuntu 18.10 #92

Closed
Aneoshun opened this issue Jan 21, 2019 · 3 comments
Closed

pthread in Ubuntu 18.10 #92

Aneoshun opened this issue Jan 21, 2019 · 3 comments

Comments

@Aneoshun
Copy link
Member

Aneoshun commented Jan 21, 2019

Apparently, sferes does not compile on ubuntu 18.10 (fresh install):
undefined reference to `pthread_join@GLIBC_2.2.5'

It seems that the -lpthread flag is missing. We fixed it by adding:
conf.env.LIBPATH_PTHREAD = ['/usr/lib/x86_64-linux-gnu/']
conf.env.LIB_PTHREAD = ['pthread’]
In the wscript (after the #boost mpi section).

If you think this is the best way to solve this, I can push a fix.

@jbmouret
Copy link
Member

jbmouret commented Jan 21, 2019 via email

@jbmouret
Copy link
Member

jbmouret commented Jan 21, 2019 via email

@jbmouret
Copy link
Member

Also, can you try to not link to pthread but to use the -pthread option in the cxxflags & ldflags?

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

No branches or pull requests

2 participants