<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">However mumps - and perhaps other packages require fortran.<br>
<br>
Satish</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">From:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:knepley@gmail.com">Matthew Knepley</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Sent:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">ý4/ý24/ý2015 2:11 PM</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">To:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:Shuangshuang.Jin@pnnl.gov">Jin, Shuangshuang</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Cc:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@mcs.anl.gov</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Subject:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [petsc-dev] configuration error: Cannot compile C with mpicc</span><br>
<br>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Fri, Apr 24, 2015 at 1:55 PM, Jin, Shuangshuang <span dir="ltr">
<<a href="mailto:Shuangshuang.Jin@pnnl.gov" target="_blank">Shuangshuang.Jin@pnnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Thanks for the quick fix for the problem. However I came up with a new one now and the configure.log is too big to attach..<br>
<br>
It seems to complain about mpif.h when I look at the log file. Here's a piece of the error:<br>
<br>
Executing: gfortran -c -o /tmp/petsc-u4h0ot/config.libraries/conftest.o -I/tmp/petsc-u4h0ot/config.compilers -I/tmp/petsc-u4h0ot/config.types -I/tmp/petsc-u4h0ot/config.setCompilers -I/tmp/petsc-u4h0ot/config.libraries  -Wall -Wno-unused-variable -ffree-line-length-0
 -Wno-unused-dummy-argument -O    /tmp/petsc-u4h0ot/config.libraries/conftest.F<br>
Possible ERROR while running compiler: exit code 256<br>
stderr:<br>
/tmp/petsc-u4h0ot/config.libraries/conftest.F:2:0: fatal error: mpif.h: No such file or directory<br>
 #include "mpif.h"<br>
 ^<br>
compilation terminated.<br>
Source:<br>
      program main<br>
#include "mpif.h"<br>
      end<br>
*******************************************************************************<br>
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>
-------------------------------------------------------------------------------<br>
Fortran error! mpif.h could not be located at: []<br>
*******************************************************************************<br>
<br>
And my configure option is:<br>
<br>
./configure PETSC_ARCH=arch-complex-opt --with-prefix=./ --with-mpi=1 --with-cc=mpicc --with-cxx=mpicxx --with-c++-support=1 --with-c-support=0 --with-fortran=0 --with-scalar-type=complex --with-debugging=0 CFLAGS=-O3 --download-superlu_dist --download-superlu
 --download-parmetis --download-metis --download-f2cblaslapack=1 --with-clanguage=c++ --with-shared-libraries=0 --with-x=0 --with-mpirun=mpirun --with-mpiexec=mpiexec --download-fblaslapack=1 --download-mumps --download-plapack --download-suitesparse<br>
</blockquote>
<div><br>
</div>
<div>You want --with-fc-0 not with-fortran=0.</div>
<div><br>
</div>
<div>This belongs on <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a></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">
<br>
Can you help to take a look again?<br>
<br>
Thanks,<br>
Shuangshuang<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Barry Smith [mailto:<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>]<br>
Sent: Friday, April 24, 2015 11:35 AM<br>
To: Jin, Shuangshuang<br>
Cc: <a href="mailto:petsc-dev@mcs.anl.gov">petsc-dev@mcs.anl.gov</a><br>
Subject: Re: [petsc-dev] configuration error: Cannot compile C with mpicc<br>
<br>
<br>
CFLAGS=-03  should not be a 0 it should be an O for optimize<br>
<br>
<br>
<br>
<br>
> On Apr 24, 2015, at 1:33 PM, Jin, Shuangshuang <<a href="mailto:Shuangshuang.Jin@pnnl.gov">Shuangshuang.Jin@pnnl.gov</a>> wrote:<br>
><br>
> Hello, Petsc dev support team,<br>
><br>
> I was trying to install the latest dev version PETSc on a linxu computer. I got an error “Cannot compile C with mpicc”. Please see my configure.log attached. Could you please help?<br>
><br>
> Thanks,<br>
> Shuangshuang<br>
><br>
><br>
> <configure.log><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">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>
</div>
</div>
</body>
</html>