[petsc-users] problems compiling

Dominik Szczerba dominik at itis.ethz.ch
Fri Jan 20 09:43:09 CST 2012


I am building on a Cray system with crayftn fortran compiler. I
specify --with-fc=crayftn and --FFLAGS=-em. Despite the latter, I am
still getting the below cited error. Interestingly, the mod file IS
THERE:

> find /tmp/petsc-0Bnd1w -iname \*.mod
/tmp/petsc-0Bnd1w/config.compilers/CONFIGTEST.mod

How do I go on from here?

Thanks
Dominik



================================================================================
TEST checkFortranModuleInclude from
config.compilers(/users/dsz/pack/petsc-3.2-p5/config/BuildSystem/config/compilers.py:1155)
TESTING: checkFortranModuleInclude from
config.compilers(config/BuildSystem/config/compilers.py:1155)
  Figures out what flag is used to specify the include path for Fortran modules
        Pushing language FC
sh: crayftn -c -o /tmp/petsc-0Bnd1w/config.compilers/conftest.o
-I/tmp/petsc-0Bnd1w/config.compilers
-I/tmp/petsc-0Bnd1w/config.setCompilers -em -O3
/tmp/petsc-0Bnd1w/config.compilers/conftest.F
Executing: crayftn -c -o /tmp/petsc-0Bnd1w/config.compilers/conftest.o
-I/tmp/petsc-0Bnd1w/config.compilers
-I/tmp/petsc-0Bnd1w/config.setCompilers -em -O3
/tmp/petsc-0Bnd1w/config.compilers/conftest.F
sh:
Successful compile:
Source:
      module configtest
      integer testint
      parameter (testint = 42)
      end module configtest
*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
for details):
-------------------------------------------------------------------------------
Fortran module was not created during the compile.
configtest.mod/CONFIGTEST.mod not found
*******************************************************************************
  File "/users/dsz/pack/petsc-3.2-p5/config/configure.py", line 283,
in petsc_configure
    framework.configure(out = sys.stdout)
  File "/users/dsz/pack/petsc-3.2-p5/config/BuildSystem/config/framework.py",
line 925, in configure
    child.configure()
  File "/users/dsz/pack/petsc-3.2-p5/config/BuildSystem/config/compilers.py",
line 1338, in configure
    self.executeTest(self.checkFortranModuleInclude)
  File "/users/dsz/pack/petsc-3.2-p5/config/BuildSystem/config/base.py",
line 115, in executeTest
    ret = apply(test, args,kargs)
  File "/users/dsz/pack/petsc-3.2-p5/config/BuildSystem/config/compilers.py",
line 1187, in checkFortranModuleInclude
    raise RuntimeError('Fortran module was not created during the
compile. configtest.mod/CONFIGTEST.mod not found')


More information about the petsc-users mailing list