[Paraview-developers] [EXTERNAL] Re: Build error
Scott, W Alan
wascott at sandia.gov
Mon Jun 4 21:04:39 EDT 2012
Chris,
With John Biddiscombe's excellent suggestion (from another e-mail), I was able to get a good link. I went into VTK/Wrapping/PytonCore/CMakeFiles/vtkWrappingPythonCore.dir, and edited link.txt. I added two additional links: -lpthread -lutil, right after the line that says -lc. Make then worked.
I am seeing this same bug on all Linux builds.
Let me know if I can do anything else,
Alan
From: Chris Harris [mailto:chris.harris at kitware.com]
Sent: Monday, June 04, 2012 6:49 AM
To: Scott, W Alan
Cc: paraview-developers at paraview.org
Subject: Re: [EXTERNAL] Re: [Paraview-developers] Build error
Hi Alan,
Ok, still no real clues, can you send me your CMakeCache.txt
Thanks,
Chris
On Fri, Jun 1, 2012 at 4:36 PM, Scott, W Alan <wascott at sandia.gov<mailto:wascott at sandia.gov>> wrote:
Chris,
I am still seeing the same error.
//Thread library used.
CMAKE_THREAD_LIBS:STRING=-lpthread
//Use the pthreads library.
CMAKE_USE_PTHREADS:BOOL=1
Alan
From: Chris Harris [mailto:chris.harris at kitware.com<mailto:chris.harris at kitware.com>]
Sent: Tuesday, May 29, 2012 9:31 AM
To: Scott, W Alan
Cc: paraview-developers at paraview.org<mailto:paraview-developers at paraview.org>
Subject: [EXTERNAL] Re: [Paraview-developers] Build error
Hi Alan,
It looks like the library is not being linked against pthreads. Can you see if CMAKE_USE_PTHREADS is enabled and what the value of CMAKE_THREAD_LIBS is?
Thanks,
Chris
On Tue, May 29, 2012 at 8:30 AM, Chris Harris <chris.harris at kitware.com<mailto:chris.harris at kitware.com>> wrote:
Hi Alan,
I haven't see this, I will try building with Python 2.6.3 to see if that reproduces the problem.
Regards,
Chris
On Fri, May 25, 2012 at 6:10 PM, Scott, W Alan <wascott at sandia.gov<mailto:wascott at sandia.gov>> wrote:
My latest build error with Linux, non MPI, OpenGL looks like this. Any ideas?
Thanks,
Alan
Linking CXX shared library ../../../lib/libvtkWrappingPythonCore-6.0.so<http://libvtkWrappingPythonCore-6.0.so>
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(thread.o): In function `PyThread_start_new_thread':
thread.c:(.text+0x79): undefined reference to `pthread_attr_setstacksize'
thread.c:(.text+0xb3): undefined reference to `pthread_create'
thread.c:(.text+0xd8): undefined reference to `pthread_detach'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(thread.o): In function `PyThread_allocate_lock':
thread.c:(.text+0x1a3): undefined reference to `sem_init'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(thread.o): In function `PyThread_free_lock':
thread.c:(.text+0x207): undefined reference to `sem_destroy'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(thread.o): In function `PyThread_acquire_lock':
thread.c:(.text+0x283): undefined reference to `sem_wait'
thread.c:(.text+0x298): undefined reference to `sem_trywait'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(thread.o): In function `PyThread_release_lock':
thread.c:(.text+0x31e): undefined reference to `sem_post'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(thread.o): In function `_pythread_pthread_set_stacksize':
thread.c:(.text+0x396): undefined reference to `pthread_attr_setstacksize'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(posixmodule.o): In function `posix_openpty':
posixmodule.c:(.text+0x2514): undefined reference to `openpty'
/projects/viz/paraview/support/Linux-eng-sci-rhel5-x86_64/install/Python-2.6.3/lib/libpython2.6.a(posixmodule.o): In function `posix_forkpty':
posixmodule.c:(.text+0x2579): undefined reference to `forkpty'
collect2: ld returned 1 exit status
make[2]: *** [lib/libvtkWrappingPythonCore-6.0.so.1] Error 1
make[1]: *** [VTK/Wrapping/PythonCore/CMakeFiles/vtkWrappingPythonCore.dir/all] Error 2
_______________________________________________
Paraview-developers mailing list
Paraview-developers at paraview.org<mailto:Paraview-developers at paraview.org>
http://public.kitware.com/mailman/listinfo/paraview-developers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120605/ba5798ea/attachment.htm>
More information about the Paraview-developers
mailing list