<div dir="ltr"><div dir="ltr">HI Lin,<div><br></div><div>Do you have a home-brew installed MPI?</div><div><br></div><div>"</div><div><div>configure:6076: mpif90 -v >&5</div><div>mpifort for MPICH version 3.3</div><div>Reading specs from /home/lin/.linuxbrew/Cellar/gcc/5.5.0_7/bin/../lib/gcc/x86_64-unknown-linux-gnu/5.5.0/specs</div></div><div>"</div><div><br></div><div>MOOSE environment package should carry everything you need: compiler, mpi, and petsc.</div><div><br></div><div>You could home-brew uninstall your mpi, and retry.</div><div><br></div><div>Thanks,</div><div><br></div><div>Fande,</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 18, 2020 at 5:57 PM Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Alexander Lindsay <<a href="mailto:alexlindsay239@gmail.com" target="_blank">alexlindsay239@gmail.com</a>> writes:<br>
<br>
> Does anyone have a suggestion for this compilation error from petscconf.h?<br>
> Sorry this is with a somewhat old PETSc version:<br>
><br>
> configure:34535: checking whether we can compile a trivial PETSc program<br>
> configure:34564: mpicxx -c  -std=gnu++11<br>
<br>
What do you get with `mpicxx --version`?<br>
<br>
This is usually a result of configuring PETSc with a different compiler<br>
version than you use to run.<br>
<br>
> -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include<br>
> -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt//include<br>
> -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include<br>
> -I/opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include  conftest.cpp >&5<br>
> In file included from<br>
> /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscsys.h:14:0,<br>
>                  from<br>
> /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscbag.h:4,<br>
>                  from<br>
> /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:<br>
> 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:<br>
> note: in expansion of macro 'PETSC_DEPRECATED_ENUM'<br>
>  #define KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED KSP_DIVERGED_PCSETUP_FAILED<br>
> PETSC_DEPRECATED_ENUM("Use KSP_DIVERGED_PC_FAILED (since v3.11)")<br>
><br>
> ^<br>
> /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt/include/petscksp.h:452:15:<br>
> note: in expansion of macro 'KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED'<br>
>                KSP_DIVERGED_PCSETUP_FAILED_DEPRECATED  = -11,<br>
><br>
><br>
> On Wed, Mar 18, 2020 at 2:55 PM Lin <<a href="mailto:y7762516@gmail.com" target="_blank">y7762516@gmail.com</a>> wrote:<br>
><br>
>> Hi, all,<br>
>><br>
>>  I met a problem with<br>
>><br>
>> error: *** PETSc was not found, but --enable-petsc-required was specified.<br>
>><br>
>> when I reinstalled MOOSE. However, I had been using MOOSE with no issues<br>
>> previously. Does someone know how to solve it? My system is Ubuntu 18.04.<br>
>><br>
>> The error is listed as following:<br>
>><br>
>> Found valid MPI installation...<br>
>><br>
>> note: using /opt/moose/mpich-3.3/gcc-9.2.0/include/mpi.h<br>
>><br>
>> checking mpi.h usability... yes<br>
>><br>
>> checking mpi.h presence... yes<br>
>><br>
>> checking for mpi.h... yes<br>
>><br>
>> checking /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt//include/petscversion.h<br>
>> usability... yes<br>
>><br>
>> checking /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt//include/petscversion.h<br>
>> presence... yes<br>
>><br>
>> checking for /opt/moose/petsc-3.11.4/mpich-3.3_gcc-9.2.0-opt//include/petscversion.h...<br>
>> yes<br>
>><br>
>> <<< Found PETSc 3.11.4 installation in /opt/moose/petsc-3.11.4/mpich-3.3<br>
>> _gcc-9.2.0-opt ... >>><br>
>><br>
>> checking whether we can compile a trivial PETSc program... no<br>
>><br>
>> checking for TAO support via PETSc... no<br>
>><br>
>> configure: error: *** PETSc was not found, but --enable-petsc-required<br>
>> was specified.<br>
>> make: *** No targets specified and no makefile found.  Stop.<br>
>><br>
>><br>
>><br>
>> Besides, I attached my libMesh configure log file in the email.<br>
>><br>
>> Regards,<br>
>> Lin<br>
>><br>
>> --<br>
>> You received this message because you are subscribed to the Google Groups<br>
>> "moose-users" group.<br>
>> To unsubscribe from this group and stop receiving emails from it, send an<br>
>> email to <a href="mailto:moose-users%2Bunsubscribe@googlegroups.com" target="_blank">moose-users+unsubscribe@googlegroups.com</a>.<br>
>> To view this discussion on the web visit<br>
>> <a href="https://groups.google.com/d/msgid/moose-users/db12322c-eae6-4ed4-b54f-3ab5e118f466%40googlegroups.com" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/moose-users/db12322c-eae6-4ed4-b54f-3ab5e118f466%40googlegroups.com</a><br>
>> <<a href="https://groups.google.com/d/msgid/moose-users/db12322c-eae6-4ed4-b54f-3ab5e118f466%40googlegroups.com?utm_medium=email&utm_source=footer" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/moose-users/db12322c-eae6-4ed4-b54f-3ab5e118f466%40googlegroups.com?utm_medium=email&utm_source=footer</a>><br>
>> .<br>
>><br>
><br>
> -- <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%2Bunsubscribe@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/CANFcJrE%2BURQoK0UiqBEsB9yZ2Qbbj24W_S_n8qYzxOBtD41Yzw%40mail.gmail.com" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/moose-users/CANFcJrE%2BURQoK0UiqBEsB9yZ2Qbbj24W_S_n8qYzxOBtD41Yzw%40mail.gmail.com</a>.<br>
<br>
-- <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%2Bunsubscribe@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/87r1xpw71l.fsf%40jedbrown.org" rel="noreferrer" target="_blank">https://groups.google.com/d/msgid/moose-users/87r1xpw71l.fsf%40jedbrown.org</a>.<br>
</blockquote></div>