<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 1, 2014 at 5:15 AM, Pierpaolo Minelli <span dir="ltr"><<a href="mailto:pierpaolo.minelli@ba.imip.cnr.it" target="_blank">pierpaolo.minelli@ba.imip.cnr.it</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>i have some problems when i try to configure latest version of petsc-dev. </div>

<div>I use this command that was working with a previous version:</div><div><br></div><div><div style="margin:0px;font-size:14px;font-family:Menlo">./configure --PETSC_DIR=/raid0/users/cscppm59/Installers/petsc --PETSC_ARCH=petsc_dev --with-debugger=idbc --with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort --CFLAGS="-openmp -parallel" --FFLAGS="-ftz -O3 -prec-div -xSSE2 -mcmodel medium -shared-intel -openmp -parallel -fpp" --with-large-file-io=1 --with-debugging=0 --with-mpiexec="mpirun -f ~/mpd.hosts -r ssh" --with-blas-lapack-dir=/opt/intel/mkl/lib/intel64/ --with-threadcomm --with-openmp --with-x=0 --download-superlu_dist --download-parmetis -download-hypre -download-ml --download-metis</div>

</div><div style="margin:0px;font-size:14px;font-family:Menlo"><br></div><div style="margin:0px;font-size:14px;font-family:Menlo">and i receive this error:</div><div style="margin:0px;font-size:14px;font-family:Menlo"><br>

</div><div style="margin:0px;font-size:14px;font-family:Menlo"><div style="margin:0px">*******************************************************************************</div><div style="margin:0px">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</div>

<div style="margin:0px">-------------------------------------------------------------------------------</div><div style="margin:0px">Fortran libraries cannot be used with C++ compiler.</div><div style="margin:0px"> Run with --with-fc=0 or --with-cxx=0</div>

<div style="margin:0px">*******************************************************************************</div><div style="margin:0px">  File "./config/configure.py", line 272, in petsc_configure</div><div style="margin:0px">

    framework.configure(out = sys.stdout)</div><div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/framework.py", line 935, in configure</div><div style="margin:0px">
    child.configure()</div>
<div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/compilers.py", line 1396, in configure</div><div style="margin:0px">    self.executeTest(self.checkFortranLibraries)</div>

<div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/base.py", line 126, in executeTest</div><div style="margin:0px">    ret = test(*args,**kargs)</div><div style="margin:0px">

  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/compilers.py", line 1050, in checkFortranLibraries</div><div style="margin:0px">    raise RuntimeError('Fortran libraries cannot be used with C++ compiler.\n Run with --with-fc=0 or --with-cxx=0')</div>

<div style="margin:0px">================================================================================</div><div style="margin:0px">Finishing Configure Run at Tue Apr  1 11:33:05 2014</div><div style="margin:0px">================================================================================</div>

</div></div></blockquote><div><br></div><div>Send configure.log for this case. You can also try --with-cxxlib-autodetect=0. This means you might have to put the C++</div><div>compiler libraries in --LIBS=<>.</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 style="word-wrap:break-word"><div style="margin:0px;font-size:14px;font-family:Menlo"><div style="margin:0px">So i tried to configure using --with-cxx=0 since i use fortran and i receive a new error:</div><div style="margin:0px">

<br></div><div style="margin:0px"><div style="margin:0px">*******************************************************************************</div><div style="margin:0px">         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):</div>

<div style="margin:0px">-------------------------------------------------------------------------------</div><div style="margin:0px">Error: Hypre requires C++ compiler. None specified</div><div style="margin:0px">*******************************************************************************</div>

<div style="margin:0px">  File "./config/configure.py", line 272, in petsc_configure</div><div style="margin:0px">    framework.configure(out = sys.stdout)</div><div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/framework.py", line 935, in configure</div>

<div style="margin:0px">    child.configure()</div><div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 605, in configure</div><div style="margin:0px">

    self.executeTest(self.configureLibrary)</div><div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/base.py", line 126, in executeTest</div><div style="margin:0px">    ret = test(*args,**kargs)</div>

<div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 533, in configureLibrary</div><div style="margin:0px">    for location, directory, lib, incl in self.generateGuesses():</div>

<div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 266, in generateGuesses</div><div style="margin:0px">    d = self.checkDownload(1)</div><div style="margin:0px">

  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 382, in checkDownload</div><div style="margin:0px">    return self.getInstallDir()</div><div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 221, in getInstallDir</div>

<div style="margin:0px">    return os.path.abspath(self.Install())</div><div style="margin:0px">  File "/home/users/cscppm59/Installers/petsc/config/PETSc/packages/hypre.py", line 48, in Install</div><div style="margin:0px">

    raise RuntimeError('Error: Hypre requires C++ compiler. None specified')</div><div style="margin:0px">================================================================================</div><div style="margin:0px">

Finishing Configure Run at Tue Apr  1 11:45:23 2014</div><div style="margin:0px">================================================================================</div><div style="margin:0px"><br></div><div style="margin:0px">

Is there someone that could give me a workaround to solve this problem?</div><div style="margin:0px"><br></div><div style="margin:0px">Thanks in advance</div><div style="margin:0px"><br></div></div></div><div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>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>