<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="">Great.  Thanks! <div class=""><br class=""></div><div class="">-Hanqi<br class=""><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><blockquote type="cite" class=""><div class="">On Feb 26, 2016, at 10:23 PM, Satish Balay <<a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">looks like '-fPIC' with clang is causing problems. The following works for me.<br class=""><br class="">./configure --with-cc=mpicc --with-cxx=mpic++11 --with-fc=0 --with-clib-autodetect=0 --with-cxxlib-autodetect=0 --with-shared-libraries=0 --download-f2cblaslapack=1<br class=""><br class="">Satish<br class=""><br class="">On Fri, 26 Feb 2016, Guo, Hanqi wrote:<br class=""><br class=""><blockquote type="cite" class="">Hi, <br class=""><br 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! <br class=""><br class="">The followings are several combinations I have tried: <br class=""><br class=""><blockquote type="cite" class="">./configure --prefix=$HOME/local.bgclang/petsc-3.6.3 --with-cc=mpicc --with-cxx=mpic++11 --with-fc=0 --with-clanguage=cxx<br class=""></blockquote>===============================================================================<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=""><blockquote type="cite" 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=""></blockquote>===============================================================================<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=""><blockquote type="cite" 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<br class=""></blockquote>===============================================================================<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="">*******************************************************************************<br class=""><br class="">...<br class=""><br class="">---------------<br class="">Hanqi Guo<br 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="">e-mail: <a href="mailto:hguo@anl.gov" class="">hguo@anl.gov</a><br class="">web: <a href="http://www.mcs.anl.gov/~hguo" class="">http://www.mcs.anl.gov/~hguo</a><br class="">phone: 630-252-7225<br class=""><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>