[Paraview] Cannot compile 4.1 on Ubuntu 12.04 x64 with OpenMPI 1.8.1

Victor victor.major at gmail.com
Thu Jun 19 04:30:20 EDT 2014


I managed to compile it! Thank you.

I now need to figure out how to use it...it does not seem as simple as
telling the paraview how many cores to use as all I get is visual artifacts
instead of real output (I see a field with spots, instead of the expected
slice visualization that I get when I only run paraview on a single core).
Doing mpirun on pvserver also does not seem to do much (spots, and same
speed) while attempting to use pvrenderserver does not work - not without
delving into exactly how to make it work - the client connects, but no
rendering happens...

I will look at the documentation and the web first before asking for help...


On 18 June 2014 20:46, Victor <victor.major at gmail.com> wrote:

> Thank you for the advice. I will attempt this tomorrow.
>
> Regarding the openmpi path, I recompiled the system wide openmpi and it
> indeed lives in /opt/openmpi-1.8.1. I no longer use an alternative openmpi
> install path as that did not work out anyway.
>
>
> On 18 June 2014 20:08, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
> wrote:
>
>> Looking back at your earlier email, you say "....where it attempts to
>> link to the system
>> > wide openmpi-1.8.1 location and of course fails".
>>
>> Looking at the error message, I don't see where it links agains the
>> system wide openmpi. It's indeed linking against the openmpi in
>> /opt/openmpi-1.8.1/ which is what you  have built, right? Or am I
>> misreading this?
>>
>> You can also manually edit the CMakeCache.txt file and ensure all
>> "mpi" variables point to directories from your build esp. the
>> MPI_(C|CXX|Fortran)_* flags.
>>
>> Utkarsh
>>
>> On Fri, May 30, 2014 at 2:40 AM, Victor <victor.major at gmail.com> wrote:
>> > Thank you for the fast reply!
>> >
>> > I compiled an alternative openmpi-1.8.1 with -fPIC flag (I verified
>> that it
>> > was placed into the Makefile), removed the original Paraview build
>> > directory, modified the Paraview build configuration by rerunning
>> ccmake to
>> > point to the alternative openmpi path, but the error remained.
>> >
>> > During Paraview compilation the alternative path for openmpi-1.8.1 is
>> used
>> > until it comes to the linking step where it attempts to link to the
>> system
>> > wide openmpi-1.8.1 location and of course fails.
>> >
>> > Linking CXX shared library ../../../lib/libvtkParallelMPI-pv4.1.so
>> > /usr/bin/ld: /opt/openmpi-1.8.1/lib/libmpi_cxx.a(intercepts.o):
>> relocation
>> > R_X86_64_32S against `ompi_mpi_cxx_comm_throw_excptn_fctn' can not be
>> used
>> > when making a shared object; recompile with -fPIC
>> > /opt/openmpi-1.8.1/lib/libmpi_cxx.a: could not read symbols: Bad value
>> > collect2: ld returned 1 exit status
>> > make[2]: *** [lib/libvtkParallelMPI-pv4.1.so.1] Error 1
>> > make[1]: *** [VTK/Parallel/MPI/CMakeFiles/vtkParallelMPI.dir/all] Error
>> 2
>> > make: *** [all] Error 2
>> >
>> >
>> > I cannot (will not) overwrite the system wide openmpi as I have a
>> parallel
>> > job running at the moment (CFD simulation) and this node is acting as a
>> head
>> > node serving openmpi from an NFS shared directory. I am confident that
>> the
>> > application will not need to call on openmpi now that it is already
>> running,
>> > but I'd rather not find out that I am wrong.
>> >
>> > Thus is there a way to force the Paraview installer to link against an
>> > alternative build that was compiled with -fPIC?
>> >
>> > Thanks,
>> >
>> > Victor
>> >
>> >
>> > On 29 May 2014 18:37, Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
>> wrote:
>> >>
>> >> You'll have to recompile openmpi with -fPIC or link against a shared
>> >> build of the same.
>> >>
>> >> On Thu, May 29, 2014 at 5:06 AM, Victor <victor.major at gmail.com>
>> wrote:
>> >> > I am trying to compile Paraview 4.1 with MPI support but make exits
>> at
>> >> > this
>> >> > point:
>> >> >
>> >> > /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
>> >> > /opt/openmpi-1.8.1/lib/libmpi.a: could not read symbols: Bad value
>> >> > collect2: ld returned 1 exit status
>> >> > make[2]: *** [lib/libvtkParallelMPI-pv4.1.so.1] Error 1
>> >> > make[1]: *** [VTK/Parallel/MPI/CMakeFiles/vtkParallelMPI.dir/all]
>> Error
>> >> > 2
>> >> > make: *** [all] Error 2
>> >> >
>> >> > How can I fix this error?
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Victor
>> >> >
>> >> > _______________________________________________
>> >> > Powered by www.kitware.com
>> >> >
>> >> > Visit other Kitware open-source projects at
>> >> > http://www.kitware.com/opensource/opensource.html
>> >> >
>> >> > Please keep messages on-topic and check the ParaView Wiki at:
>> >> > http://paraview.org/Wiki/ParaView
>> >> >
>> >> > Follow this link to subscribe/unsubscribe:
>> >> > http://www.paraview.org/mailman/listinfo/paraview
>> >> >
>> >
>> >
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140619/f5fcea66/attachment-0001.html>


More information about the ParaView mailing list