I'm building petsc-dev and pflotran-dev on the following platform:
[bechtel ~]% cat /etc/redhat-release
Red Hat Enterprise Linux Client release 5.10 (Tikanga)
[bechtel ~]% uname -r
2.6.18-371.6.1.el5
[bechtel ~]% gfortran --version
GNU Fortran (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
I built petsc-dev with the following:
[bechtel ~/petsc]% ./configure --download-mpich=yes --download-hdf5=yes --download-fblaslapack=yes
Configure and make completed successfully, as did the test:
[bechtel ~/petsc]% make test
Running test examples to verify correct installation
Using PETSC_DIR=/data/home/systems/hendrenj/petsc and PETSC_ARCH=arch-linux2-c-debug
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process
Completed test examples
=========================================
Now to evaluate the computer systems you plan use - do:
make PETSC_DIR=/data/home/systems/hendrenj/petsc PETSC_ARCH=arch-linux2-c-debug streams NPMAX=<number of MPI processes you intend to use>
Here is the commit I am using in my copy of petsc-dev:
[bechtel ~/petsc]% git log -1 HEAD
commit 0c8c14c502e79aaeb7ec26e1cd1e476322d9010e
Author: Barry Smith <
bsm...@mcs.anl.gov>
Date: Wed Apr 16 13:56:11 2014 -0500
double http:// in message
Reported-by: "Jose E. Roman" <
jro...@dsic.upv.es>
I made sure to set my environment variables before running "make pflotran":
[bechtel ~/pflotran-dev/src/pflotran]% export PETSC_DIR=/data/home/systems/hendrenj/petsc
[bechtel ~/pflotran-dev/src/pflotran]% export PETSC_ARCH=arch-linux2-c-debug
I used the following clean checkout of pflotran:
[bechtel ~/pflotran-dev/src/pflotran]% hg parent
changeset: 7590:ca0f051e7274
tag: tip
user: Gautam Bisht <
gbi...@lbl.gov>
date: Tue Apr 22 12:06:30 2014 -0700
summary: made specific heat capacity of ice and water equal for surface-flow in TH mode.
[bechtel ~/pflotran-dev/src/pflotran]% hg status -q
[bechtel ~/pflotran-dev/src/pflotran]%
Then I attempted to compile:
[bechtel ~/pflotran-dev/src/pflotran]% make pflotran
This resulted in a variety of errors. Here are the first few errors,
along with some context:
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o dataset_base.o dataset_base.F90
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o hdf5_aux.o hdf5_aux.F90
hdf5_aux.F90:61.6:
use hdf5
1
Fatal Error: Parse error when checking module version for file 'hdf5.mod' opened at (1)
make: [hdf5_aux.o] Error 1 (ignored)
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o dataset_common_hdf5.o dataset_common_hdf5.F90
dataset_common_hdf5.F90:240.6:
use hdf5
1
Fatal Error: Parse error when checking module version for file 'hdf5.mod' opened at (1)
make: [dataset_common_hdf5.o] Error 1 (ignored)
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o material_aux.o material_aux.F90
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o saturation_function.o saturation_function.F90
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o material.o material.F90
material.F90:3.6:
use Dataset_Common_HDF5_class
1
Fatal Error: Can't open module file 'dataset_common_hdf5_class.mod' for reading at (1): No such file or directory
make: [material.o] Error 1 (ignored)
/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/bin/mpif90 -c -fPIC -Wall -Wno-unused-variable -Wno-unused-dummy-argument -g -O0 -I/data/home/systems/hendrenj/petsc/include -I/data/home/systems/hendrenj/petsc/arch-linux2-c-debug/include -I. -DPROCESS_MODEL -DCHUAN_CO2 -DGEOMECH -o mphase_pckr_mod.o mphase_pckr_mod.F90
mphase_pckr_mod.F90:3.6:
use Material_module
1
Fatal Error: Can't open module file 'material_module.mod' for reading at (1): No such file or directory
make: [mphase_pckr_mod.o] Error 1 (ignored)
I'm baffled as to why the some of these module files cannot be found -
they exist in locations specified with "-I" flags to gfortran. Some of
the other missing .mod files appear to be totally non-existent or not
yet compiled. Of coures, without these modules, make tries to soldier
on but ultimately fails:
gfortran: error: ./auxiliary.o: No such file or directory
gfortran: error: ./flash2_aux.o: No such file or directory
gfortran: error: ./immis_aux.o: No such file or directory
gfortran: error: ./mphase_aux.o: No such file or directory
gfortran: error: ./pm_base.o: No such file or directory
gfortran: error: ./pm_general.o: No such file or directory
gfortran: error: ./pm_flash2.o: No such file or directory
.
.
.
<snip>
.
.
.
gfortran: error: ./surface_flow.o: No such file or directory
gfortran: error: ./surface_init.o: No such file or directory
gfortran: error: ./surface_global.o: No such file or directory
gfortran: error: ./surface_realization.o: No such file or directory
gfortran: error: ./surface_simulation.o: No such file or directory
gfortran: error: ./surfsubsurface_simulation.o: No such file or directory
gfortran: error: ./surface_th.o: No such file or directory
gfortran: error: ./pflotran.o: No such file or directory
make: *** [pflotran] Error 1
Any assistance in resolving this issue would be greatly appreciated.
Regards,
Jay Hendren