PyTrilinos: error: 'const class Epetra_BlockMap'
Created by: sagitter
Hi all.
PyTrilinos
does not compile on Fedora 26 32-bit
with this error:
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp: In destructor 'virtual NLNML::NLNML_NonlinearLevel::~NLNML_NonlinearLevel()':
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp:298:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (thislevel_ag_) ML_Aggregate_Destroy(&thislevel_ag_); thislevel_ag_ = NULL;
^~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp:298:60: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (thislevel_ag_) ML_Aggregate_Destroy(&thislevel_ag_); thislevel_ag_ = NULL;
^~~~~~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp:299:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (thislevel_ml_) ML_Destroy(&thislevel_ml_); thislevel_ml_ = NULL;
^~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp:299:60: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if (thislevel_ml_) ML_Destroy(&thislevel_ml_); thislevel_ml_ = NULL;
^~~~~~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp: In member function 'bool NLNML::NLNML_NonlinearLevel::Iterate(Epetra_Vector*, Epetra_Vector*, int, double*)':
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp:512:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (Comm().MyPID() == 0)
^~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/trilinoscouplings/src/ml/NonlinML/nlnml_nonlinearlevel.cpp:516:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
fflush(stdout);
^~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp: In function 'Teuchos::RCP<Epetra_IntVector>* PyTrilinos::convertPythonToEpetraIntVector(PyObject*, int*)':
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:146:27: warning: unused variable 'swig_DMDV_ptr' [-Wunused-variable]
static swig_type_info * swig_DMDV_ptr =
^~~~~~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:155:14: warning: unused variable 'distarray' [-Wunused-variable]
PyObject * distarray = 0;
^~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp: In function 'Teuchos::RCP<Epetra_MultiVector>* PyTrilinos::convertPythonToEpetraMultiVector(PyObject*, int*)':
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:284:27: warning: unused variable 'swig_DMDV_ptr' [-Wunused-variable]
static swig_type_info * swig_DMDV_ptr =
^~~~~~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:293:14: warning: unused variable 'distarray' [-Wunused-variable]
PyObject * distarray = 0;
^~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp: In function 'Teuchos::RCP<Epetra_Vector>* PyTrilinos::convertPythonToEpetraVector(PyObject*, int*)':
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:435:27: warning: unused variable 'swig_DMDV_ptr' [-Wunused-variable]
static swig_type_info * swig_DMDV_ptr =
^~~~~~~~~~~~~
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:444:14: warning: unused variable 'distarray' [-Wunused-variable]
PyObject * distarray = 0;
^~~~~~~~~
In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:0,
from /builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/numpy_include.hpp:65,
from /builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:48:
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp: In function 'PyObject* PyTrilinos::convertToDimData(const Epetra_BlockMap&, int)':
/builddir/build/BUILD/trilinos-12.8.1/Trilinos-trilinos-release-12-8-1/packages/PyTrilinos/src/PyTrilinos_Epetra_Util.cpp:1047:52: error: 'const class Epetra_BlockMap' has no member named 'MyGlobalElements64'; did you mean 'MyGlobalElements'?
(void*)ebm.MyGlobalElements64());
^
/usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:139:21: note: in definition of macro 'PyArray_SimpleNewFromData'
data, 0, NPY_ARRAY_CARRAY, NULL)
^~~~
Note that Kokkos Xpetra Piro
are disabled on 32-bit architectures.
cmake
configuration:
+ /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE:STRING=Release '-DCMAKE_C_FLAGS_RELEASE:STRING=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wl,-z,relro -fPIC -Wl,-z,now' '-DCMAKE_CXX_FLAGS_RELEASE:STRING=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wl,-z,relro -fPIC -Wl,-z,now' '-DCMAKE_Fortran_FLAGS_RELEASE:STRING=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wl,-z,relro -fPIC -Wl,-z,now' '-DCMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fPIC -pie -Wl,-z,now -Wl,--as-needed' -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH:BOOL=YES -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES -DBUILD_SHARED_LIBS:BOOL=ON -DTPL_ENABLE_MPI=OFF -DTrilinos_ENABLE_FORTRAN:BOOL=ON -DTrilinos_ENABLE_OpenMP:BOOL=ON -DTrilinos_ENABLE_PyTrilinos:BOOL=ON -DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON -DPyTrilinos_INSTALL_PREFIX:PATH=/usr/lib -DPYTHON_VERSION:STRING=2.7 -DTrilinos_ENABLE_Kokkos:BOOL=OFF -DTrilinos_ENABLE_Xpetra:BOOL=OFF -DTrilinos_ENABLE_Piro:BOOL=OFF -DTpetra_INST_SERIAL:BOOL=OFF -DCMAKE_VERBOSE_MAKEFILE=TRUE -DTrilinos_VERBOSE_CONFIGURE=OFF -DTrilinos_ENABLE_CXX11=ON -DTrilinos_INSTALL_INCLUDE_DIR=/usr/include/trilinos -DTrilinos_INSTALL_LIB_DIR=/usr/lib -DTrilinos_INSTALL_RUNTIME_DIR=/usr/bin -DTrilinos_INSTALL_EXAMPLE_DIR=/usr/share/trilinos/examples -DTrilinos_ENABLE_STRONG_C_COMPILE_WARNINGS=OFF -DTrilinos_ENABLE_STRONG_CXX_COMPILE_WARNINGS=OFF -DTrilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON -DTPL_ENABLE_gtest:BOOL=OFF -DTrilinos_ENABLE_STK:BOOL=OFF -DTrilinos_ENABLE_ALL_PACKAGES=ON -DTrilinos_NO_64BIT_GLOBAL_INDICES=ON ..