<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Calibri","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I&#8217;ve been working on building ParaView on Oak Ridge HPC Titan (Cray HPC system) for its coprocessing/catalyst libraries to be linked to PHASTA simulation code running on Titan for in-situ coprocessing as well as live monitoring via pvserver
 which are already built and can run successfully on Oak Ridge visualization cluster Lens. There are some &#8220;undefined references&#8221; errors while building ParaView on Titan which I already contacted Titan HPC support specialist but we are currently out of ideas
 on what to try next to fix these compilation errors. So I am hoping to get some ideas from people on this list who might have experienced such issues and might have some fresh ideas to help us move forward.
<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Specifically, we have to build ParaView on titan with &#8220;BUILD_SHARED_LIB&#8221; off so it can be statically linked to PHASTA simulation code and run on the Titan compute nodes. I set &#8220;apron&#8221; as MPIEXEC, set Cray pgi &nbsp;wrapper compilers CC, cc,
 ftn as MPI_CXX_COMPILER, MPI_C_COMPILER, and MPI_FORTRAN_COMPILER, set Cray_mpich2/5.6.3 as MPI libraries to link to. &nbsp;First, I tried to use gnu compilers as CMAKE compilers and was able to configure and then build ParaView, but got the following &#8220;undefined
 references&#8221; errors in libmpich.a such as the following when it was about 51% built:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">------------------------------------<o:p></o:p></p>
<p class="MsoPlainText">Linking CXX executable ../../../bin/vtkpython<o:p></o:p></p>
<p class="MsoPlainText">/opt/cray/mpt/5.6.3/gni/mpich2-pgi/119/lib/libmpich.a(gni_poll.o): In function `MPID_nem_gni_process_async_mhndl_ack':<o:p></o:p></p>
<p class="MsoPlainText">gni_poll.c:(.text&#43;0x3d): undefined reference to `GNI_SmsgRelease'<o:p></o:p></p>
<p class="MsoPlainText">gni_poll.c:(.text&#43;0x58): undefined reference to `gni_err_str'<o:p></o:p></p>
<p class="MsoNormal">--------------------------------<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Then as suggested by HPC support specialist, I changed to use cray pgi wrapper compilers CC, cc, ftn as corresponding CMAKE compilers (rather than use gnu compilers as I initially did), however, I got the following &#8220;undefined references&#8221;
 errors when it was about 19% built:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoPlainText">--------------------------------<o:p></o:p></p>
<p class="MsoPlainText">/ccs/proj/nfi010/ParaView/ParaView-3.98.1-source/VTK/Utilities/KWSys/vtksys/SystemTools.cxx:1768: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking<o:p></o:p></p>
<p class="MsoPlainText">/opt/pgi/12.10.0/linux86-64/12.10/lib/libCmpz.a(eh_util.o): In function `std::uncaught_exception(void)':<o:p></o:p></p>
<p class="MsoPlainText">eh_util.c:(.text&#43;0x307): undefined reference to `__zceh_uncaught_exception'<o:p></o:p></p>
<p class="MsoPlainText">/usr/bin/ld: link errors found, deleting executable `../../../bin/vtkHashSource-pv3.98'<o:p></o:p></p>
<p class="MsoPlainText">child process exit status 1: /sw/xk6/altd/bin/ld<o:p></o:p></p>
<p class="MsoPlainText">make[2]: *** [bin/vtkHashSource-pv3.98] Error 2<o:p></o:p></p>
<p class="MsoPlainText">make[1]: *** [VTK/Utilities/HashSource/CMakeFiles/vtkHashSource.dir/all] Error 2<o:p></o:p></p>
<p class="MsoPlainText">make: *** [all] Error 2<o:p></o:p></p>
<p class="MsoPlainText">---------------------------------------<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Not sure why pgi compiler is trying to use glibc which then leads to the undefined reference error as shown above with libCmpz.a. This problem does not happen if we use gnu compilers for CMake compilers but we got another set of undefined
 references in libmpich.a as described above. <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Anybody has any ideas on what is wrong here and what we should try next to resolve these &#8220;undefined references&#8221; errors?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Many thanks for any suggestions you can provide!<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hong<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
</div>
</body>
</html>