[petsc-dev] Kokkos build fail

Satish Balay balay at mcs.anl.gov
Thu Dec 9 07:57:21 CST 2021


My build is with xcode clang - not brew clang

Satish

On Thu, 9 Dec 2021, Mark Adams wrote:

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


More information about the petsc-dev mailing list