Looks like possibly a mixture of C compilers or different flags being used in different places in configure and make. Would need configure.log and make.log sent to petsc-maint


On Oct 22, 2021, at 9:32 AM, Mark Adams <mfadams@lbl.gov> wrote:

And I am using 
    '--with-cc=gcc-11',
    '--with-cxx=g++-11',
but I am getting, using what Jed suggests:

/Users/markadams/Codes/petsc2/include/petscsys.h:2873:29: error: '_Pragma' undeclared (first use in this function)
 2873 | #define PetscPragmaOMP(arg) _Pragma("omp " PetscStringize(arg))


On Fri, Oct 22, 2021 at 9:15 AM Mark Adams <mfadams@lbl.gov> wrote: