<div dir="ltr"><div>Does anyone have a suggestion for this compilation error from petscconf.h? Sorry this is with a somewhat old PETSc version:</div><div><br></div><div>configure:34535: checking whether we can compile a trivial PETSc program<br>configure:34564: mpicxx -c  -std=gnu++11 -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt//include -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include  conftest.cpp >&5<br>In file included from /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscsys.h:14:0,<br>                 from /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscbag.h:4,<br>                 from /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petsc.h:5,<br>                 from conftest.cpp:144:<br>/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscconf.h:85:36: error: expected '}' before '__attribute'<br> #define PETSC_DEPRECATED_ENUM(why) __attribute((deprecated))<br>                                    ^<br>/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscksp.h:430:76: note: in expansion of macro 'PETSC_DEPRECATED_ENUM'<br> #define KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED KSP_DIVERGED_PCSETUP_FAILED PETSC_DEPRECATED_ENUM("Use KSP_DIVERGED_PC_FAILED (since v3.11)")<br>                                                                            ^<br>/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscksp.h:452:15: note: in expansion of macro 'KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED'<br>               KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED  = -11,<br></div></div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 18, 2020 at 2:55 PM Lin <<a href="mailto:y7762516@gmail.com" target="_blank">y7762516@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"><div><font size="2">Hi, all,</font></div><div><font size="2"><br></font></div><div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><font size="2"> I met a problem with </font></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><font size="2"><br></font><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code><div><font size="2"><span style="color:rgb(0,0,0)">error</span><span style="color:rgb(102,102,0)">:</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">***</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,0,102)">PETSc</span><span style="color:rgb(0,0,0)"> was </span><span style="color:rgb(0,0,136)">not</span><span style="color:rgb(0,0,0)"> found</span><span style="color:rgb(102,102,0)">,</span><span style="color:rgb(0,0,0)"> but </span><span style="color:rgb(102,102,0)">--</span><span style="color:rgb(0,0,0)">enable</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">petsc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">required was specified</span><span style="color:rgb(102,102,0)">.</span></font></div></code></div><font size="2"><br>when I reinstalled MOOSE. However, I had been using MOOSE with no issues previously. <span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline">Does someone know how to solve it? My system is Ubuntu 18.04.</span></font></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline"><font size="2"><br></font></span></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline"><font size="2">The error is listed as following:</font></span></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline"><font size="2"><br></font></span></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><span style="font-style:inherit;font-variant:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline"><font size="2"><div style="background-color:rgb(250,250,250);border-color:rgb(187,187,187);border-style:solid;border-width:1px"><code><div><span style="color:rgb(102,0,102)">Found</span><span style="color:rgb(0,0,0)"> valid MPI installation</span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"><br><br>note</span><span style="color:rgb(102,102,0)">:</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,136)">using</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">moose</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">mpich</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.3</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">gcc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">9.2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">0</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">include</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">mpi</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">h<br><br>checking mpi</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">h usability</span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"> yes<br><br>checking mpi</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">h presence</span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"> yes<br><br>checking </span><span style="color:rgb(0,0,136)">for</span><span style="color:rgb(0,0,0)"> mpi</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">h</span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"> yes<br><br>checking </span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">moose</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">petsc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.11</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">4</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">mpich</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.3</span><span style="color:rgb(0,0,0)">_gcc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">9.2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">0</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(136,0,0)">//include/petscversion.h usability... yes</span><span style="color:rgb(0,0,0)"><br><br>checking </span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">moose</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">petsc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.11</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">4</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">mpich</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.3</span><span style="color:rgb(0,0,0)">_gcc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">9.2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">0</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(136,0,0)">//include/petscversion.h presence... yes</span><span style="color:rgb(0,0,0)"><br><br>checking </span><span style="color:rgb(0,0,136)">for</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">moose</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">petsc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.11</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">4</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">mpich</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.3</span><span style="color:rgb(0,0,0)">_gcc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">9.2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">0</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(136,0,0)">//include/petscversion.h... yes</span><span style="color:rgb(0,0,0)"><br><br></span><span style="color:rgb(102,102,0)"><<<</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,0,102)">Found</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,0,102)">PETSc</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,102,102)">3.11</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">4</span><span style="color:rgb(0,0,0)"> installation </span><span style="color:rgb(0,0,136)">in</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">opt</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">moose</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">petsc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.11</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">4</span><span style="color:rgb(102,102,0)">/</span><span style="color:rgb(0,0,0)">mpich</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">3.3</span><span style="color:rgb(0,0,0)">_gcc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,102,102)">9.2</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,102,102)">0</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">opt </span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">>>></span><span style="color:rgb(0,0,0)"><br><br>checking whether we can compile a trivial </span><span style="color:rgb(102,0,102)">PETSc</span><span style="color:rgb(0,0,0)"> program</span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,136)">no</span><span style="color:rgb(0,0,0)"><br><br>checking </span><span style="color:rgb(0,0,136)">for</span><span style="color:rgb(0,0,0)"> TAO support via </span><span style="color:rgb(102,0,102)">PETSc</span><span style="color:rgb(102,102,0)">...</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,136)">no</span><span style="color:rgb(0,0,0)"><br><br>configure</span><span style="color:rgb(102,102,0)">:</span><span style="color:rgb(0,0,0)"> error</span><span style="color:rgb(102,102,0)">:</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">***</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,0,102)">PETSc</span><span style="color:rgb(0,0,0)"> was </span><span style="color:rgb(0,0,136)">not</span><span style="color:rgb(0,0,0)"> found</span><span style="color:rgb(102,102,0)">,</span><span style="color:rgb(0,0,0)"> but </span><span style="color:rgb(102,102,0)">--</span><span style="color:rgb(0,0,0)">enable</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">petsc</span><span style="color:rgb(102,102,0)">-</span><span style="color:rgb(0,0,0)">required was specified</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)"><br>make</span><span style="color:rgb(102,102,0)">:</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,102,0)">***</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(102,0,102)">No</span><span style="color:rgb(0,0,0)"> targets specified </span><span style="color:rgb(0,0,136)">and</span><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,136)">no</span><span style="color:rgb(0,0,0)"> makefile found</span><span style="color:rgb(102,102,0)">.</span><span style="color:rgb(0,0,0)">  </span><span style="color:rgb(102,0,102)">Stop</span><span style="color:rgb(102,102,0)">.</span></div></code></div><span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:inherit"><b><br></b></span><br></font></span></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline"><span style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;color:inherit"><b><font size="2"><br></font></b></span></span></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><font size="2">Besides, I attached my libMesh configure log file in the email.</font></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><font size="2"><br></font></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><font size="2">Regards,</font></div><div style="font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:inherit;font-family:Calibri,Arial,Helvetica,sans-serif;vertical-align:baseline;color:rgb(0,0,0)"><font size="2">Lin</font></div></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "moose-users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:moose-users+unsubscribe@googlegroups.com" target="_blank">moose-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/moose-users/db12322c-eae6-4ed4-b54f-3ab5e118f466%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/moose-users/db12322c-eae6-4ed4-b54f-3ab5e118f466%40googlegroups.com</a>.<br>
</blockquote></div>