Re: [petsc-users] Info; build petsc-3.20.2 with llvm check fails

2025-02-20 Thread Satish Balay
A couple of alternates (if mixing compiler versions can't be avoided): - don't need to use petsc from fortran: [balay@frog petsc]$ ./configure --with-cc=clang --with-cxx=clang++ --with-fc=0 --with-mpi=0 --download-f2cblaslapack && make && make check - don't use c++: [balay@frog petsc]$ ./configu

Re: [petsc-users] Info; build petsc-3.20.2 with llvm check fails

2025-02-20 Thread Satish Balay
Ok - I see this issue on CentOS [Stream/9]. What I have is: >>> [balay@frog petsc]$ clang --version clang version 19.1.7 (CentOS 19.1.7-1.el9) Target: x86_64-redhat-linux-gnu Thread model: posix InstalledDir: /usr/bin Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg [balay@frog pet

Re: [petsc-users] Info; build petsc-3.20.2 with llvm check fails

2025-02-20 Thread Satish Balay
Actually, simpler: ./configure --with-cc=clang --with-cxx=clang++ --with-fc=gfortran --with-mpi=0 --download-fblaslapack="$(DIR_SRC)/fblaslapack-$(FBLASLAPACK_VERSION).tar.gz" && make && make check > /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../bin/ld Hm - ther

Re: [petsc-users] Info; build petsc-3.20.2 with llvm check fails

2025-02-20 Thread Satish Balay
Any particular reason to use these flags? What clang version? OS? Best if you can send build logs [perhaps to petsc-maint] Can you try a simpler build and see if it works: ./configure --with-mpi-dir=/PATH_TO/models/src/v2021.03-2.0.3-llvm --download-fblaslapack="$(DIR_SRC)/fblaslapack-$(FBLASL

[petsc-users] Info; build petsc-3.20.2 with llvm check fails

2025-02-20 Thread Michael Schaferkotter
build petsc-3.20.3 with llvm, clang, clang++, gfortran CFLAGS='-std=c++11' CXXFLAGS='-std=c++11 -D_GLIBCXX_USE_CXX11_ABI=1' LDLIBS += -lstdc++ $PETSC_ARCH arch-linux-c-opt MPIF90 = ./models/src/v2021.03-2.0.3-llvm/bin/mpif90 MPICC = ./models/src/v2021.03-2.0.3-llvm/bin/mpicc CLANG = cla

Re: [petsc-users] kokkos and include flags

2025-02-20 Thread Satish Balay
I'm glad you have it working now! Thanks for the update! Satish On Thu, 20 Feb 2025, Steven Dargaville wrote: > My apologies, that does seem to have fixed the problem, the build rules in > my tests were overriding the new variables. > > Thanks for your help in sorting that out! > Steven > > On

Re: [petsc-users] kokkos and include flags

2025-02-20 Thread Steven Dargaville
My apologies, that does seem to have fixed the problem, the build rules in my tests were overriding the new variables. Thanks for your help in sorting that out! Steven On Thu, 20 Feb 2025 at 11:36, Steven Dargaville wrote: > Thanks for the reply! I've tried that and again it doesn't seem to wor

Re: [petsc-users] kokkos and include flags

2025-02-20 Thread Steven Dargaville
Thanks for the reply! I've tried that and again it doesn't seem to work for the kokkos files. I went a bit overboard and set every variable I could find but it doesn't seem to change the kokkos compilation, despite some of those flags definitely being present in the kokkos compile targets. CPPFLAG