<html>
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on 03:34:42 Tuesday, 13 June 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<p>Dear Matthew,<br>
</p>
<p><br>
</p>
<p>Thanks. It went further, but now I get:<br>
</p>
<div>TESTING: configureMPIEXEC from config.packages.MPI(/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/packages/MPI.py:143)</div>
<div>*******************************************************************************</div>
<div>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</div>
<div>-------------------------------------------------------------------------------</div>
<div>Must give a default value for known-mpi-shared-libraries since executables cannot be run</div>
<div>*******************************************************************************<br>
</div>
<div><br>
</div>
<div>Last lines from the log:<br>
</div>
<div>
<div> File "./config/configure.py", line 405, in petsc_configure</div>
<div>    framework.configure(out = sys.stdout)</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/framework.py", line 1090, in configure</div>
<div>    self.processChildren()</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/framework.py", line 1079, in processChildren</div>
<div>    self.serialEvaluation(self.childGraph)</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/framework.py", line 1060, in serialEvaluation</div>
<div>    child.configure()</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/package.py", line 791, in configure</div>
<div>    self.executeTest(self.checkSharedLibrary)</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/base.py", line 126, in executeTest</div>
<div>    ret = test(*args,**kargs)</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/packages/MPI.py", line 135, in checkSharedLibrary</div>
<div>    self.shared = self.libraries.checkShared('#include <mpi.h>\n','MPI_Init','MPI_Initialized','MPI_Finalize',checkLink = self.checkPackageLink,libraries = self.lib, defaultArg = 'known-mpi-shared-libraries', ex</div>
<div>ecutor = self.mpiexec)</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/libraries.py", line 471, in checkShared</div>
<div>    if self.checkRun(defaultIncludes, body, defaultArg = defaultArg, executor = executor):</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/base.py", line 628, in checkRun</div>
<div>    (output, returnCode) = self.outputRun(includes, body, cleanup, defaultArg, executor)</div>
<div>  File "/zhome/academic/HLRS/pri/iprguvaz/ReFRESCO/Dev/trunk/Libs/build/petsc-3.7.5/config/BuildSystem/config/base.py", line 598, in outputRun</div>
<div>    raise ConfigureSetupError('Must give a default value for '+defaultOutputArg+' since executables cannot be run')</div>
<div><br>
​<span style="font-size: 12pt;">Any ideas? Something related with </span>
<div>
<div> --with-shared-libraries=0 \ </div>
<div> --with-batch=1 \</div>
<div>​The first I set because it was in the cray example, and the second because aprun (the mpiexec of Cray) is not available in the frontend. <br>
</div>
</div>
<div><br>
</div>
</div>
</div>
<div>Thanks,<br>
</div>
<div><br>
</div>
<div>Guilherme V.<br>
</div>
<div style="color: rgb(33, 33, 33);"></div>
<br>
<font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">dr. ir.</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">
</font><font style="font-family: Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">Guilherme</font><font style="font-family: Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">
</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">Vaz</font><font size="3" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;"> |
</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">CFD Research Coordinator / Senior CFD Researcher
</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;"> |
</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;font-weight:bold;">Research & Development</font><br>
<font style="font-family:Verdana;font-size:9pt;color:#7D7D7D;font-weight:bold;">MARIN</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;"> | T
</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;">+31 317 49 33 25</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;"> | M
</font><font style="font-family:Verdana;font-size:8pt;color:#7D7D7D;">+31 621 13 11 97</font><font color="#7d7d7d" size="2" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt;"> |
</font><span style="font-family:Verdana;font-size:8pt;"><a href="mailto:G.Vaz@marin.nl" title="" target="" style="font-family:Verdana;font-size:8pt;"><span style="font-family:Verdana; font-size:8pt;">G.Vaz@marin.nl</span></a></span><font color="#7d7d7d" size="2" face="Segoe UI"></font><font style="font-family:Verdana;font-size:8pt;"> |
</font><span style="font-family:Verdana;font-size:8pt;"><a href="http://www.marin.nl" title="" target="" style="font-family:Verdana;font-size:8pt;"><span style="font-family:Verdana; font-size:8pt;">www.marin.nl</span></a></span><br>
<br>
<a href="https://www.linkedin.com/company/marin" target=""><img width="16" height="16" style="border: 0px Solid ; " src="cid:image628296.PNG@fbf8c989.498af4c5" alt="LinkedIn"></a> <a href="http://www.youtube.com/marinmultimedia" target=""><img width="16" height="16" style="border: 0px Solid ; " src="cid:imagecdd6dd.PNG@12c78be7.439e8e7b" alt="YouTube"></a> <a href="https://twitter.com/MARIN_nieuws" target=""><img width="16" height="16" style="border: 0px Solid ; " src="cid:imageae7ad3.PNG@a7352b8f.48aae75c" alt="Twitter"></a> <a href="https://www.facebook.com/marin.wageningen" target=""><img width="16" height="16" style="border: 0px Solid ; " src="cid:image9aa6ed.PNG@868e7665.448635bd" alt="Facebook"></a><br>
<font style="FONT-FAMILY: Verdana; FONT-SIZE: 8pt" color="#7d7d7d" size="2" face="Verdana">MARIN news:
<font style="font-family:Verdana;font-size:8pt;"><span style="font-family:Verdana;font-size:8pt;"><a href="http://www.marin.nl/web/News/News-items/MARIN-deelt-onderzoek-tijdens-RD-Seminar-21-juni-2017.htm" title="" target="" style="font-family:Verdana;font-size:8pt;"><span style="font-family:Verdana; font-size:8pt;">MARIN
 deelt onderzoek tijdens R&D Seminar, 21 juni 2017</span></a></span></font></font>
