<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 20, 2017 at 6:31 PM, Santiago Andres Triana <span dir="ltr"><<a href="mailto:repepo@gmail.com" target="_blank">repepo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I got a different error now... hope it's a good sign!<div><br></div><div><div>hpca-login:~/petsc-3.8.3> ./configure --with-cc=gcc --with-fc=gfortran --with-cxx=g++ --with-mpi-include=/opt/sgi/<wbr>mpt/mpt-2.12/include --with-mpi-lib="-L/opt/sgi/<wbr>mpt/mpt-2.12/lib -lmpi -lpthread" LIBS="/usr/lib64/libcpuset.so.<wbr>1 /usr/lib64/libbitmask.so.1"</div><div>==============================<wbr>==============================<wbr>===================</div><div> Configuring PETSc to compile on your system </div><div>==============================<wbr>==============================<wbr>===================</div><div>TESTING: CxxMPICheck from config.packages.MPI(config/<wbr>BuildSystem/config/packages/<wbr>MPI.py:351) ******************************<wbr>******************************<wbr>*******************</div><div> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):</div><div>------------------------------<wbr>------------------------------<wbr>-------------------</div><div>C++ error! MPI_Finalize() could not be located!</div><div>******************************<wbr>******************************<wbr>*******************</div></div></div></blockquote><div><br></div><div>It looks like there is crazy C++ stuff in SGI MPT. I can see two chioces:</div><div><br></div><div> a) Turn off C++: --with-cxx=0</div><div><br></div><div> b) Find out what crazy C++ library MPT has and stick it in --with-mpi-lib</div><div><br></div><div>No amount of MPI optimization is worth this pain. Does your machine have an MPICH install?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><div class="gmail_quote">On Thu, Dec 21, 2017 at 12:21 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hm configure is misbehaving with /usr/lib64/libcpuset.so.1 notation. Try:<br>
<br>
./configure --with-cc=gcc --with-fc=gfortran --with-cxx=g++ --with-mpi-include=/opt/sgi/mp<wbr>t/mpt-2.12/include --with-mpi-lib="-L/opt/sgi/mpt<wbr>/mpt-2.12/lib -lmpi -lpthread" LIBS="/usr/lib64/libcpuset.so.<wbr>1 /usr/lib64/libbitmask.so.1"<br>
<div class="m_-4881929472810907624HOEnZb"><div class="m_-4881929472810907624h5"><br>
Satish<br>
<br>
<br>
On Wed, 20 Dec 2017, Santiago Andres Triana wrote:<br>
<br>
> thanks Satish,<br>
><br>
> did not work unfortunately, configure.log attached. Here's the output:<br>
><br>
> hpca-login:~/petsc-3.8.3> ./configure --with-cc=gcc --with-fc=gfortran<br>
> --with-cxx=g++ --with-mpi-include=/opt/sgi/mp<wbr>t/mpt-2.12/include<br>
> --with-mpi-lib="-L/opt/sgi/mpt<wbr>/mpt-2.12/lib -lmpi -lpthread<br>
> /usr/lib64/libcpuset.so.1 /usr/lib64/libbitmask.so.1"<br>
> ==============================<wbr>==============================<wbr>===================<br>
> Configuring PETSc to compile on your system<br>
><br>
> ==============================<wbr>==============================<wbr>===================<br>
> TESTING: check from<br>
> config.libraries(config/BuildS<wbr>ystem/config/libraries.py:158)<br>
><br>
> ******************************<wbr>******************************<wbr>*******************<br>
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for<br>
> details):<br>
> ------------------------------<wbr>------------------------------<wbr>-------------------<br>
> --with-mpi-lib=['-L/opt/sgi/mp<wbr>t/mpt-2.12/lib', '-lmpi', '-lpthread',<br>
> '/usr/lib64/libcpuset.so.1', '/usr/lib64/libbitmask.so.1'] and<br>
> --with-mpi-include=['/opt/sgi/<wbr>mpt/mpt-2.12/include'] did not work<br>
> ******************************<wbr>******************************<wbr>*******************<br>
><br>
> On Thu, Dec 21, 2017 at 12:07 AM, Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> wrote:<br>
><br>
> > Its strange compiler.<br>
> ><br>
> > You can try:<br>
> ><br>
> > ./configure --with-cc=gcc --with-fc=gfortran --with-cxx=g++<br>
> > --with-mpi-include=/opt/sgi/mp<wbr>t/mpt-2.12/include<br>
> > --with-mpi-lib="-L/opt/sgi/mpt<wbr>/mpt-2.12/lib -lmpi -lpthread<br>
> > /usr/lib64/libcpuset.so.1 /usr/lib64/libbitmask.so.1"<br>
> ><br>
> > Satish<br>
> ><br>
> > On Wed, 20 Dec 2017, Santiago Andres Triana wrote:<br>
> ><br>
> > > This is what I get:<br>
> > ><br>
> > > hpca-login:~> mpicc -show<br>
> > > gcc -I/opt/sgi/mpt/mpt-2.12/includ<wbr>e -L/opt/sgi/mpt/mpt-2.12/lib -lmpi<br>
> > > -lpthread /usr/lib64/libcpuset.so.1 /usr/lib64/libbitmask.so.1<br>
> > ><br>
> > > On Wed, Dec 20, 2017 at 11:59 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>><br>
> > wrote:<br>
> > ><br>
> > > > >>><br>
> > > > Executing: mpicc -E -I/dev/shm/pbs.3111462.hpc-<br>
> > pbs/petsc-fdYfuH/config.setCom<wbr>pilers<br>
> > > > /dev/shm/pbs.3111462.hpc-pbs/p<wbr>etsc-fdYfuH/config.<br>
> > setCompilers/conftest.c<br>
> > > > stderr:<br>
> > > > gcc: warning: /usr/lib64/libcpuset.so.1: linker input file unused<br>
> > because<br>
> > > > linking not done<br>
> > > > gcc: warning: /usr/lib64/libbitmask.so.1: linker input file unused<br>
> > because<br>
> > > > linking not done<br>
> > > > <<<<<br>
> > > ><br>
> > > > Looks like your mpicc is printing this verbose thing on stdout [why is<br>
> > > > it doing a link check during preprocesing?] - thus confusing PETSc<br>
> > > > configure.<br>
> > > ><br>
> > > > Workarround is to fix this compiler not to print such messages. Or use<br>
> > > > different compilers..<br>
> > > ><br>
> > > > What do you have for:<br>
> > > ><br>
> > > > mpicc -show<br>
> > > ><br>
> > > ><br>
> > > > Satish<br>
> > > ><br>
> > > > On Wed, 20 Dec 2017, Santiago Andres Triana wrote:<br>
> > > ><br>
> > > > > Dear petsc-users,<br>
> > > > ><br>
> > > > > I'm trying to install petsc in a cluster using SGI's MPT. The mpicc<br>
> > > > > compiler is in the search path. The configure command is:<br>
> > > > ><br>
> > > > > ./configure --with-scalar-type=complex --with-mumps=1<br>
> > --download-mumps<br>
> > > > > --download-parmetis --download-metis --download-scalapack<br>
> > > > ><br>
> > > > > However, this leads to an error (configure.log attached):<br>
> > > > ><br>
> > > > > ==============================<wbr>==============================<br>
> > > > ===================<br>
> > > > > Configuring PETSc to compile on your system<br>
> > > > ><br>
> > > > > ==============================<wbr>==============================<br>
> > > > ===================<br>
> > > > > TESTING: checkCPreprocessor from<br>
> > > > > config.setCompilers(config/Bui<wbr>ldSystem/config/setCompilers.<wbr>py:599)<br>
> > > > ><br>
> > > > > ******************************<wbr>******************************<br>
> > > > *******************<br>
> > > > > UNABLE to CONFIGURE with GIVEN OPTIONS (see<br>
> > configure.log for<br>
> > > > > details):<br>
> > > > > ------------------------------<wbr>------------------------------<br>
> > > > -------------------<br>
> > > > > Cannot find a C preprocessor<br>
> > > > > ******************************<wbr>******************************<br>
> > > > *******************<br>
> > > > ><br>
> > > > > The configure.log says something about cpp32, here's the excerpt:<br>
> > > > ><br>
> > > > > Possible ERROR while running preprocessor: exit code 256<br>
> > > > > stderr:<br>
> > > > > gcc: error: cpp32: No such file or directory<br>
> > > > ><br>
> > > > ><br>
> > > > > Any ideas of what is going wrong? any help or comments are highly<br>
> > > > > appreciated. Thanks in advance!<br>
> > > > ><br>
> > > > > Andres<br>
> > > > ><br>
> > > ><br>
> > > ><br>
> > ><br>
> ><br>
> ><br>
><br>
<br>
</div></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>