Cannot Install PETSc: non-compliant with C++14

16 views
Skip to first unread message

Rathore, Saubhagya

unread,
Jul 31, 2025, 1:08:09 PMJul 31
to Amanzi-ATS Users

Hi,

 

I am trying to install ATS-1.6 but continue to encounter issues with PETSc. Below is the log from petsc-configure-out.log (petsc-configure-err.log is empty). If anyone else is having similar issues, it would be helpful to share insights and notes.

 

*********************************************************************************************

           UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):

---------------------------------------------------------------------------------------------

  C++ compiler (/opt/homebrew/bin/mpicxx) appears non-compliant with C++14 or didn't

  accept:

  - -std=c++14

  Note, you have explicitly requested --with-cxx-dialect=c++14. If you do not need C++14,

  then remove this flag and let configure choose the most appropriate flag for you.

  If you DO need it, then (assuming your compiler isn't just old) try consulting your

  compilers user manual. There may be other flags (e.g. '--gcc-toolchain') you must pass to

  enable C++14

*********************************************************************************************

 

My system details are below:

 

Here are my system details:

Chip: Apple M1 Max

macOS: 15.5 (Sequoia)

 

gcc -–version

Apple clang version 17.0.0 (clang-1700.0.13.5 )

Target: arm64-apple-darwin24.4.0

Thread model: posix

InstalledDir: /Library/Developer/CommandLineTools/usr/bin

 

gfortran -–version

GNU Fortran (Homebrew GCC 15.1.0) 15.1.0

 

which gfortran

/opt/homebrew/bin/gfortran

 

mpicc -–version

Apple clang version 17.0.0 (clang-1700.0.13.5)

Target: arm64-apple-darwin24.4.0

Thread model: posix

InstalledDir: /Library/Developer/CommandLineTools/usr/bin

 

which mpicc

/opt/homebrew/bin/mpicc

 

Thanks,

Saubhagya

Reply all
Reply to author
Forward
0 new messages