[Paraview] Cannot compile ParaView 4.0.1

Andy Bauer andy.bauer at kitware.com
Mon Oct 7 10:19:49 EDT 2013


Hi,

I can't say for sure but my first guess is that it's an issue with the
Python installation that you're using. ParaView won't work with Python 3.0.
I'd suggest trying out the ParaView Superbuild (
http://paraview.org/Wiki/ParaView/Superbuild) which will build all required
dependencies as well. For some of them you can specify that it should use
the system version. Generally, I do this for MPI on HPC systems since they
have a special MPI version. If I'm building the GUI, I also try to use the
system Qt since that just takes a very long time to build.

Regards,
Andy




On Mon, Oct 7, 2013 at 10:02 AM, Harald Servat <harald.servat at bsc.es> wrote:

> 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<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/**ParaView <http://paraview.org/Wiki/ParaView>
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/**mailman/listinfo/paraview<http://www.paraview.org/mailman/listinfo/paraview>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20131007/48ae070b/attachment.htm>


More information about the ParaView mailing list