[petsc-dev] I am getting this error ...

Barry Smith bsmith at petsc.dev
Thu Nov 4 15:11:52 CDT 2021


  Yes, you need to use the CPPFLAGS which maybe called CPPCFLAGS I am not sure


> On Nov 4, 2021, at 3:23 PM, Mark Adams <mfadams at lbl.gov> wrote:
> 
> Ah, CCFLAGS does not seem to work. 
> 
> On Thu, Nov 4, 2021 at 3:07 PM Barry Smith <bsmith at petsc.dev <mailto:bsmith at petsc.dev>> wrote:
> 
>   You have to pass in the flag to turn off the bitching about -gpu to the C preprocessor, not the C compiler.
> 
> 
> stderr:
> nvc-Warning-The -gpu option has no effect unless a language-specific option to enable GPU code generation is used (e.g.: -acc, -mp=gpu, -stdpar, -cuda)
> Source:
> #include "confdefs.h"
> #include "conffix.h"
> #include <stdlib.h>
> 
> 
> 
> > On Nov 4, 2021, at 2:49 PM, Mark Adams <mfadams at lbl.gov <mailto:mfadams at lbl.gov>> wrote:
> > 
> > on Perlmutter with nvhpc:
> > 
> >               Defined make macro "CPP" to "cc --use cpp32"
> > Preprocessing source:
> > #include "confdefs.h"
> > #include "conffix.h"
> > #include <stdlib.h>
> > 
> > Executing: cc --use cpp32  -I/tmp/petsc-jV9U1b/config.setCompilers  /tmp/petsc-jV9U1b/config.setCompilers/conftest.c
> > Possible ERROR while running preprocessor: exit code 1
> > stderr:
> > nvc-Error-Unknown switch: --use
> > Source:
> > <configure.log>
> 
> <configure.log>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20211104/11c8acea/attachment.html>


More information about the petsc-dev mailing list