Hello everybody we are facing a problem when installing preCICE from the source. Every dependency is compiled from the source.
Our system is
- preCICE version 2.2.0
- Operating system Ubuntu 16
- All from source code
- Boost 1.77, PETSc 3.15, OpenMPI 4.0.5, Eigen 3.3.9
Here is the error message, is there any suggestion for us?
[ 38%] Building CXX object CMakeFiles/precice.dir/src/mapping/config/MappingConfiguration.cpp.o
In file included from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscsys.h:14:0,
from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscis.h:7,
from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscao.h:8,
from /scratch/ge79qad/install_precice/precice_source/precice-2.2.0/src/utils/Petsc.hpp:44,
from /scratch/ge79qad/install_precice/precice_source/precice-2.2.0/src/mapping/PetRadialBasisFctMapping.hpp:23,
from /scratch/ge79qad/install_precice/precice_source/precice-2.2.0/src/mapping/config/MappingConfiguration.cpp:13:
/scratch/ge79qad/install_precice/dependencies/petsc/include/petscviewer.h:134:3: error: expected ‘}’ before ‘__attribute’
PETSC_VIEWER_ASCII_VTK_ATTR = PETSC_VIEWER_ASCII_VTK_DEPRECATED,
^
In file included from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscvec.h:12:0,
from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscmat.h:6,
from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscpc.h:6,
from /scratch/ge79qad/install_precice/dependencies/petsc/include/petscksp.h:6,
from /scratch/ge79qad/install_precice/precice_source/precice-2.2.0/src/utils/Petsc.hpp:46,
from /scratch/ge79qad/install_precice/precice_source/precice-2.2.0/src/mapping/PetRadialBasisFctMapping.hpp:23,
from /scratch/ge79qad/install_precice/precice_source/precice-2.2.0/src/mapping/config/MappingConfiguration.cpp:13:
/scratch/ge79qad/install_precice/dependencies/petsc/include/petscviewer.h:134:31: error: expected unqualified-id before ‘=’ token
PETSC_VIEWER_ASCII_VTK_ATTR = PETSC_VIEWER_ASCII_VTK_DEPRECATED,
^
/scratch/ge79qad/install_precice/dependencies/petsc/include/petscviewer.h:164:3: error: expected declaration before ‘}’ token
} PetscViewerFormat;
^
CMakeFiles/precice.dir/build.make:1111: recipe for target 'CMakeFiles/precice.dir/src/mapping/config/MappingConfiguration.cpp.o' failed
make[2]: *** [CMakeFiles/precice.dir/src/mapping/config/MappingConfiguration.cpp.o] Error 1
CMakeFiles/Makefile2:187: recipe for target 'CMakeFiles/precice.dir/all' failed
make[1]: *** [CMakeFiles/precice.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2