<div dir="ltr">I could compile petsc using the newer version of gnu compiler.<div>However, there is some unusual error when I tried to test petsc using a print 'hello' file. I could not interpret what the error ('<b>error.txt</b>') is, but it says something related to MATLAB (which is not used in the '<b>hello.c</b>' script). Any comments/suggestions?</div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 2, 2023 at 11:07 AM maitri ksh <<a href="mailto:maitri.ksh@gmail.com">maitri.ksh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Okay, thank you.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 1, 2023 at 9:43 PM Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)<br>
<br>
Is it possible for you to use a newer version GNU compilers?<br>
<br>
If not - your alternative is to build PETSc with --with-cxx=0 option<br>
<br>
But then - you can't use --download-superlu_dist or any pkgs that need<br>
c++ [you could try building them separately though]<br>
<br>
Satish<br>
<br>
<br>
On Tue, 1 Aug 2023, maitri ksh wrote:<br>
<br>
> I am trying to compile petsc on a cluster ( x86_64-redhat-linux, '<br>
> *configure.log'* is attached herewith) . Initially I got an error related<br>
> to 'C++11' flag, to troubleshoot this issue, I used 'CPPFLAGS' and<br>
> 'CXXFLAGS' and could surpass the non-compliant error related to c++ compiler<br>
> but now it gives me another error 'cannot find a C preprocessor'. How to<br>
> fix this?<br>
> <br>
<br>
</blockquote></div>
</blockquote></div>