Hello,
I'm trying to compile ParaView 4.0.1 in our linux x86-64 cluster, but
I'm facing the following error during the compilation step
Compiling
/gpfs/scratch/bsc41/bsc41273/ParaView-v4.0.1-source/build/lib/site-packages/mpi4py/rc.py
...
[ 86%] Built target mpi4py
[ 86%] Building C object
ThirdParty/mpi4py/vtkmpi4py/CMakeFiles/mpi4py.MPE.dir/src/MPE.c.o
Linking C shared module ../../../lib/site-packages/mpi4py/MPE.so
/apps/PYTHON/2.7.3/lib/libpython2.7.a(thread.o): In function
`_pythread_pthread_set_stacksize':
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:491: undefined
reference to `pthread_attr_setstacksize'
/apps/PYTHON/2.7.3/lib/libpython2.7.a(thread.o): In function
`PyThread_release_lock':
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:346: undefined
reference to `sem_post'
/apps/PYTHON/2.7.3/lib/libpython2.7.a(thread.o): In function
`PyThread_acquire_lock':
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:323: undefined
reference to `sem_trywait'
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:321: undefined
reference to `sem_wait'
/apps/PYTHON/2.7.3/lib/libpython2.7.a(thread.o): In function
`PyThread_free_lock':
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:292: undefined
reference to `sem_destroy'
/apps/PYTHON/2.7.3/lib/libpython2.7.a(thread.o): In function
`PyThread_allocate_lock':
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:268: undefined
reference to `sem_init'
/apps/PYTHON/2.7.3/lib/libpython2.7.a(thread.o): In function
`PyThread_start_new_thread':
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:183: undefined
reference to `pthread_attr_setstacksize'
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:193: undefined
reference to `pthread_create'
/apps/PYTHON/SRC/Python-2.7.3/Python/thread_pthread.h:209: undefined
reference to `pthread_detach'
collect2: ld returned 1 exit status
I have the following defines as ccmake reports
PYTHON_MODULE_mpi4py.MPE_BUILD OFF
PYTHON_MODULE_mpi4py.MPI_BUILD OFF
PYTHON_MODULE_mpi4py.dl_BUILD_ OFF
which seem to be related with the problem.
I tried adding LIBS=-lpthread when compiling but it didn't change
anything.
Additionally, our 2.7.3 installation of python only has the static
library, while newer python installations (3.x) have the shared
libraries. Can I use a Python 3 with ParaView?
Do you have any idea on how I can fix the issue?
Thank you very much in advance.
--
WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.
http://www.bsc.es/disclaimer
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview