<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.<br><br></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">I am attaching my config.log<br><br></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">Best Regards,<br></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.<br></span></p></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom, 24 sept 2023 a la(s) 18:38, Barry Smith (<a href="mailto:bsmith@petsc.dev">bsmith@petsc.dev</a>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br></div> Please send configure.log to <a href="mailto:petsc-maint@mcs.anl" target="_blank">petsc-maint@mcs.anl</a>.gov<br><div><br><blockquote type="cite"><div>On Sep 24, 2023, at 5:59 AM, Felipe Caro <<a href="mailto:msc.felipe.caro@gmail.com" target="_blank">msc.felipe.caro@gmail.com</a>> wrote:</div><br><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></div></blockquote></div>