Problem with mesa super build of ParaView 5.6.0-RC3

Hello,

I ran into an issue with the Mesa build of ParaView 5.6.0-RC3
I could not get LLVM to build. The superbuild failed here

[ 74%] Linking CXX shared library …/libLLVMWindowsManifest.so
/usr/bin/ld: cannot find -lxml2
collect2: error: ld returned 1 exit status
gmake[5]: *** [lib/libLLVMWindowsManifest.so.7] Error 1
gmake[4]: *** [lib/WindowsManifest/CMakeFiles/LLVMWindowsManifest.dir/all] Error 2
gmake[3]: *** [all] Error 2
CMake Error at /home/joeh/PV/Build_5.6.0-RC3_mesa/superbuild/sb-llvm-build.cmake:47 (message):
Failed with exit code 2

and I had to modify the file Build_5.6.0-RC3_mesa/superbuild/llvm/build/lib/WindowsManifest/CMakeFiles/LLVMWindowsManifest.dir/link.txt

/usr/bin/g++ -fPIC -fPIC -std=c++11 -fPIC -fvisibility-inlines-hidden -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-rpath-link,/home/joeh/PV/Build_5.6.0-RC3_mesa/superbuild/llvm/build/./lib -Wl,-O3 -Wl,–gc-sections -Wl,-z,defs -Wl,-z,nodelete -shared -Wl,-soname,libLLVMWindowsManifest.so.7 -o …/libLLVMWindowsManifest.so.7 CMakeFiles/LLVMWindowsManifest.dir/WindowsManifestMerger.cpp.o -Wl,-rpath,"$ORIGIN/…/lib" -lxml2 …/libLLVMSupport.so.7

adding

-L/home/joeh/PV/Build_5.6.0-RC3_mesa/install/lib

to the end of the file in order to continue compilation.

I was using these flags on a RHEL 7.6 workstation with the superbuild source installed in

/home/joeh/PV/Source_5.6.0

and the downloaded tar balls all in

/home/joeh/PV/Downloads

####################################

paraview_version=5.6.0-RC3
cmake_version=3.11.4
build_extension=_mesa

cmake
-DCMAKE_INSTALL_PREFIX:PATH=pwd/…/…/pv-test/${paraview_version}${build_extension}
-DCMAKE_BUILD_TYPE=Release
-DParaView_FROM_GIT=OFF
-Dsuperbuild_download_location=pwd/…/Downloads
-DParaView_URL=pwd/…/Downloads/ParaView-v${paraview_version}-source.tar.gz
-DENABLE_boost=ON
-DBoost_NO_BOOST_CMAKE:BOOL=ON
-DENABLE_visitbridge:BOOL=ON
-DENABLE_ffmpeg=ON
-DENABLE_hdf5=ON
-DENABLE_fontconfig=ON
-DENABLE_freetype=ON
-DENABLE_libxml2=ON
-DENABLE_matplotlib=OFF
-DENABLE_osmesa=OFF
-DENABLE_mesa=ON
-DENABLE_mpi=ON
-DENABLE_numpy=ON
-DENABLE_ospray=ON
-DENABLE_cxx11=ON
-DENABLE_paraview=ON
-DENABLE_paraviewweb=ON
-DENABLE_python=ON
-DENABLE_qt5=ON
-DENABLE_png=ON
-DENABLE_qhull=ON
-DENABLE_szip=ON
-DPARAVIEW_USE_VISITBRIDGE=ON
-DENABLE_cgns=OFF
-DENABLE_silo=ON
-DUSE_SYSTEM_mpi=OFF
-DUSE_SYSTEM_python=OFF
-DUSE_SYSTEM_zlib=OFF
-DSUPERBUILD_PROJECT_PARALLELISM=1
-Dparaview_SOURCE_SELECTION=“5.6.0-RC3”
-Dvtkm_SOURCE_SELECTION=“stable”
-DPARAVIEW_RENDERING_BACKEND:STRING=“OpenGL2”
-DVTK_RENDERING_BACKEND:STRING=“OpenGL2”
…/Source_5.6.0

make install

####################################

any ideas?

Thanks,

Joe

Joe,

I fixed this today and it will be available in the v5.6.0 tag of ParaView superbuild.

Cory

Cory,

Thanks, for the quick response, I am glad the fix will be in the v5.6.0 tag of the ParaView superbuild.

Joe

1 Like