Zoltan2 serial build error
Created by: jwillenbring
@trilinos/zoltan2
I tried to build Zoltan2 using the following cmake arguments:
cmake
-DTrilinos_ENABLE_TESTS:BOOL=ON
-DTrilinos_ENABLE_ALL_PACKAGES:BOOL=OFF
-DTrilinos_ENABLE_Zoltan2=ON
../Trilinos
I got the following error:
[ 92%] Building CXX object packages/zoltan2/test/unit/CMakeFiles/Zoltan2_Mapping.dir/problems/Mapping.cpp.o In file included from /scratch1/jmwille/TrilinosTest/Trilinos/packages/zoltan2/src/problems/Zoltan2_MappingProblem.hpp:60:0, from /scratch1/jmwille/TrilinosTest/Trilinos/packages/zoltan2/test/unit/problems/Mapping.cpp:55: /scratch1/jmwille/TrilinosTest/Trilinos/packages/zoltan2/src/algorithms/partition/Zoltan2_TaskMapping.hpp: In function ‘void Zoltan2::getCoarsenedPartGraph(const Zoltan2::Environment_, const Teuchos::Comm_, const Zoltan2::GraphModel_, part_t, const part_t_, Teuchos::ArrayRCP&, Teuchos::ArrayRCP&, Teuchos::ArrayRCP&)’: /scratch1/jmwille/TrilinosTest/Trilinos/packages/zoltan2/src/algorithms/partition/Zoltan2_TaskMapping.hpp:298:24: error: ‘getRawMpiComm’ is not a member of ‘Teuchos’ make[2]: *** [packages/zoltan2/test/unit/CMakeFiles/Zoltan2_Mapping.dir/problems/Mapping.cpp.o] Error 1 make[1]: *** [packages/zoltan2/test/unit/CMakeFiles/Zoltan2_Mapping.dir/all] Error 2 make: *** [all] Error 2
It looks like Zoltan2 is making a call to Teuchos that requires MPI to be enabled, but this is a serial build. I produced this error on a RHEL6 machine, using GCC 4.7.2, and specifically the SEMS NFS module:
module load gcc/4.7.2/base