[vtk-developers] [VTK 0012572]: Incorrect assumptions for MPI_INCLUDE_PATH in VTK

Mantis Bug Tracker mantis at public.kitware.com
Mon Sep 5 10:49:57 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=12572 
====================================================================== 
Reported By:                Mathieu Malaterre
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12572
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
====================================================================== 
Date Submitted:             2011-09-05 10:49 EDT
Last Modified:              2011-09-05 10:49 EDT
====================================================================== 
Summary:                    Incorrect assumptions for MPI_INCLUDE_PATH in VTK
Description: 
 I am currently trying to compile VTK 5.8.0 on my linux/debian box.
On debian OpenMPI is the default MPI implementation. In this case
FindMPI.cmake module from cmake 2.8.5 is finding that I have:

MPI_INCLUDE_PATH:STRING=/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi

 which is compatible with the documentation of FindMPI.cmake, where
MPI_INCLUDE_PATH is documented to have one *or more* paths. However in
VTK, it is assumed (or it looks like) that MPI_INCLUDE_PATH is
supposed to be a single path pointing to mpi.h:

$ grep -r MPI_INCLUDE_PATH * | grep  \"
Utilities/IceT/IceTConfig.cmake.in:SET(ICET_MPI_INCLUDE_PATH
"@MPI_INCLUDE_PATH@")
Utilities/Xdmf2/XDMFConfig.cmake.in:  SET(XDMF_MPI_INCLUDE_PATH
"@MPI_INCLUDE_PATH@")
VTK/Infovis/Testing/Cxx/CMakeLists.txt:
INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Examples/ParallelProcessing/Generic/Cxx/CMakeLists.txt:
INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Parallel/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Parallel/Testing/Cxx/CMakeLists.txt:
INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/mrmpi/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/VPIC/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/Cosmo/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Utilities/vtkhdf5/CMakeLists.txt:    SET (CMAKE_REQUIRED_INCLUDES
"${MPI_INCLUDE_PATH}/mpi.h" )
VTK/Utilities/vtkhdf5/CMakeLists.txt:    CHECK_SYMBOL_EXISTS
(MPI_Comm_c2f "${MPI_INCLUDE_PATH}/mpi.h"
H5_HAVE_MPI_MULTI_LANG_Comm)
VTK/Utilities/vtkhdf5/CMakeLists.txt:    CHECK_SYMBOL_EXISTS
(MPI_Info_c2f "${MPI_INCLUDE_PATH}/mpi.h"
H5_HAVE_MPI_MULTI_LANG_Info)
VTK/Wrapping/Tcl/CMakeLists.txt:    INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/Wrapping/Python/CMakeLists.txt:  INCLUDE_DIRECTORIES("${MPI_INCLUDE_PATH}")
VTK/VTKConfig.cmake.in:SET(VTK_MPI_INCLUDE_DIR "@MPI_INCLUDE_PATH@")


This leads to compilation line such as:

cd /.../paraview/debian/build/VTK/Utilities/mrmpi/src && /usr/bin/c++
...
-I"/usr/lib/openmpi/include;/usr/lib/openmpi/include/openmpi"
 -o CMakeFiles/MapReduceMPI.dir/keyvalue.cpp.o -c
/home/mathieu/debian/paraview/VTK/Utilities/mrmpi/src/keyvalue.cpp

Which of course do not work.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-09-05 10:49 Mathieu MalaterreNew Issue                                    
======================================================================




More information about the vtk-developers mailing list