On 04/02/14 08:20, Kenneth Hoste wrote:
Hi Bart,
On 31/01/14 03:10, Bart Verleye wrote:
Hey All,
When I install paraview 4.1 with the gmpolf toolchain, all goes well.
However, when I try the goolf 1.6.10, I get the error as attached.
Which is kind of strange, because when I configure and build myself in
the build directory, with the goolf toolchain loaded, all goes through.
Any ideas?
So, the following problem is occuring:
Linking CXX shared library ../../../lib/libvtkCommonCore-pv4.1.so
CMakeFiles/vtkCommonCore.dir/vtkMultiThreader.cxx.o: In function
`vtkMultiThreader::SingleMethodExecute()':
/gpfs1m/apps/easybuild/RHEL6.3/westmere/build/Paraview/4.1.0/goolf-1.6.10/ParaView-v4.1.0/VTK/Common/Core/vtkMultiThreader.cxx:382:
undefined reference to `pthread_create'
/gpfs1m/apps/easybuild/RHEL6.3/westmere/build/Paraview/4.1.0/goolf-1.6.10/ParaView-v4.1.0/VTK/Common/Core/vtkMultiThreader.cxx:400:
undefined reference to `pthread_join'
...
easyblock = 'CMakeMake'
name = 'ParaView'
version = '4.1.0'
versionsuffix = '-server'
homepage = "http://www.paraview.org"
description = "Paraview is a scientific parallel visualizer"
toolchain = {'name': 'goolf', 'version': '1.4.10'}
toolchainopts = {'usempi': False, 'pic': True}
download_suffix =
'download.php?submit=Download&version=v%(version_major_minor)s&type=source&os=all&downloadFile='
source_urls = ['http://www.paraview.org/paraview-downloads/%s' %
download_suffix]
sources = ["ParaView-v%(version)s-source.tar.gz"]
comp = 'GCC'
compver = '4.7.2'
dependencies = [
('Python', '2.7.6'),
('Mesa', '7.11.2', '-Python-2.7.6')
]
builddependencies = [('CMake', '2.8.12', '', (comp, compver))]
configopts = " -DPARAVIEW_ENABLE_PYTHON=ON -DPARAVIEW_BUILD_QT_GUI=OFF
-DVTK_USE_X=OFF -DVTK_USE_OFFSCREEN=ON"
configopts += " -DVTK_OPENGL_HAS_OSMESA=ON
-DOPENGL_INCLUDE_DIR=$EBROOTMESA/include
-DOSMESA_INCLUDE_DIR=$EBROOTMESA/include"
configopts += " -DOSMESA_LIBRARY=$EBROOTMESA/lib/libOSMesa.so
-DOPENGL_glu_LIBRARY=$EBROOTMESA/lib/libGLU.so -DOPENGL_gl_LIBRARY="""
configopts += " -DBUILD_SHARED_LIBS=ON -DPARAVIEW_USE_MPI=on"
separate_build_dir = True
moduleclass = 'vis'
I went with different versioning scheme... tried to make it equivalent
to EB here apart from cmake...
So I went with a binary install for running in client mode, and this one
for running server and pvbatch.
This build works beautifully here
Also note that toolchain must be set to mpi: False, as not everything
can be built with mpicc, setting CC to mpicc screws things up.
I dont think the paraview build in EB was properly tested. :)
Cheers,
Olav
I've seen things like this before, and it's often related to $LIBS being
redefined by EasyBuild, in combination with using a newer GCC version
(like in goolf 1.6.10). This also explains why you're not seeing it when
trying manually.
Can you try adding the following, in your easyconfig file:
makeopts = 'LIBS="$LIBS -lpthread" VERBOSE=1'
The last part is only to make sure you're seeing what's going on...
Do let us know whether that helps at all.
regards,
Kenneth
--
Olav Smørholm
Centre for Scientific Computing
University of Warwick