[petsc-users] Cannot find a C preprocessor OSX

Denis Davydov davydden at gmail.com
Sat Mar 19 13:30:43 CDT 2016


> On 19 Mar 2016, at 18:15, Satish Balay <balay at mcs.anl.gov> wrote:
> 
> On Sat, 19 Mar 2016, Denis Davydov wrote:
> 
>> 
>>> On 19 Mar 2016, at 17:38, Matthew Knepley <knepley at gmail.com> wrote:
>>> 
>>> On Sat, Mar 19, 2016 at 11:29 AM, Satish Balay <balay at mcs.anl.gov <mailto:balay at mcs.anl.gov>> wrote:
>>> This code is a bit convoluted..
>>> 
>>> There is CPP, CPPFLAGS, CXXCPP, CXXCPPFLAGS. But then no FPP or FPPFLAGS..
>>> 
>>> Is this really true? Is the Fortran preprocessors not the C preprocessor? I have never encountered this.
>>> If you want flags which are different for C, use CFLAGS. Am I missing something?
>> 
>> AFAIK CFLAGS are not use in PETSc config system to check working C preprocessor and settings 
>> CFLAGS=-Qunused-arguments
>> still leads to Cannot find a C preprocessor .
>> which is the original issue.
>> 
> 
> oh well. you could use --with-cc='mpicc -Qunused-arguments’

Ended up doing this, both for cc and cxx. 
That did the trick.

Regards,
Denis.


More information about the petsc-users mailing list