[Paraview] compile error with 3.6.1 on RHEL5
Berk Geveci
berk.geveci at kitware.com
Mon Dec 21 16:18:30 EST 2009
I suspect that you have to add libmpi_cxx.so to MPI_EXTRA_LIBRARY.
The full path should be something like
/usr/global/openmpi/1.3.3/gnu/lib/libmpi_cxx.so
-berk
On Mon, Dec 21, 2009 at 9:59 AM, Jack Gundrum <jsg3 at psu.edu> wrote:
> Berk,
> Thanks for your reply, I get the following from CMakeCache
>
>
> MPI_COMPILER:FILEPATH=/usr/global/openmpi/1.3.3/gnu/bin/mpic++
> MPI_COMPILE_FLAGS:STRING=
> MPI_EXTRA_LIBRARY:FILEPATH=MPI_EXTRA_LIBRARY-NOTFOUND
> MPI_INCLUDE_PATH:PATH=/usr/global/openmpi/1.3.3/gnu/include
> MPI_LIBRARY:FILEPATH=/usr/global/openmpi/1.3.3/gnu/lib/libmpi.so
> MPI_LINK_FLAGS:STRING=
> VTK_MPI_MAX_NUMPROCS:STRING=2
> VTK_MPI_NUMPROC_FLAG:STRING=-np
> VTK_MPI_POSTFLAGS:STRING=
> VTK_MPI_PREFLAGS:STRING=
> VTK_MPI_PRENUMPROC_FLAGS:STRING=
> ...
> ...
> ...
>
>
> Geveci wrote:
>>
>> It sounds like the link line is missing the C++ bindings for MPI. Can
>> you grep for MPI_ in the CMakeCache.txt file (in your binary tree)? I
>> would like to know that MPI_LIBRARY and MPI_EXTRA_LIBRARY are.
>>
>> -berk
>>
>> On Fri, Dec 18, 2009 at 4:27 PM, Jack Gundrum <jsg3 at psu.edu> wrote:
>>
>>>
>>> Hi all,
>>> I run into the following compile error with gcc (GCC) 4.4.2 and openmpi
>>> 1.3.3 on RHEL5?
>>>
>>>
>>>
>>> Scanning dependencies of target vtkSMExtractDocumentation
>>> [ 86%] Building CXX object
>>>
>>> Servers/ServerManager/CMakeFiles/vtkSMExtractDocumentation.dir/vtkSMExtractDocumentation.o
>>> Linking CXX executable ../../bin/vtkSMExtractDocumentation
>>>
>>> /usr/global/paraview/3.6.1/paraview3build/bin/libvtkPVServerCommon.a(vtkPVMPICommunicator.o):
>>> In function `MPI::Intracomm::Intracomm()':
>>>
>>> vtkPVMPICommunicator.cxx:(.text._ZN3MPI9IntracommC2Ev[MPI::Intracomm::Intracomm()]+0x11):
>>> undefined reference to `MPI::Comm::Comm()'
>>>
>>> /usr/global/paraview/3.6.1/paraview3build/bin/libvtkPVServerCommon.a(vtkPVMPICommunicator.o):
>>> In function `MPI::Intracomm::Intracomm(ompi_communicator_t*)':
>>>
>>> vtkPVMPICommunicator.cxx:(.text._ZN3MPI9IntracommC1EP19ompi_communicator_t[MPI::Intracomm::Intracomm(ompi_communicator_t*)]+0x16):
>>> undefined reference to `MPI::Comm::Comm()'
>>>
>>> /usr/global/paraview/3.6.1/paraview3build/bin/libvtkPVServerCommon.a(vtkPVMPICommunicator.o):
>>> In function `MPI::Op::Init(void (*)(void const*, void*, int,
>>> MPI::Datatype
>>> const&), bool)':
>>>
>>> vtkPVMPICommunicator.cxx:(.text._ZN3MPI2Op4InitEPFvPKvPviRKNS_8DatatypeEEb[MPI::Op::Init(void
>>> (*)(void const*, void*, int, MPI::Datatype const&), bool)]+0x20):
>>> undefined
>>> reference to `ompi_mpi_cxx_op_intercept'
>>>
>>> /usr/global/paraview/3.6.1/paraview3build/bin/libvtkPVServerCommon.a(vtkPVMPICommunicator.o):(.rodata._ZTVN3MPI3WinE[vtable
>>> for MPI::Win]+0x48): undefined reference to `MPI::Win::Free()'
>>>
>>> /usr/global/paraview/3.6.1/paraview3build/bin/libvtkPVServerCommon.a(vtkPVMPICommunicator.o):(.rodata._ZTVN3MPI8DatatypeE[vtable
>>> for MPI::Datatype]+0x78): undefined reference to `MPI::Datatype::Free()'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [bin/vtkSMExtractDocumentation] Error 1
>>> make[1]: ***
>>> [Servers/ServerManager/CMakeFiles/vtkSMExtractDocumentation.dir/all]
>>> Error 2
>>>
>>> --
>>> Jack Gundrum
>>> ITS - Research Computing & Cyberinfrastucture
>>> Penn State University
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>
>
> --
> Jack Gundrum
> ITS - Research Computing & Cyberinfrastucture
> Penn State University
>
>
More information about the ParaView
mailing list