[Trilinos-Users] Error when building with TPL_ENABLE_MPI ON
Jaroslaw Slawinski
xjaross at gmail.com
Wed Feb 26 15:58:39 MST 2014
Hello,
I am using Trilinos 11.4.3. Everything works fine until I do cmake ...
-D TPL_ENABLE_MPI=ON $src
gcc 4.4.7
When I call "make," I get:
[ 8%] Building CXX object
packages/teuchos/comm/src/
CMakeFiles/teuchoscomm.dir/Teuchos_PerformanceMonitorBase.cpp.o
In file included from
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_CommHelpers.hpp:58,
from
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_PerformanceMonitorBase.cpp:43:
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_DefaultMpiComm.hpp:
In constructor 'Teuchos::MpiComm<Ordinal>::MpiComm(const
Teuchos::RCP<const Teuchos::OpaqueWrapper<int> >&) [with Ordinal =
int]':
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_DefaultComm.hpp:120:
instantiated from 'static Teuchos::RCP<const Teuchos::Comm<Ordinal>
> Teuchos::DefaultComm<OrdinalType>::getComm() [with OrdinalType = int]'
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_PerformanceMonitorBase.cpp:106:
instantiated from here
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_DefaultMpiComm.hpp:713:
error: invalid conversion from 'void (*)(MPI_Comm*, int*, ...)' to 'int'
/tmp/adapt/trilinos-11.4.3-Source/trilinos-11.4.3-Source/packages/teuchos/comm/src/Teuchos_DefaultMpiComm.hpp:713:
error: initializing argument 1 of
'Teuchos::OpaqueWrapper<Opaque>::OpaqueWrapper(Opaque) [with Opaque = int]'
make[2]: *** [packages/teuchos/comm/src/CMakeFiles/teuchoscomm.dir/Teuchos_PerformanceMonitorBase.cpp.o]
Error 1
make[1]: *** [packages/teuchos/comm/src/CMakeFiles/teuchoscomm.dir/all] Error 2
make: *** [all] Error 2
My MPI is OpenMPI, but, I understand, it does not matter here (this is
the compilation error and it uses mpicxx and includes mpi.h)
Can anybody help, please?
Best regards
Jaro
More information about the Trilinos-Users
mailing list