Improper building of python lib
Issue #12
new
Hi,
I have shtns version 2.5-r493. I was trying to build the python library with openmp support, and it built ok. But when I tried to run the shallow water example, it died saying some omp symbol is not defined.
When I looked at the command setup.py was using to build _shtns.so, I saw that it was using -pthread even though cargs in setup.py was set to -fopenmp.
I replaced -pthread by -fopenmp manually and built the library and it works now. But is there a better solution?
Thanks, Joy
Comments (2)
-
Account Deleted -
repo owner Hi, thanks for reporting this issue. I wonder where this -pthread came from ? Maybe this is how your distribution builds python modules ? Because I have not seen this issue on my system (archlinux). I will look if there is a way to override it.
- Log in to comment
Oh, and I used --enable-openmp and --enable-python flags with configure