<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div> Please send configure.log to <a href="mailto:petsc-maint@mcs.anl">petsc-maint@mcs.anl</a>.gov<br><div><br><blockquote type="cite"><div>On Sep 24, 2023, at 5:59 AM, Felipe Caro <msc.felipe.caro@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><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><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">#!/bin/bash</span></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt"># Configuration</span></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><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><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; 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></div><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><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; 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></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><br></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Best regards,</span></div><div style="color: rgb(14, 16, 26); background: none; margin-top: 0pt; margin-bottom: 0pt;"><span style="color:rgb(14,16,26);background:transparent;margin-top:0pt;margin-bottom:0pt">Felipe.</span></div></div>
</div></blockquote></div><br></body></html>