<div dir="ltr">OK, trying to use clang12. Installed it with brew and xcode clang (v13) and they both give this version error.<div>Using C++ dialect c++14 as lower bound due to package(s):<br>- kokkos<br>But C++ compiler (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++) appears non-compliant with c++14 or didn't accept:<br>- -std=gnu++17<br>- -std=c++17<br>- -std=gnu++14<br>- -std=c++14<br>*******************************************************************************<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 9, 2021 at 8:57 AM Satish Balay <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</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">My build is with xcode clang - not brew clang<br>
<br>
Satish<br>
<br>
On Thu, 9 Dec 2021, Mark Adams wrote:<br>
<br>
> Mpich seems to give the same error.<br>
> I use clang 13.0. I think I get that from homebrew.<br>
> Should I try something like:<br>
> brew install llvm@12<br>
> <br>
> I see:<br>
> <br>
> (conda_env) 07:50 adams/fix_mat_ex5k= ~/Codes/petsc2$ brew info llvm<br>
> llvm: stable 13.0.0 (bottled), HEAD [keg-only]<br>
> Next-gen compiler infrastructure<br>
> <a href="https://llvm.org/" rel="noreferrer" target="_blank">https://llvm.org/</a><br>
> Not installed<br>
> From: <a href="https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/llvm.rb" rel="noreferrer" target="_blank">https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/llvm.rb</a><br>
> License: Apache-2.0 with LLVM-exception<br>
> ==> Dependencies<br>
> Build: cmake ✔, swig ✘<br>
> Required: python@3.10 ✘<br>
> ==> Options<br>
> --HEAD<br>
> Install HEAD version<br>
> ==> Caveats<br>
> To use the bundled libc++ please add the following LDFLAGS:<br>
>   LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"<br>
> <br>
> llvm is keg-only, which means it was not symlinked into /usr/local,<br>
> because macOS already provides this software and installing another version<br>
> in<br>
> parallel can cause all kinds of trouble.<br>
> <br>
> ==> Analytics<br>
> install: 32,204 (30 days), 98,525 (90 days), 299,560 (365 days)<br>
> install-on-request: 17,978 (30 days), 62,171 (90 days), 212,999 (365 days)<br>
> build-error: 2,696 (30 days)<br>
> <br>
> <br>
> On Wed, Dec 8, 2021 at 1:30 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> <br>
> > This build goes through fine for me. [with petsc/main]<br>
> ><br>
> > xpro:petsc balay$ sw_vers<br>
> > ProductName:    Mac OS X<br>
> > ProductVersion: 10.15.7<br>
> > BuildVersion:   19H1519<br>
> > xpro:petsc balay$  clang --version<br>
> > Apple clang version 12.0.0 (clang-1200.0.32.2)<br>
> > <snip><br>
> > xpro:petsc balay$ ./configure --download-mpich --with-fc=0 COPTFLAGS="-g<br>
> > -O" CXXOPTFLAGS="-g -O" --with-fortran-bindings=0 --download-kokkos=1<br>
> > --download-kokkos-kernels=1 --with-kokkos-kernels-tpl=0  --with-zlib=1<br>
> > --with-x=0<br>
> ><br>
> > Satish<br>
> ><br>
> ><br>
> > On Wed, 8 Dec 2021, Jacob Faibussowitsch wrote:<br>
> ><br>
> > > > And your algorithm looks idempotent to me....<br>
> > ><br>
> > > Believe me, I was sufficiently shocked when everything magically started<br>
> > working the 3rd time around :)<br>
> > ><br>
> > > Best regards,<br>
> > ><br>
> > > Jacob Faibussowitsch<br>
> > > (Jacob Fai - booss - oh - vitch)<br>
> > ><br>
> > > > On Dec 8, 2021, at 09:29, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
> > > ><br>
> > > > Thanks,<br>
> > > > And your algorithm looks idempotent to me....<br>
> > > ><br>
> > > ><br>
> > > > On Wed, Dec 8, 2021 at 9:13 AM Jacob Faibussowitsch <<br>
> > <a href="mailto:jacob.fai@gmail.com" target="_blank">jacob.fai@gmail.com</a> <mailto:<a href="mailto:jacob.fai@gmail.com" target="_blank">jacob.fai@gmail.com</a>>> wrote:<br>
> > > > So I had similar issues back when I originally wrote the clang linter<br>
> > — on Big Sur. The TL;DR for me was that Catalina originally shipped with<br>
> > broken cmath headers, something future updates wouldn’t necessarily fix.<br>
> > The only way to fix it was to:<br>
> > > ><br>
> > > > 1. Reinstall CLT<br>
> > > > 2. Reinstall/install Xcode<br>
> > > > 3. Repeat the above until it was fixed<br>
> > > ><br>
> > > > Now you may have an unrelated issue, but my error messages (e.g. about<br>
> > missing “signbit”, “std::less_than”, etc in global namespace) were very<br>
> > very similar. See discussions here:<br>
> > > ><br>
> > > > 1. <a href="https://gitlab.com/petsc/petsc/-/merge_requests/3773" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/merge_requests/3773</a> <<br>
> > <a href="https://gitlab.com/petsc/petsc/-/merge_requests/3773" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/merge_requests/3773</a>><br>
> > > > 2.<br>
> > <a href="https://stackoverflow.com/questions/58628377/catalina-c-using-cmath-headers-yield-error-no-member-named-signbit-in-th" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/58628377/catalina-c-using-cmath-headers-yield-error-no-member-named-signbit-in-th</a><br>
> > <<br>
> > <a href="https://stackoverflow.com/questions/58628377/catalina-c-using-cmath-headers-yield-error-no-member-named-signbit-in-th" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/58628377/catalina-c-using-cmath-headers-yield-error-no-member-named-signbit-in-th</a><br>
> > ><br>
> > > > 3.<br>
> > <a href="https://stackoverflow.com/questions/58313047/cannot-compile-r-packages-with-c-code-after-updating-to-macos-catalina" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/58313047/cannot-compile-r-packages-with-c-code-after-updating-to-macos-catalina</a><br>
> > <<br>
> > <a href="https://stackoverflow.com/questions/58313047/cannot-compile-r-packages-with-c-code-after-updating-to-macos-catalina" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/58313047/cannot-compile-r-packages-with-c-code-after-updating-to-macos-catalina</a><br>
> > ><br>
> > > ><br>
> > > > If these help then you’re lucky I never clean out my “misc” bookmarks<br>
> > folder :)<br>
> > > ><br>
> > > > Best regards,<br>
> > > ><br>
> > > > Jacob Faibussowitsch<br>
> > > > (Jacob Fai - booss - oh - vitch)<br>
> > > ><br>
> > > >> On Dec 8, 2021, at 09:06, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a> <mailto:<br>
> > <a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>>> wrote:<br>
> > > >><br>
> > > >> Monterey.<br>
> > > >> And my serial, optimized build works but it seems to use the same<br>
> > compiler.<br>
> > > >> I am testing the parallel build again with debug turned off.<br>
> > > >><br>
> > > >> On Wed, Dec 8, 2021 at 9:04 AM Jacob Faibussowitsch <<br>
> > <a href="mailto:jacob.fai@gmail.com" target="_blank">jacob.fai@gmail.com</a> <mailto:<a href="mailto:jacob.fai@gmail.com" target="_blank">jacob.fai@gmail.com</a>>> wrote:<br>
> > > >> You aren’t by chance on Catalina are you?<br>
> > > >><br>
> > > >> Best regards,<br>
> > > >><br>
> > > >> Jacob Faibussowitsch<br>
> > > >> (Jacob Fai - booss - oh - vitch)<br>
> > > >><br>
> > > >>> On Dec 8, 2021, at 08:49, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a> <mailto:<br>
> > <a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>>> wrote:<br>
> > > >>><br>
> > > >>> I am failing on OSX with openmpi. Kokkos is failing to build.<br>
> > > >>> I seem to be using:<br>
> > > >>><br>
> > > >>> (conda_env) 08:46 1 adams/fix_mat_ex5k *= ~/Codes/petsc2$<br>
> > /usr/local/Cellar/open-mpi/4.1.1_2/bin/mpicxx --version<br>
> > > >>> Apple clang version 13.0.0 (clang-1300.0.29.3)<br>
> > > >>> Target: x86_64-apple-darwin21.1.0<br>
> > > >>> Thread model: posix<br>
> > > >>> InstalledDir:<br>
> > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin<br>
> > > >>><br>
> > > >>> Any ideas?<br>
> > > >>> Thanks,<br>
> > > >>> Mark<br>
> > > >>> <configure.log><br>
> > > >><br>
> > > ><br>
> > ><br>
> > ><br>
> ><br>
> <br>
</blockquote></div>