<div dir="ltr"><div>I updated brew llvm to the latest clang <br></div><div><br></div><div>Homebrew clang version 20.1.3<br>Target: arm64-apple-darwin24.3.0<br>Thread model: posix<br>InstalledDir: /opt/homebrew/Cellar/llvm/20.1.3/bin<br>Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin24.cfg</div><div><br></div><div>and that seems happier with gfortran. I'm guessing that updating my mac OS to sequoia mixed stuff up. <br></div><div><br></div><div><br></div><div><br></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 29, 2025 at 8:24 AM Jeffrey Hyman <<a href="mailto:hymanjd@gmail.com" target="_blank">hymanjd@gmail.com</a>> wrote:<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 dir="ltr"><div>I had tried with clang as well, but was getting this error. Looks like something with the arm64. Maybe remove and reinstall gfortran? <br></div><div><br></div><div>=============================================================================================<br>TESTING: checkFortranNameMangling from config.compilers(config/BuildSystem/config/compilers.py:78<br>*********************************************************************************************<br> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>---------------------------------------------------------------------------------------------<br> Unknown Fortran name mangling: Are you sure the C and Fortran compilers are compatible?<br> Perhaps one is 64-bit and one is 32-bit?<br> See <a href="https://urldefense.us/v3/__https://petsc.org/release/faq/*macos-gfortran__;Iw!!G_uCfscf7eWS!eOGIZBglRTyAqGPZjsQteapurc4MudjMoQSKLVO4_iZKSP4tSySZOXrnSxaBUkWrRUp0P6e_6aEWlBLvCS3W$" target="_blank">https://petsc.org/release/faq/#macos-gfortran</a><br>*********************************************************************************************<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 29, 2025 at 7:56 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<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 dir="ltr"><div dir="ltr">On Mon, Apr 28, 2025 at 10:02 PM Satish Balay <<a href="mailto:balay.anl@fastmail.org" target="_blank">balay.anl@fastmail.org</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">What do you have for:<br>
<br>
clang --version<br>
<br>
Try:<br>
<br>
./configure COPTFLAGS=-O3 CXXOPTFLAGS=-O3 FOPTFLAGS="-O3 -Wno-unused-function -fallow-argument-mismatch" \<br>
--with-debugging=no --download-mpich=<a href="https://urldefense.us/v3/__https://www.mpich.org/static/downloads/4.3.0/mpich-4.3.0.tar.gz__;!!G_uCfscf7eWS!eOGIZBglRTyAqGPZjsQteapurc4MudjMoQSKLVO4_iZKSP4tSySZOXrnSxaBUkWrRUp0P6e_6aEWlGYmDZV0$" rel="noreferrer" target="_blank">https://www.mpich.org/static/downloads/4.3.0/mpich-4.3.0.tar.gz</a> \<br>
--download-hdf5=yes --with-hdf5-fortran-bindings=yes --download-fblaslapack=yes \<br>
--download-metis=yes --download-parmetis=yes \<br>
CC=gcc-14 CXX=g++-14 FC=gfortran-14 --download-make=yes \<br>
--download-cmake=<a href="https://urldefense.us/v3/__https://gitlab.kitware.com/cmake/cmake/-/archive/v3.31.7/cmake-v3.31.7.tar.gz__;!!G_uCfscf7eWS!eOGIZBglRTyAqGPZjsQteapurc4MudjMoQSKLVO4_iZKSP4tSySZOXrnSxaBUkWrRUp0P6e_6aEWlEnHGC_5$" rel="noreferrer" target="_blank">https://gitlab.kitware.com/cmake/cmake/-/archive/v3.31.7/cmake-v3.31.7.tar.gz</a> \<br>
--download-cmake-cc=clang --download-cmake-cxx=clang++<br></blockquote><div><br></div><div>You could use clang. Your g++ is broken:<br></div><div><br></div><div>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Error when bootstrapping CMake:</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Problem while running make</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">---------------------------------------------</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Log of errors: /Users/hymanjd/src/petsc/arch-darwin-c-debug/externalpackages/cmake-3.29.0/Bootstrap.cmk/cmake_bootstrap.log</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">---------------------------------------------</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">stdout:</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">In file included from /opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/ext/string_conversions.h:43,</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>from /opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/bits/basic_string.h:4154,</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>from /opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/string:54,</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>from /Users/hymanjd/src/petsc/arch-darwin-c-debug/externalpackages/cmake-3.29.0/Source/cmTimestamp.h:9,</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>from /Users/hymanjd/src/petsc/arch-darwin-c-debug/externalpackages/cmake-3.29.0/Source/cmTimestamp.cxx:15:</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">/opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/cstdlib:141:11: error: 'at_quick_exit' has not been declared in '::'</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>141 | <span> </span>using ::at_quick_exit;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>| <span> </span>^~~~~~~~~~~~~</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">/opt/homebrew/Cellar/gcc/14.2.0_1/include/c++/14/cstdlib:164:11: error: 'quick_exit' has not been declared in '::'</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>164 | <span> </span>using ::quick_exit;</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>| <span> </span>^~~~~~~~~~</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make: *** [cmTimestamp.o] Error 1</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">make: *** Waiting for unfinished jobs....</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-size-adjust:none;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span> </span>Error running configure on CMAKE: Could not execute "['./configure --prefix=/Users/hymanjd/src/petsc/arch-darwin-c-debug --parallel=8 CC="/opt/homebrew/bin/gcc-14" CXX="/opt/homebrew/bin/g++-14" -- -DCMAKE_USE_OPENSSL=OFF']":</span></p></div><div> </div><div>Anything that includes <string> looks like it will break.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Satish<br>
<br>
On Mon, 28 Apr 2025, Jeffrey Hyman wrote:<br>
<br>
> Thanks, I'll give it a spin and let you know how it goes.<br>
> <br>
> JDH<br>
> <br>
> On Mon, Apr 28, 2025 at 8:43 PM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>> wrote:<br>
> <br>
> > On Mon, Apr 28, 2025 at 8:34 PM Jeffrey Hyman <<a href="mailto:hymanjd@gmail.com" target="_blank">hymanjd@gmail.com</a>> wrote:<br>
> ><br>
> >> Hi,<br>
> >><br>
> >> I am trying to build v3.21.5 to use with pflotran. I'm running into<br>
> >> issues with cmake. configure log attached. Any suggestions?<br>
> >><br>
> ><br>
> > The documentation could be clearer here. We cannot use the PETSc compilers<br>
> > to build CMake since it explicitly does not want MPI. Thus you need to<br>
> > specify them yourself. That means you would need<br>
> ><br>
> > --download-cmake-cc=/opt/homebrew/bin/gcc-14<br>
> > --download-cmake-cxx=/opt/homebrew/bin/g++-14<br>
> ><br>
> > Thanks,<br>
> ><br>
> > Matt<br>
> ><br>
> ><br>
> >> Thanks for the help,<br>
> >> Jeffrey<br>
> >><br>
> >><br>
> ><br>
> > --<br>
> > What most experimenters take for granted before they begin their<br>
> > experiments is infinitely more interesting than any results to which their<br>
> > experiments lead.<br>
> > -- Norbert Wiener<br>
> ><br>
> > <a href="https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bZa6EMKsRCbKBAnduL8Vva4vRPvbjUsz_v4OKJW8-c8D8gQcN4fZPfrAaQfZ37j1kQzigfg-TVDeQNOczHyI$" rel="noreferrer" target="_blank">https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bZa6EMKsRCbKBAnduL8Vva4vRPvbjUsz_v4OKJW8-c8D8gQcN4fZPfrAaQfZ37j1kQzigfg-TVDeQNOczHyI$</a> <br>
> > <<a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bZa6EMKsRCbKBAnduL8Vva4vRPvbjUsz_v4OKJW8-c8D8gQcN4fZPfrAaQfZ37j1kQzigfg-TVDeQKP18rKz$" rel="noreferrer" target="_blank">https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!bZa6EMKsRCbKBAnduL8Vva4vRPvbjUsz_v4OKJW8-c8D8gQcN4fZPfrAaQfZ37j1kQzigfg-TVDeQKP18rKz$</a> ><br>
> ><br>
> </blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eOGIZBglRTyAqGPZjsQteapurc4MudjMoQSKLVO4_iZKSP4tSySZOXrnSxaBUkWrRUp0P6e_6aEWlGVMI_52$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div>