<div dir="ltr"><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Hello PETSc Support Team,</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">I hope this email finds you well. I need help configuring PETSc on my Mac running MacOS Ventura 13.6 with Xcode 15. I have recently updated my operating system and Xcode and am facing issues setting up PETSc with gfortran-13. </span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Thank you for your assistance.</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><h3 style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">System Information</span></h3><ul style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><li style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt;list-style-type:disc"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">MacOS Version: Ventura 13.6</span></li><li style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt;list-style-type:disc"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Xcode Version: 15</span></li><li style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt;list-style-type:disc"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">gfortran Version: 13 (installed via Homebrew)</span></li><li style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt;list-style-type:disc"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">PETSc Version: [Your PETSc Version]</span></li></ul><h3 style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Steps to Reproduce</span></h3><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">I followed the standard installation steps as outlined in the PETSc documentation. Below is the relevant section of the Bash script I used for configuration:</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">#!/bin/bash</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"># PETSc environment variables</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">export PETSC_DIR=/path/to/petsc</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">export PETSC_ARCH=arch-cmplx-opt</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"># Configuration</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">cd $PETSC_DIR</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">./configure --with-cc=gcc-13 --with-cxx=g++-13 --with-fc=gfortran-13 --with-f90=gfortran-13 \</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">  --with-debugging=no --with-scalar-type=complex --with-openmp \</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">  --download-mpich --download-fblaslapack --download-scalapack \</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">  --download-mumps --download-metis --download-parmetis --download-hwloc \</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">  COPTFLAGS="-O3" CXXOPTFLAGS="-O3" FOPTFLAGS="-Ofast" $PETSC_ARCH</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><h3 style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Error Message</span></h3><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">The configure script throws the following error:</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Fortran compiler you provided with --with-fc=gfortran-13 cannot be found or does not work.</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Cannot compile/link FC with gfortran-13.</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">To verify if gfortran-13 is working, I tested it by compiling a simple Fortran program, and it worked despite a linker warning related to duplicate libraries.</span></p><h3 style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Additional Information</span></h3><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">I also ran brew doctor to ensure my Homebrew setup was fine and no issues were found.</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Can you guide me on how to resolve this issue? I can also provide the configure.log file if that would be helpful for debugging.</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Thank you for your time and assistance.</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><br></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Best regards,</span></p><p style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Felipe.</span></p></div>