<div dir="ltr">Ah, you have zlib=1. Now hdf5 fails.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 13, 2020 at 1:19 PM 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">And here is a p4est build.<br>
<br>
Satish<br>
--------<br>
<br>
balay@kpro petsc % ./configure --with-mpi-dir=$HOME/soft/mpich-3.3.2 --with-zlib=1 --download-p4est<br>
===============================================================================<br>
             Configuring PETSc to compile on your system                       <br>
===============================================================================<br>
===============================================================================                                                                                           ***** WARNING: You have an older version of Gnu make, it will work,                                                                                                 but may not support all the parallel testing options. You can install the                                                                                           latest Gnu make with your package manager, such as brew or macports, or use                                                                                         the --download-make option to get the latest Gnu make *****                                                                                                   ===============================================================================                                                                                     ======<br>
 =========================================================================                                                                                           Trying to download git://<a href="https://bitbucket.org/petsc/pkg-sowing.git" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/pkg-sowing.git</a> for SOWING                                                                                ===============================================================================                                                                                     ===============================================================================                                                                                           Running configure on SOWING; this may take several minutes                                                                                                    ===============================================================================                                                                                     ===========<br>
 ====================================================================                                                                                           Running make on SOWING; this may take several minutes                                                                                                         ===============================================================================                                                                                     ===============================================================================                                                                                           Running make install on SOWING; this may take several minutes                                                                                                 ===============================================================================                                                                                     ================<br>
 ===============================================================                                                                                           Trying to download git://<a href="https://github.com/tisaac/p4est" rel="noreferrer" target="_blank">https://github.com/tisaac/p4est</a> for P4EST                                                                                            ===============================================================================                                                                                     ===============================================================================                                                                                           Trying to bootstrap p4est using autotools; this may take several minutes                                                                                      ===============================================================================                                                                                     =====================<br>
 ==========================================================                                                                                           Running configure on P4EST; this may take several minutes                                                                                                     ===============================================================================                                                                                     ===============================================================================                                                                                           Running make on P4EST; this may take several minutes                                                                                                          ===============================================================================                                                                                     ==========================<br>
 =====================================================                                                                                           Running make install on P4EST; this may take several minutes                                                                                                  ===============================================================================                                                                                     Compilers:                                                                                                                                                          <br>
  C Compiler:         /Users/balay/soft/mpich-3.3.2/bin/mpicc  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3 <br>
    Version: Apple clang version 11.0.0 (clang-1100.0.33.8)<br>
  C++ Compiler:       /Users/balay/soft/mpich-3.3.2/bin/mpicxx  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -fvisibility=hidden -g   <br>
    Version: Apple clang version 11.0.0 (clang-1100.0.33.8)<br>
  Fortran Compiler:   /Users/balay/soft/mpich-3.3.2/bin/mpif90  -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -g  <br>
    Version: GNU Fortran (Homebrew GCC 9.3.0) 9.3.0<br>
Linkers:<br>
  Shared linker:   /Users/balay/soft/mpich-3.3.2/bin/mpicc  -dynamiclib -single_module -undefined dynamic_lookup -multiply_defined suppress  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3<br>
  Dynamic linker:   /Users/balay/soft/mpich-3.3.2/bin/mpicc  -dynamiclib -single_module -undefined dynamic_lookup -multiply_defined suppress  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3<br>
  Libraries linked against:   -lc++ -ldl <br>
make:<br>
  Version:  3.81<br>
  /usr/bin/make<br>
BlasLapack:<br>
  Library:  -llapack -lblas<br>
  Unknown if this uses OpenMP (try export OMP_NUM_THREADS=<1-4> yourprogram -log_view) <br>
  uses 4 byte integers<br>
MPI:<br>
  Version:  3<br>
  Includes: -I/Users/balay/soft/mpich-3.3.2/include<br>
  Mpiexec: /Users/balay/soft/mpich-3.3.2/bin/mpiexec<br>
  MPICH_NUMVERSION: 30302300<br>
pthread:<br>
X:<br>
  Includes: -I/opt/X11/include<br>
  Library:  -Wl,-rpath,/opt/X11/lib -L/opt/X11/lib -lX11<br>
zlib:<br>
  Library:  -lz<br>
cmake:<br>
  Version:  3.16.5<br>
  /usr/local/bin/cmake<br>
regex:<br>
p4est:<br>
  Includes: -I/Users/balay/petsc/arch-darwin-c-debug/include<br>
  Library:  -Wl,-rpath,/Users/balay/petsc/arch-darwin-c-debug/lib -L/Users/balay/petsc/arch-darwin-c-debug/lib -lp4est -lsc<br>
sowing:<br>
  Version:  1.1.25<br>
  /Users/balay/petsc/arch-darwin-c-debug/bin/bfort<br>
  Language used to compile PETSc: C<br>
