Hello PETSc Support Team,
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. Thank you for your assistance. System Information - MacOS Version: Ventura 13.6 - Xcode Version: 15 - gfortran Version: 13 (installed via Homebrew) - PETSc Version: [Your PETSc Version] Steps to Reproduce 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: #!/bin/bash # PETSc environment variables export PETSC_DIR=/path/to/petsc export PETSC_ARCH=arch-cmplx-opt # Configuration cd $PETSC_DIR ./configure --with-cc=gcc-13 --with-cxx=g++-13 --with-fc=gfortran-13 --with-f90=gfortran-13 \ --with-debugging=no --with-scalar-type=complex --with-openmp \ --download-mpich --download-fblaslapack --download-scalapack \ --download-mumps --download-metis --download-parmetis --download-hwloc \ COPTFLAGS="-O3" CXXOPTFLAGS="-O3" FOPTFLAGS="-Ofast" $PETSC_ARCH Error Message The configure script throws the following error: UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details): Fortran compiler you provided with --with-fc=gfortran-13 cannot be found or does not work. Cannot compile/link FC with gfortran-13. 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. Additional Information I also ran brew doctor to ensure my Homebrew setup was fine and no issues were found. 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. Thank you for your time and assistance. I am attaching my config.log Best Regards, Felipe. El dom, 24 sept 2023 a la(s) 18:38, Barry Smith (bsm...@petsc.dev) escribió: > > Please send configure.log to petsc-ma...@mcs.anl.gov > > On Sep 24, 2023, at 5:59 AM, Felipe Caro <msc.felipe.c...@gmail.com> > wrote: > > Hello PETSc Support Team, > > 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. > > Thank you for your assistance. > > System Information > > - MacOS Version: Ventura 13.6 > - Xcode Version: 15 > - gfortran Version: 13 (installed via Homebrew) > - PETSc Version: [Your PETSc Version] > > Steps to Reproduce > 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: > > #!/bin/bash > > # PETSc environment variables > export PETSC_DIR=/path/to/petsc > export PETSC_ARCH=arch-cmplx-opt > > # Configuration > cd $PETSC_DIR > ./configure --with-cc=gcc-13 --with-cxx=g++-13 --with-fc=gfortran-13 > --with-f90=gfortran-13 \ > --with-debugging=no --with-scalar-type=complex --with-openmp \ > --download-mpich --download-fblaslapack --download-scalapack \ > --download-mumps --download-metis --download-parmetis --download-hwloc \ > COPTFLAGS="-O3" CXXOPTFLAGS="-O3" FOPTFLAGS="-Ofast" $PETSC_ARCH > > Error Message > The configure script throws the following error: > > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details): > Fortran compiler you provided with --with-fc=gfortran-13 cannot be found > or does not work. > Cannot compile/link FC with gfortran-13. > > 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. > Additional Information > I also ran brew doctor to ensure my Homebrew setup was fine and no issues > were found. > 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. > Thank you for your time and assistance. > > Best regards, > Felipe. > > >
installopt.sh
Description: Bourne shell script
PETSc_opt_25-09-2023_09.41.50.log
Description: Binary data