Closed DavidAnderegg closed 2 years ago
What version of idwarp are you trying to build, and what is the compiler version (gcc and gfortran)? I also notice that there are suffix rule warnings showing up, but they should be gone with the latest commit.
Hi
idwarp: 2.6.0 gcc: 9.4.0 gfortran: 9.4.0
I also tested with gcc/gfortran 11.2.0. And i also tried with the last commit. Same result
The compiler version 9.4.0 should be good, in fact we use this version in some of our nightly builds and tests. From your build log, other source files seem to compile properly with the flag, but files that import PETSc fail. We also test this particular PETSc version, without issues. How is PETSc compiled and installed locally?
I used these commands (after cloning and checking out v3.15):
./configure \
--prefix=$CONDA_PREFIX/external/petsc/ \
--PETSC_ARCH="real-debug" \
--with-scalar-type=real \
--with-debugging=1 \
--download-metis=yes \
--download-parmetis=yes \
--download-superlu_dist=yes \
--with-shared-libraries=yes \
--with-fortran-bindings=1 \
--with-cxx-dialect=C++11
# run the build command shown in the last line
# run the install command shown in the last line
# run the test command shown in the last line
export PETSC_DIR=$CONDA_PREFIX/external/petsc/
export PETSC_ARCH=""
pip install petsc4py==3.15 --no-cache-dir
This is odd, I can't reproduce this on the current HEAD, using gcc/gfortran 11.2.0 and the config file you linked.
I completely reinstalled the MACH-framework and it worked without this problem. Because of that and the feedback above, I assume there was something wrong on my system. So I am closing this.
Description
I am trying to update my local install. But i can't compile when i use the default compiler flag '-std=f2008'. If i remove it, it works.
Steps to reproduce issue
Current behavior
I get this error:
Expected behavior
It should compile with default flags.
Code versions