PETSc:<br>
  PETSC_ARCH: arch-darwin-c-debug<br>
  PETSC_DIR: /Users/balay/petsc<br>
  Scalar type: real<br>
  Precision: double<br>
  Integer size: 4 bytes<br>
  shared libraries: enabled<br>
  Memory alignment from malloc(): 16 bytes<br>
xxx=========================================================================xxx<br>
 Configure stage complete. Now build PETSc libraries with:<br>
   make PETSC_DIR=/Users/balay/petsc PETSC_ARCH=arch-darwin-c-debug all<br>
xxx=========================================================================xxx<br>
balay@kpro petsc % <br>
<br>
<br>
On Mon, 13 Apr 2020, Satish Balay via petsc-users wrote:<br>
<br>
> you haven't sent any logs for this issue..<br>
> [../arch-macosx-gnu-O-omp.py script or configure.log with the failure]<br>
> <br>
> Satish<br>
> <br>
> -------<br>
> ipro:petsc balay$ ./configure --with-fortran-bindings=0 --with-mpi=0 --with-zlib=1<br>
> ===============================================================================<br>
>              Configuring PETSc to compile on your system                       <br>
> ===============================================================================<br>
> ===============================================================================                                                                                           ***** WARNING: You have an older version of Gnu make, it will work,                                                                                                 but may not support all the parallel testing options. You can install the                                                                                           latest Gnu make with your package manager, such as brew or macports, or use                                                                                         the --download-make option to get the latest Gnu make *****                                                                                                   ===============================================================================                                                                                     Comp<br>
 il<br>