<p></p>
<p></p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Matthew Knepley <knepley@gmail.com><br>
<b>Sent:</b> Tuesday, June 13, 2017 2:34 PM<br>
<b>To:</b> Vaz, Guilherme<br>
<b>Cc:</b> PETSc<br>
<b>Subject:</b> Re: [petsc-users] PETSC on Cray Hazelhen</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Tue, Jun 13, 2017 at 3:48 AM, Vaz, Guilherme <span dir="ltr">
<<a href="mailto:G.Vaz@marin.nl" target="_blank">G.Vaz@marin.nl</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" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<p>Dear all,<br>
</p>
<p><span style="font-size:12pt">I am trying to install PETSC on a Cray XC40 system (Hazelhen) with the usual Cray wrappers for Intel compilers, with some chosen external packages and MKL libraries.</span><br>
</p>
<p>I read some threads in the mailing list about this, and I tried the petsc-3.7.5/config/examples/<wbr>arch-cray-xt6-pkgs-opt.py <wbr>configuration options. After trying this (please abstract from my own env vars),<br>
</p>
<div>CONFOPTS="--prefix=$PETSC_<wbr>INSTALL_DIR \</div>
<div>              --with-cc=cc \</div>
<div>              --with-cxx=CC \</div>
<div>              --with-fc=ftn \</div>
<div>              --with-clib-autodetect=0 \</div>
<div>              --with-cxxlib-autodetect=0 \</div>
<div>              --with-fortranlib-autodetect=0 \</div>
<div>              --COPTFLAGS=-fast -mp \</div>
<div>              --CXXOPTFLAGS=-fast -mp \</div>
<div>              --FOPTFLAGS=-fast -mp \<br>
</div>
<div>              --with-shared-libraries=0 \ </div>
<div>              --with-batch=1 \</div>
<div>              --with-x=0 \</div>
<div>              --with-mpe=0 \</div>
<div>              --with-debugging=0 \</div>
<div>              --download-superlu_dist=$<wbr>SOURCE_DIR/$SUPERLU_SOURCE_<wbr>FILE \</div>
<div>              --with-blas-lapack-dir=$<wbr>BLASDIR \</div>
<div>              --download-parmetis=$SOURCE_<wbr>DIR/$PARMETIS_SOURCE_FILE \</div>
<div>              --download-metis=$SOURCE_DIR/$<wbr>METIS_SOURCE_FILE \</div>
<div>              --with-external-packages-dir=$<wbr>INSTALL_DIR \</div>
<div>              --with-ssl=0 <span style="font-size:12pt">"</span></div>
<p><br>
</p>
<p>I get the following error:<br>
</p>
<p><br>
</p>
<div>TESTING: checkFortranLinkingCxx from config.compilers(/zhome/<wbr>academic/HLRS/pri/iprguvaz/<wbr>ReFRESCO/Dev/trunk/Libs/build/<wbr>petsc-3.7.5/config/<wbr>BuildSystem/config/compilers.<wbr>py:1097)</div>
<div>******************************<wbr>******************************<wbr>*******************</div>
<div>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</div>
<div>------------------------------<wbr>------------------------------<wbr>-------------------</div>
<div>Fortran could not successfully link C++ objects</div>
<div>******************************<wbr>******************************<wbr>*******************</div>
<div><br>
Does it ring a bell? Any tips?</div>
</div>
</blockquote>
<div><br>
</div>
<div>You turned off autodetection, so it will not find libstdc++. That either has to be put in LIBS, or I would recommend</div>
<div><br>
</div>
<div>  --with-cxx=0</div>
<div><br>
</div>
<div>since nothing you have there requires C++.</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 dir="ltr" style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Thanks,<br>
</div>
<div>Guilherme V.<br>
</div>
<br>
<font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">dr. ir.</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">Guilherme</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">Vaz</font><font size="3" face="Segoe UI"></font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold"> |
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">CFD Research Coordinator / Senior CFD Researcher
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold"> |
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d; font-weight:bold">Research & Development</font><br>
<font style="font-family:Verdana; font-size:9pt; color:#7d7d7d; font-weight:bold">MARIN</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d"> | T
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d"><a href="tel:+31%20317%20493%20325" value="+31317493325" target="_blank">+31 317 49 33 25</a></font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d"> | M
</font><font style="font-family:Verdana; font-size:8pt; color:#7d7d7d">+31 621 13 11 97</font><font color="#7d7d7d" size="2" face="Segoe UI"></font><font style="font-family:Verdana; font-size:8pt"> |
</font><span style="font-family:Verdana; font-size:8pt"><a href="mailto:G.Vaz@marin.nl" title="" target="_blank" style="font-family:Verdana; font-size:8pt"><span style="font-family:Verdana; font-size:8pt">G.Vaz@marin.nl</span></a></span><font color="#7d7d7d" size="2" face="Segoe UI"></font><font style="font-family:Verdana; font-size:8pt"> |
</font><span style="font-family:Verdana; font-size:8pt"><a href="http://www.marin.nl" title="" target="_blank" style="font-family:Verdana; font-size:8pt"><span style="font-family:Verdana; font-size:8pt">www.marin.nl</span></a></span><br>
<br>
<a href="https://www.linkedin.com/company/marin" target="_blank"><img width="16" height="16" alt="LinkedIn" style="border:0px Solid" src="cid:imageb0ee12.PNG@97f5ea85.48ac3c32"></a> <a href="http://www.youtube.com/marinmultimedia" target="_blank"><img width="16" height="16" alt="YouTube" style="border:0px Solid" src="cid:imaged8f08c.PNG@bb234aec.4683311a"></a> <a href="https://twitter.com/MARIN_nieuws" target="_blank"><img width="16" height="16" alt="Twitter" style="border:0px Solid" src="cid:imagedacd80.PNG@f0201308.4eb9c37d"></a> <a href="https://www.facebook.com/marin.wageningen" target="_blank"><img width="16" height="16" alt="Facebook" style="border:0px Solid" src="cid:image1bd020.PNG@2555c18e.439addb5"></a><br>
<font color="#7d7d7d" size="2" face="Verdana" style="font-family:Verdana; font-size:8pt">MARIN news:
<font style="font-family:Verdana; font-size:8pt"><span style="font-family:Verdana; font-size:8pt"><a href="http://www.marin.nl/web/News/News-items/Maritime-Safety-seminar-September-12-Singapore.htm" title="" target="_blank" style="font-family:Verdana; font-size:8pt"><span style="font-family:Verdana; font-size:8pt">Maritime
 Safety seminar, September 12, Singapore</span></a></span></font></font>
<p></p>
<p><u></u></p>
<u></u><u></u><u></u></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<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">http://www.caam.rice.edu/~mk51/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</EXCLAIMER:ORIGINAL_BODY_AFTER>
<p></p>
</EXCLAIMER:TEXT_ONLY></EXCLAIMER:AD></EXCLAIMER:AD>
</body>
</html>