<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Barry, you were right. That was the gcc version issue.<o:p></o:p></p>
<p class="MsoNormal">This has been resolved with later version of gcc.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Ling<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">petsc-users <petsc-users-bounces@mcs.anl.gov><br>
<b>Date: </b>Sunday, November 15, 2020 at 5:03 PM<br>
<b>To: </b>Barry Smith <bsmith@petsc.dev><br>
<b>Cc: </b>petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject: </b>Re: [petsc-users] Install PETSc 3.14 with Conda type environment<o:p></o:p></span></p>
</div>
<p class="MsoNormal">LOL, you are definitely right about the gcc version.<o:p></o:p></p>
<p class="MsoNormal">I am still new to conda, and pulled out whatever comes first (through some quick google search).<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I will update my gcc, and let you know.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">-Ling<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Barry Smith <bsmith@petsc.dev><br>
<b>Date: </b>Sunday, November 15, 2020 at 4:46 PM<br>
<b>To: </b>Zou, Ling <lzou@anl.gov><br>
<b>Cc: </b>petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject: </b>Re: [petsc-users] Install PETSc 3.14 with Conda type environment</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Ling,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal"> Configure is failing here.<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">TESTING: checkCPreprocessor from config.setCompilers(config/BuildSystem/config/setCompilers.py:699)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Locate a functional C preprocessor<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Checking for program /Users/lzou/miniconda3/bin/gcc...found<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Defined make macro "CPP" to "gcc -E"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Preprocessing source:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#include "confdefs.h"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#include "conffix.h"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#include <stdlib.h><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Executing: gcc -E -I/var/folders/fd/yx1jblsj2rzb981kx8ksm03ssqvm65/T/petsc-2jvhontx/config.setCompilers /var/folders/fd/yx1jblsj2rzb981kx8ksm03ssqvm65/T/petsc-2jvhontx/config.setCompilers/conftest.c <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Possible ERROR while running preprocessor: exit code 1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">stdout:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"># 1 "/var/folders/fd/yx1jblsj2rzb981kx8ksm03ssqvm65/T/petsc-2jvhontx/config.setCompilers/conftest.c"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">So for some reason the gcc -E seems to work correctly but produces an non-zero exit code? <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Please give that a try and let us know how it goes, send configure.log again if configure still fails.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Good luck,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Barry<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> Locate a functional C compiler<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Checking for program /Users/lzou/miniconda3/bin/gcc...found<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Executing: gcc --version<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">stdout:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">gcc (GCC) 4.8.5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Copyright (C) 2015 Free Software Foundation, Inc.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">This is free software; see the source for copying conditions. There is NO<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Nov 15, 2020, at 4:27 PM, Zou, Ling via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have installed PETSc many times before, so not so new to it.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">*******************************************************************************<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-------------------------------------------------------------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cannot find a C preprocessor<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">*******************************************************************************<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Config file is also attached.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Appreciate your help.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">-Ling<o:p></o:p></p>
</div>
<p class="MsoNormal"><configure.log><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</body>
</html>