>  ers:                                                                                                                                                          <br>
>   C Compiler:         gcc  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3 <br>
>     Version: Apple clang version 11.0.3 (clang-1103.0.32.29)<br>
>   C++ Compiler:       g++  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -fvisibility=hidden -g   -std=c++14<br>
>     Version: Apple clang version 11.0.3 (clang-1103.0.32.29)<br>
>   Fortran Compiler:   gfortran  -Wall -ffree-line-length-0 -Wno-unused-dummy-argument -g  <br>
>     Version: GNU Fortran (Homebrew GCC 9.3.0) 9.3.0<br>
> Linkers:<br>
>   Shared linker:   gcc  -dynamiclib -single_module -undefined dynamic_lookup -multiply_defined suppress  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3<br>
>   Dynamic linker:   gcc  -dynamiclib -single_module -undefined dynamic_lookup -multiply_defined suppress  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -fstack-protector -fno-stack-check -Qunused-arguments -fvisibility=hidden -g3<br>
>   Libraries linked against:   -lc++ -ldl <br>
> make:<br>
>   Version:  3.81<br>
>   /usr/bin/make<br>
> BlasLapack:<br>
>   Library:  -llapack -lblas<br>
>   Unknown if this uses OpenMP (try export OMP_NUM_THREADS=<1-4> yourprogram -log_view) <br>
>   uses 4 byte integers<br>
> pthread:<br>
> zlib:<br>
>   Library:  -lz<br>
> cmake:<br>
>   Version:  3.16.5<br>
>   /usr/local/bin/cmake<br>
> X:<br>
>   Includes: -I/opt/X11/include<br>
>   Library:  -Wl,-rpath,/opt/X11/lib -L/opt/X11/lib -lX11<br>
> regex:<br>
>   Language used to compile PETSc: C<br>
> PETSc:<br>
>   PETSC_ARCH: arch-darwin-c-debug<br>
>   PETSC_DIR: /Users/balay/petsc<br>
>   Scalar type: real<br>
>   Precision: double<br>
>   Integer size: 4 bytes<br>
>   shared libraries: enabled<br>
>   Memory alignment from malloc(): 16 bytes<br>
> xxx=========================================================================xxx<br>
>  Configure stage complete. Now build PETSc libraries with:<br>
>    make PETSC_DIR=/Users/balay/petsc PETSC_ARCH=arch-darwin-c-debug all<br>
> xxx=========================================================================xxx<br>
> ipro:petsc balay$                                                                                                                                                   <br>
> <br>
> <br>
> <br>
> On Mon, 13 Apr 2020, Mark Adams wrote:<br>
> <br>
> > On Mon, Apr 13, 2020 at 12:48 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
> > <br>
> > > This is very funky<br>
> > ><br>
> > > >>><br>
> > > Configure Options: --configModules=PETSc.Configure<br>
> > > --optionsModule=config.compilerOptions<br>
> > > --with-mpi-dir=/usr/local/Cellar/mpich/3.3.2 COPTFLAGS="-O2 -g<br>
> > > -Xpreprocessor -fopenmp -I"$(brew --prefix libomp)/include" -L"$(brew<br>
> > > --prefix libomp)/lib -lomp"" CXXOPTFLAGS="-O2 -g -Xpreprocessor -fopenmp<br>
> > > -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib -lomp""<br>
> > > FOPTFLAGS="-O2 -g -Xpreprocessor -fopenmp -I"$(brew --prefix<br>
> > > libomp)/include" -L"$(brew --prefix libomp)/lib -lomp""<br>
> > > --download-parmetis=1 --download-metis=1 --download-hypre=1<br>
> > > --download-triangle=1 --download-p4est=1 --download-zlib --with-x=0<br>
> > > --download-ctetgen --with-debugging=0 --download-hdf5=1<br>
> > > PETSC_ARCH=arch-macosx-gnu-O-omp --with-openmp=1 --with-log=0<br>
> > > --with-threadsafety --download-chaco<br>
> > > <<<<br>
> > ><br>
> > > -I"$(brew --prefix libomp)/include" type options to configure doesn't make<br>
> > > sense. You are using bash syntax here - and expecting configure to resolve<br>
> > > it. Its best for your bash shell to evaluate this before passing this info<br>
> > > to configure<br>
> > ><br>
> > > Also --download-zlib isn't needed on OSX<br>
> > ><br>
> > <br>
> > Hum, I get:<br>
> > <br>
> > 12:52 mark/feature-xgc-interface-rebase *= ~/Codes/petsc$<br>
> >  ../arch-macosx-gnu-O-omp.py<br>
> > ===============================================================================<br>
> >              Configuring PETSc to compile on your system<br>
> > <br>
> > ===============================================================================<br>
> > TESTING: configureExternalPackagesDir from<br>
> > config.framework(config/BuildSystem/config/framework.py:911)<br>
> > <br>
> > <br>
> >  *******************************************************************************<br>
> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for<br>
> > details):<br>
> > -------------------------------------------------------------------------------<br>
> > Package p4est requested but dependency zlib not requested. Perhaps you want<br>
> > --download-zlib<br>
> > *******************************************************************************<br>
> > <br>
> > <br>
> > <br>
> > ><br>
> > > Satish<br>
> > ><br>
> > ><br>
> > > On Mon, 13 Apr 2020, Mark Adams wrote:<br>
> > ><br>
> > > > Now that I look at it, I see:<br>
> > > ><br>
> > > > CFLAGS="-fstack-protector -fno-stack-check -Qunused-arguments -O2 -g<br>
> > > > -Xpreprocessor -fopenmp -I"$(brew --prefix libomp)/include" -L"$(brew<br>
> > > > --prefix libomp)/lib -lomp""<br>
> > > > prefix="/Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp"<br>
> > > ><br>
> > > > Note the two ". That does not look right. I use<br>
> > > ><br>
> > > > 'COPTFLAGS=-O2 -g  -Xpreprocessor -fopenmp -I"$(brew --prefix<br>
> > > > libomp)/include" -L"$(brew --prefix libomp)/lib -lomp" ',<br>
> > > ><br>
> > > > I know how to do stuff like:<br>
> > > ><br>
> > > > '--with-blaslapack-lib=-L' + os.environ['OLCF_NETLIB_LAPACK_ROOT'] +<br>
> > > > '/lib64 -lblas -llapack'<br>
> > > ><br>
> > > > Is there like and os.exec that I could use like this for my FLAGS?<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > On Mon, Apr 13, 2020 at 11:46 AM Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>><br>
> > > wrote:<br>
> > > ><br>
> > > > > On Mon, Apr 13, 2020 at 11:34 AM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
> > > > ><br>
> > > > >> I get this error configuring zlib, osx, with OpenMP.<br>
> > > > >> Any ideas?<br>
> > > > >><br>
> > > > ><br>
> > > > > This failed without output<br>
> > > > ><br>
> > > > > Executing: cd<br>
> > > > ><br>
> > > /Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp/externalpackages/zlib-1.2.11<br>
> > > > > && CC="/usr/local/Cellar/mpich/3.3.2/bin/mpicc"<br>
> > > CFLAGS="-fstack-protector<br>
> > > > > -fno-stack-check -Qunused-arguments -O2 -g -Xpreprocessor -fopenmp<br>
> > > > > -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib<br>
> > > -lomp""<br>
> > > > > prefix="/Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp"<br>
> > > ./configure  &&<br>
> > > > > /usr/bin/make -j7 -l12.0 &&  /usr/bin/make install<br>
> > > > ><br>
> > > > > So execute each step in turn and see what fails.<br>
> > > > ><br>
> > > > >   Thanks,<br>
> > > > ><br>
> > > > >      Matt<br>
> > > > ><br>
> > > > ><br>
> > > > >> Thanks,<br>
> > > > >> Mark<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<br>
> > > their<br>
> > > > > experiments lead.<br>
> > > > > -- Norbert Wiener<br>
> > > > ><br>
> > > > > <a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
> > > > > <<a href="http://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">http://www.cse.buffalo.edu/~knepley/</a>><br>
> > > > ><br>
> > > ><br>
> > ><br>
> > ><br>
> > <br>
> <br>
</blockquote></div>