<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi, <div class=""><br class=""></div><div class="">I am trying to compile petsc on mira with bgclang, because my application needs C++11 support. I have tried several ways to configure but didn’t work. Does anyone have ideas on this? Thanks in advance! </div><div class=""><br class=""></div><div class="">The followings are several combinations I have tried: </div><div class=""><br class=""></div><div class="">> ./configure --prefix=$HOME/local.bgclang/petsc-3.6.3 --with-cc=mpicc --with-cxx=mpic++11 --with-fc=0 --with-clanguage=cxx</div><div class="">===============================================================================<br class=""> Configuring PETSc to compile on your system <br class="">===============================================================================<br class="">TESTING: checkCxxLibraries from config.compilers(config/BuildSystem/config/compilers.py:413) *******************************************************************************<br class=""> UNABLE to EXECUTE BINARIES for ./configure <br class="">-------------------------------------------------------------------------------<br class="">Cannot run executables created with C. If this machine uses a batch system <br class="">to submit jobs you will need to configure using ./configure with the additional option --with-batch.<br class=""> Otherwise there is problem with the compilers. Can you compile and run code with your compiler 'mpicc'?<br class="">*******************************************************************************<br class=""><br class=""></div><div class="">> ./configure --prefix=$HOME/local.bgclang/petsc-3.6.3 --with-cc=mpicc --with-cxx=mpic++11 --with-fc=0 --with-clanguage=cxx --with-batch<br class="">===============================================================================<br class=""> Configuring PETSc to compile on your system <br class="">===============================================================================<br class="">TESTING: check from config.libraries(config/BuildSystem/config/libraries.py:146) *******************************************************************************<br class=""> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br class="">-------------------------------------------------------------------------------<br class="">Unable to find mpi in default locations!<br class="">Perhaps you can specify with --with-mpi-dir=<directory><br class="">If you do not want MPI, then give --with-mpi=0<br class="">You might also consider using --download-mpich instead<br class="">*******************************************************************************<br class=""><br class=""></div><div class="">> ./configure --prefix=$HOME/local.bgclang/petsc-3.6.3 --with-fc=0 --with-clanguage=cxx --with-batch --with-mpi-dir=/soft/compilers/bgclang/mpi/bgclang</div>===============================================================================<br class=""> Configuring PETSc to compile on your system <br class="">===============================================================================<br class="">TESTING: configureFortranCommandLine from config.utilities.fortranCommandLine(config/BuildSystem/config/utilities/fortranCommandLine.py:27) <br class="">TESTING: configureLibrary from config.packages.MPI(config/BuildSystem/config/packages/MPI.py:476) *******************************************************************************<br class=""> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br class="">-------------------------------------------------------------------------------<br class="">--with-mpi-dir=/soft/compilers/bgclang/mpi/bgclang did not work<br class="">*******************************************************************************<div class=""><div class=""><br class=""></div><div class="">...</div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class="Apple-interchange-newline">---------------</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hanqi Guo</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Postdoctoral Appointee<br class="">Mathematics and Computer Science Division<br class="">Argonne National Laboratory<br class="">9700 S. Cass Ave., Bldg 240<br class="">Argonne, IL 60439<br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">e-mail: <a href="mailto:hguo@anl.gov" class="">hguo@anl.gov</a></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">web: <a href="http://www.mcs.anl.gov/~hguo" class="">http://www.mcs.anl.gov/~hguo</a><br class=""></div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">phone: 630-252-7225</div></div></div></div>
</div>
<br class=""></div></body></html>