[petsc-users] error with xlib

Mark Adams mfadams at lbl.gov
Mon Apr 13 11:32:09 CDT 2020


Now that I look at it, I see:

CFLAGS="-fstack-protector -fno-stack-check -Qunused-arguments -O2 -g
-Xpreprocessor -fopenmp -I"$(brew --prefix libomp)/include" -L"$(brew
--prefix libomp)/lib -lomp""
prefix="/Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp"

Note the two ". That does not look right. I use

'COPTFLAGS=-O2 -g  -Xpreprocessor -fopenmp -I"$(brew --prefix
libomp)/include" -L"$(brew --prefix libomp)/lib -lomp" ',

I know how to do stuff like:

'--with-blaslapack-lib=-L' + os.environ['OLCF_NETLIB_LAPACK_ROOT'] +
'/lib64 -lblas -llapack'

Is there like and os.exec that I could use like this for my FLAGS?



On Mon, Apr 13, 2020 at 11:46 AM Matthew Knepley <knepley at gmail.com> wrote:

> On Mon, Apr 13, 2020 at 11:34 AM Mark Adams <mfadams at lbl.gov> wrote:
>
>> I get this error configuring zlib, osx, with OpenMP.
>> Any ideas?
>>
>
> This failed without output
>
> Executing: cd
> /Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp/externalpackages/zlib-1.2.11
> && CC="/usr/local/Cellar/mpich/3.3.2/bin/mpicc" CFLAGS="-fstack-protector
> -fno-stack-check -Qunused-arguments -O2 -g -Xpreprocessor -fopenmp
> -I"$(brew --prefix libomp)/include" -L"$(brew --prefix libomp)/lib -lomp""
> prefix="/Users/markadams/Codes/petsc/arch-macosx-gnu-O-omp" ./configure  &&
> /usr/bin/make -j7 -l12.0 &&  /usr/bin/make install
>
> So execute each step in turn and see what fails.
>
>   Thanks,
>
>      Matt
>
>
>> Thanks,
>> Mark
>>
>
>
> --
> What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> -- Norbert Wiener
>
> https://www.cse.buffalo.edu/~knepley/
> <http://www.cse.buffalo.edu/~knepley/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200413/2b0b09d5/attachment-0001.html>


More information about the petsc-users mailing list