<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>  Yes, you need to use the CPPFLAGS which maybe called CPPCFLAGS I am not sure<div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 4, 2021, at 3:23 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Ah, CCFLAGS does not seem to work. </div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 4, 2021 at 3:07 PM Barry Smith <<a href="mailto:bsmith@petsc.dev" class="">bsmith@petsc.dev</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br class="">
  You have to pass in the flag to turn off the bitching about -gpu to the C preprocessor, not the C compiler.<br class="">
<br class="">
<br class="">
stderr:<br class="">
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)<br class="">
Source:<br class="">
#include "confdefs.h"<br class="">
#include "conffix.h"<br class="">
#include <stdlib.h><br class="">
<br class="">
<br class="">
<br class="">
> On Nov 4, 2021, at 2:49 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank" class="">mfadams@lbl.gov</a>> wrote:<br class="">
> <br class="">
> on Perlmutter with nvhpc:<br class="">
> <br class="">
>               Defined make macro "CPP" to "cc --use cpp32"<br class="">
> Preprocessing source:<br class="">
> #include "confdefs.h"<br class="">
> #include "conffix.h"<br class="">
> #include <stdlib.h><br class="">
> <br class="">
> Executing: cc --use cpp32  -I/tmp/petsc-jV9U1b/config.setCompilers  /tmp/petsc-jV9U1b/config.setCompilers/conftest.c<br class="">
> Possible ERROR while running preprocessor: exit code 1<br class="">
> stderr:<br class="">
> nvc-Error-Unknown switch: --use<br class="">
> Source:<br class="">
> <configure.log><br class="">
<br class="">
</blockquote></div>
<span id="cid:f_kvlc4co30"><configure.log></span></div></blockquote></div><br class=""></div></body></html>