<div>Hi,</div>
<div> </div>
<div>I just compiled a shared version of PETSc. I realised that I've forgotten to add --download-hypre=1 in the configure. Hence I need to rebuilt the PETSc. Initially I had used --download-mpich=1 to built the mpich.
</div>
<div> </div>
<div>Before the "make all test", I got:</div>
<div> </div>
<div>...</div>
<div> </div>
<div>MPI:<br> Includes: ['/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/include']<br> Library: ['/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/lib/libmpich.a', '
libnsl.a', 'librt.a']</div>
<div> </div>
<div>...</div>
<div> </div>
<div>I tried to "reuse" this library for the new built but it failed. It says </div>
<div> </div>
<div> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>---------------------------------------------------------------------------------------<br>Shared libraries cannot be built using MPI provided.
<br>Either rebuild with --with-shared=0 or rebuild MPI with shared library support<br> </div>
<div>My option is --with-mpi-include=/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/include --with-mpi-lib=/nfs/lsftmp/g0306332/petsc-2.3.2-p8/externalpackages/mpich2-1.0.4p1/atlas3/lib/libmpich.a
</div>
<div> </div>
<div>I also changed libmpich.a to libmpich.so but the same error occurs. Is there any way I can use the mpich which I built earlier. </div>
<div> </div>
<div>Thanks.</div>