<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""> Ling,</div><div class=""><br class=""></div> Configure is failing here.<div class=""><br class=""></div><div class=""><div class="">TESTING: checkCPreprocessor from config.setCompilers(config/BuildSystem/config/setCompilers.py:699)</div><div class=""> Locate a functional C preprocessor</div><div class="">Checking for program /Users/lzou/miniconda3/bin/gcc...found</div><div class=""> Defined make macro "CPP" to "gcc -E"</div><div class="">Preprocessing source:</div><div class="">#include "confdefs.h"</div><div class="">#include "conffix.h"</div><div class="">#include <stdlib.h></div><div class="">Executing: gcc -E -I/var/folders/fd/yx1jblsj2rzb981kx8ksm03ssqvm65/T/petsc-2jvhontx/config.setCompilers /var/folders/fd/yx1jblsj2rzb981kx8ksm03ssqvm65/T/petsc-2jvhontx/config.setCompilers/conftest.c </div><div class="">Possible ERROR while running preprocessor: exit code 1</div><div class="">stdout:</div><div class=""># 1 "/var/folders/fd/yx1jblsj2rzb981kx8ksm03ssqvm65/T/petsc-2jvhontx/config.setCompilers/conftest.c"</div><div class=""><br class=""></div><div class="">So for some reason the gcc -E seems to work correctly but produces an non-zero exit code? </div><div class=""><br class=""></div><div class="">I notice something very concerning in your Conda environment. It seems to have a gcc (GCC) 4.8.5 which is more ancient than my son who is in college. I cannot imagine you would want to use such an old compiler. Perhaps if you upgrade the Conda environment to use a recent gcc then the other problem will go away. </div><div class=""><br class=""></div><div class="">Please give that a try and let us know how it goes, send configure.log again if configure still fails.</div><div class=""> </div><div class=""> Good luck,</div><div class=""><br class=""></div><div class=""> Barry</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class=""> Locate a functional C compiler</div><div class="">Checking for program /Users/lzou/miniconda3/bin/gcc...found</div></div><div class=""><div class="">Executing: gcc --version</div><div class="">stdout:</div><div class="">gcc (GCC) 4.8.5</div><div class="">Copyright (C) 2015 Free Software Foundation, Inc.</div><div class="">This is free software; see the source for copying conditions. There is NO</div><div class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</div></div><div class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 15, 2020, at 4:27 PM, Zou, Ling via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" class="">petsc-users@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 18px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">Hi,<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">I have installed PETSc many times before, so not so new to it.<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">Recently, I have switched to conda system to manage my working environment, and would like to reinstall PETSc, and had some issue during the ‘config’ stage:<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">*******************************************************************************<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class=""> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">-------------------------------------------------------------------------------<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">Cannot find a C preprocessor<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">*******************************************************************************<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">Config file is also attached.<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">Appreciate your help.<o:p class=""></o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class=""><o:p class=""> </o:p></span></div><div style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;" class=""><span style="font-size: 11pt;" class="">-Ling<o:p class=""></o:p></span></div></div><span id="cid:31543703-F486-4701-8496-1973D1023C01"><configure.log></span></div></blockquote></div><br class=""></div></body></html>