[Paraview] Linking error on Titan when linking simulation code to ParaView coprocessing for in-situ viz

Hong Yi hongyi at renci.org
Fri Jul 19 14:31:22 EDT 2013


I have finally got ParaView built on Titan with the pgi compiler. However, when I link our simulation code (also built with the pgi compiler and run successfully on Titan) with those ParaView coprocessing libraries, I got the following linking error:
----------------------------------------------------------------
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/opt/cray/xe-sysroot/4.1.40/usr/lib64/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie
----------------------------------------------------------------
Before this linking error, there are a couple of warnings such as the following:
--------------------------------------------------
/ccs/proj/nfi010/ParaView/ParaView-3.98.1-source/VTK/Common/System/vtkSocket.cxx:425: warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
--------------------------------------------------

I am not sure why glibc.a is still needed even when linking to ParaView libraries built with pgi compiler. I just checked ccmake options and find only the following two glibc-related options:
CMake_LINKER: /usr/bin/ld
CMAKE_MAKE_PROGRAM: /usr/bin/gmake

I have built ParaView with BUILD_SHARED_LIBS off, but do have to link to a few shared libraries such as libpthread.so,  libalpslli.so, etc. since the corresponding static library versions don't work or don't exist.

Any idea on what could be the caveat? I am hopeful this would be the last issue to be resolved before we can link our simulation code to ParaView CoProcessing libraries to run in-situ visualization on Titan. Thanks for any ideas/suggestions!

Hong

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130719/c585a44e/attachment.htm>


More information about the ParaView mailing list