<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (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:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","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;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">Hello Victor,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">I think you need to link it with the shared MPI library, i.e. libmpi.so, and not the static library. You need to specify the shared
object file during cmake. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">Wadud.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> ParaView [mailto:paraview-bounces@paraview.org]
<b>On Behalf Of </b>Victor<br>
<b>Sent:</b> 18 June 2014 05:47<br>
<b>To:</b> Utkarsh Ayachit<br>
<b>Cc:</b> ParaView<br>
<b>Subject:</b> Re: [Paraview] Cannot compile 4.1 on Ubuntu 12.04 x64 with OpenMPI 1.8.1<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I still cannot compile Paraview. I attempted to recompile openmpi-1.8.1 with fPIC but something is causing either the fPIC to be set incorrectly or I am doing something wrong. In any case I am completely stuck so I would really appreciate
some help in traversing this error:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">Linking CXX shared library ../../../lib/<a href="http://libvtkParallelMPI-pv4.1.so">libvtkParallelMPI-pv4.1.so</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">/usr/bin/ld: /opt/openmpi-1.8.1/lib/libmpi.a(comm_init.o): relocation R_X86_64_32 against `ompi_comm_f_to_c_table' can not be used when making a shared object; recompile with -fPIC<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">/opt/openmpi-1.8.1/lib/libmpi.a: could not read symbols: Bad value<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">collect2: ld returned 1 exit status<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">make[2]: *** [lib/libvtkParallelMPI-pv4.1.so.1] Error 1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">make[1]: *** [VTK/Parallel/MPI/CMakeFiles/vtkParallelMPI.dir/all] Error 2<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">make: *** [all] Error 2<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The latest openmpi configure command was: ./configure --with-sge --with-mx=/opt/open-mx --with-pic --with-mx-libdir=/opt/open-mx/lib --prefix=/opt/openmpi-1.8.1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I also attempted to manually set -fPIC flag by editing the Makefile and by setting a global CCFLAG. Nothing worked.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 31 May 2014 07:35, Victor <<a href="mailto:victor.major@gmail.com" target="_blank">victor.major@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal">Here it is, I hope. I never attempted to attach anything to a mailing list post so I apologize if it doesn't actually attach.<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 30 May 2014 20:07, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Can you post your CMakeCache.txt file?<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
On Fri, May 30, 2014 at 2:40 AM, Victor <<a href="mailto:victor.major@gmail.com" target="_blank">victor.major@gmail.com</a>> wrote:<br>
> Thank you for the fast reply!<br>
><br>
> I compiled an alternative openmpi-1.8.1 with -fPIC flag (I verified that it<br>
> was placed into the Makefile), removed the original Paraview build<br>
> directory, modified the Paraview build configuration by rerunning ccmake to<br>
> point to the alternative openmpi path, but the error remained.<br>
><br>
> During Paraview compilation the alternative path for openmpi-1.8.1 is used<br>
> until it comes to the linking step where it attempts to link to the system<br>
> wide openmpi-1.8.1 location and of course fails.<br>
><br>
> Linking CXX shared library ../../../lib/<a href="http://libvtkParallelMPI-pv4.1.so" target="_blank">libvtkParallelMPI-pv4.1.so</a><br>
> /usr/bin/ld: /opt/openmpi-1.8.1/lib/libmpi_cxx.a(intercepts.o): relocation<br>
> R_X86_64_32S against `ompi_mpi_cxx_comm_throw_excptn_fctn' can not be used<br>
> when making a shared object; recompile with -fPIC<br>
> /opt/openmpi-1.8.1/lib/libmpi_cxx.a: could not read symbols: Bad value<br>
> collect2: ld returned 1 exit status<br>
> make[2]: *** [lib/libvtkParallelMPI-pv4.1.so.1] Error 1<br>
> make[1]: *** [VTK/Parallel/MPI/CMakeFiles/vtkParallelMPI.dir/all] Error 2<br>
> make: *** [all] Error 2<br>
><br>
><br>
> I cannot (will not) overwrite the system wide openmpi as I have a parallel<br>
> job running at the moment (CFD simulation) and this node is acting as a head<br>
> node serving openmpi from an NFS shared directory. I am confident that the<br>
> application will not need to call on openmpi now that it is already running,<br>
> but I'd rather not find out that I am wrong.<br>
><br>
> Thus is there a way to force the Paraview installer to link against an<br>
> alternative build that was compiled with -fPIC?<br>
><br>
> Thanks,<br>
><br>
> Victor<br>
><br>
><br>
> On 29 May 2014 18:37, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> You'll have to recompile openmpi with -fPIC or link against a shared<br>
>> build of the same.<br>
>><br>
>> On Thu, May 29, 2014 at 5:06 AM, Victor <<a href="mailto:victor.major@gmail.com" target="_blank">victor.major@gmail.com</a>> wrote:<br>
>> > I am trying to compile Paraview 4.1 with MPI support but make exits at<br>
>> > this<br>
>> > point:<br>
>> ><br>
>> > /usr/bin/ld: /opt/openmpi-1.8.1/lib/libmpi.a(comm_init.o): relocation<br>
>> > R_X86_64_32 against `ompi_comm_f_to_c_table' can not be used when making<br>
>> > a<br>
>> > shared object; recompile with -fPIC<br>
>> > /opt/openmpi-1.8.1/lib/libmpi.a: could not read symbols: Bad value<br>
>> > collect2: ld returned 1 exit status<br>
>> > make[2]: *** [lib/libvtkParallelMPI-pv4.1.so.1] Error 1<br>
>> > make[1]: *** [VTK/Parallel/MPI/CMakeFiles/vtkParallelMPI.dir/all] Error<br>
>> > 2<br>
>> > make: *** [all] Error 2<br>
>> ><br>
>> > How can I fix this error?<br>
>> ><br>
>> > Thanks,<br>
>> ><br>
>> > Victor<br>
>> ><br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the ParaView Wiki at:<br>
>> > <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">
http://www.paraview.org/mailman/listinfo/paraview</a><br>
>> ><br>
><br>
><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>