<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 13, 2020 at 12:48 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">This is very funky<br>
<br>
>>><br>
Configure Options: --configModules=PETSc.Configure --optionsModule=config.compilerOptions --with-mpi-dir=/usr/local/Cellar/mpich/3.3.2 COPTFLAGS="-O2 -g  -Xpreprocessor -fopenmp -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib -lomp"" CXXOPTFLAGS="-O2 -g -Xpreprocessor -fopenmp -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib -lomp"" FOPTFLAGS="-O2 -g -Xpreprocessor -fopenmp -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib -lomp"" --download-parmetis=1 --download-metis=1 --download-hypre=1 --download-triangle=1 --download-p4est=1 --download-zlib --with-x=0 --download-ctetgen --with-debugging=0 --download-hdf5=1 PETSC_ARCH=arch-macosx-gnu-O-omp --with-openmp=1 --with-log=0 --with-threadsafety --download-chaco<br>
<<<<br>
<br>
-I"$(brew --prefix libomp)/include" type options to configure doesn't make sense. You are using bash syntax here - and expecting configure to resolve it. Its best for your bash shell to evaluate this before passing this info to configure<br>
<br>
Also --download-zlib isn't needed on OSX<br></blockquote><div><br></div><div>Hum, I get:</div><div><br></div><div>12:52 mark/feature-xgc-interface-rebase *= ~/Codes/petsc$  ../arch-macosx-gnu-O-omp.py <br>===============================================================================<br>             Configuring PETSc to compile on your system                       <br>===============================================================================<br>TESTING: configureExternalPackagesDir from config.framework(config/BuildSystem/config/framework.py:911)                                                                                                                                          *******************************************************************************<br>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>-------------------------------------------------------------------------------<br>Package p4est requested but dependency zlib not requested. Perhaps you want --download-zlib<br>*******************************************************************************<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<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>> 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>
> > /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" CFLAGS="-fstack-protector<br>
> > -fno-stack-check -Qunused-arguments -O2 -g -Xpreprocessor -fopenmp<br>
> > -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib -lomp""<br>
> > prefix="/Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp" ./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 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>
</blockquote></div></div>