<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hey Victor,<br>
    <br>
    Editing the make file is a bad idea. CCFLAG is the wrong flag. I
    think this is much simpler than it appears.<br>
    just set the compiler flags on your configure line. as in:<br>
    <br>
    ./configure <b>CFLAGS="-O2 -g -fPIC" CXXFLAGS="-O2 -g -fPIC"</b>
    --with-sge --with-mx=/opt/open-mx --with-pic
    --with-mx-libdir=/opt/open-mx/lib --prefix=/opt/openmpi-1.8.1<br>
    <br>
    before you do anything rm it all including build and install just to
    be sure you don't have any stale objects libs etc.<br>
    Burlen<br>
    <br>
    <div class="moz-cite-prefix">On 06/17/2014 09:47 PM, Victor wrote:<br>
    </div>
    <blockquote
cite="mid:CAJTHAuepGQc_iLwjCBANu_85gDz4bN9PC9dbUX05-BrFrgyfjQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">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:
        <div>
          <br>
        </div>
        <div>
          <div>Linking CXX shared library ../../../lib/<a
              moz-do-not-send="true"
              href="http://libvtkParallelMPI-pv4.1.so">libvtkParallelMPI-pv4.1.so</a></div>
          <div>/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</div>
          <div>/opt/openmpi-1.8.1/lib/libmpi.a: could not read symbols:
            Bad value</div>
          <div>collect2: ld returned 1 exit status</div>
          <div>make[2]: *** [lib/libvtkParallelMPI-pv4.1.so.1] Error 1</div>
          <div>make[1]: ***
            [VTK/Parallel/MPI/CMakeFiles/vtkParallelMPI.dir/all] Error 2</div>
          <div>make: *** [all] Error 2</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>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</div>
        <div><br>
        </div>
        <div>I also attempted to manually set -fPIC flag by editing the
          Makefile and by setting a global CCFLAG. Nothing worked.</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On 31 May 2014 07:35, Victor <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:victor.major@gmail.com" target="_blank">victor.major@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">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.</div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">On 30 May 2014 20:07, Utkarsh
                    Ayachit <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:utkarsh.ayachit@kitware.com"
                        target="_blank">utkarsh.ayachit@kitware.com</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">Can
                      you post your CMakeCache.txt file?<br>
                      <div>
                        <div><br>
                          On Fri, May 30, 2014 at 2:40 AM, Victor <<a
                            moz-do-not-send="true"
                            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
                            moz-do-not-send="true"
                            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 moz-do-not-send="true"
                            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 moz-do-not-send="true"
                            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
                            moz-do-not-send="true"
                            href="http://www.kitware.com"
                            target="_blank">www.kitware.com</a><br>
                          >> ><br>
                          >> > Visit other Kitware open-source
                          projects at<br>
                          >> > <a moz-do-not-send="true"
                            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 moz-do-not-send="true"
                            href="http://paraview.org/Wiki/ParaView"
                            target="_blank">http://paraview.org/Wiki/ParaView</a><br>
                          >> ><br>
                          >> > Follow this link to
                          subscribe/unsubscribe:<br>
                          >> > <a moz-do-not-send="true"
                            href="http://www.paraview.org/mailman/listinfo/paraview"
                            target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
                          >> ><br>
                          ><br>
                          ><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>