I'm glad you now have a working build!
BTW: Since you have flang installed - a build with it - i.e. with
clang/clang++/flang might also work [instead of clang/clang++/gfortran]
However flang usage is still nascent (likely some fortran examples fail with
it) - if you are using PETSc from fortran
Satish;
Thank you for the masterful demonstration.
One of the alternatives caught my eye: —with-cxx=0 (I remember I had to do
that ages ago on my macOS Darwin machine.
I cleared *FLAGS and successfully completed make && make check as suggested;
#==