[petsc-dev] Fortran libraries cannot be used with C++ compiler
Pierpaolo Minelli
pierpaolo.minelli at ba.imip.cnr.it
Tue Apr 1 05:15:22 CDT 2014
Hi,
i have some problems when i try to configure latest version of petsc-dev.
I use this command that was working with a previous version:
./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
and i receive this error:
*******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
-------------------------------------------------------------------------------
Fortran libraries cannot be used with C++ compiler.
Run with --with-fc=0 or --with-cxx=0
*******************************************************************************
File "./config/configure.py", line 272, in petsc_configure
framework.configure(out = sys.stdout)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/framework.py", line 935, in configure
child.configure()
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/compilers.py", line 1396, in configure
self.executeTest(self.checkFortranLibraries)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/base.py", line 126, in executeTest
ret = test(*args,**kargs)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/compilers.py", line 1050, in checkFortranLibraries
raise RuntimeError('Fortran libraries cannot be used with C++ compiler.\n Run with --with-fc=0 or --with-cxx=0')
================================================================================
Finishing Configure Run at Tue Apr 1 11:33:05 2014
================================================================================
So i tried to configure using --with-cxx=0 since i use fortran and i receive a new error:
*******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
-------------------------------------------------------------------------------
Error: Hypre requires C++ compiler. None specified
*******************************************************************************
File "./config/configure.py", line 272, in petsc_configure
framework.configure(out = sys.stdout)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/framework.py", line 935, in configure
child.configure()
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 605, in configure
self.executeTest(self.configureLibrary)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/base.py", line 126, in executeTest
ret = test(*args,**kargs)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 533, in configureLibrary
for location, directory, lib, incl in self.generateGuesses():
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 266, in generateGuesses
d = self.checkDownload(1)
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 382, in checkDownload
return self.getInstallDir()
File "/home/users/cscppm59/Installers/petsc/config/BuildSystem/config/package.py", line 221, in getInstallDir
return os.path.abspath(self.Install())
File "/home/users/cscppm59/Installers/petsc/config/PETSc/packages/hypre.py", line 48, in Install
raise RuntimeError('Error: Hypre requires C++ compiler. None specified')
================================================================================
Finishing Configure Run at Tue Apr 1 11:45:23 2014
================================================================================
Is there someone that could give me a workaround to solve this problem?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140401/83c2ec83/attachment.html>
More information about the petsc-dev
mailing list