[Paraview-developers] Paraview Runtime Segfault when linking with external c++ library

Chuck Atkins chuck.atkins at kitware.com
Thu Jul 16 11:51:40 EDT 2015


Hi Prashant,

 Is it a linker problem because my external library is compiled through
> ICPC(intel c++) but Paraview is compiled with G++?
>

Does this happen for both a debug build and release build of your external
library? If it only happens in the release build, try making sure that
you're using the Intel likers since they handle optimizations, specifically
IPO and LTO, in a very specific and coordinating way that the GNU linkers
are unaware of.  You can do this by setting the environment variables
LD=xild and AR=xiar prior to running CMake.  Or if you're not using CMake
then be sure to use Intel linkers xild and xiar in place of the GNU linkers
ld and ar respectively for whatever build tool you are using.

- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150716/08ef1e3c/attachment.html>


More information about the Paraview-developers mailing list