#11 closed defect (fixed)
ROPP FM compilation on g95
Reported by: | frae | Owned by: | frae |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ropp_fm | Version: | 0.8 |
Keywords: | Cc: |
Description
Complains about this (sorry) ...
In file ../common/ropp_fm.f90:139
- type(State1dHybridEC)
- x 1
Error: Derived type 'state1dhybridec' at (1) is being used before it is defined In file ../common/ropp_fm.f90:140
- type(Obs1dBangle)
- y 1
Error: Derived type 'obs1dbangle' at (1) is being used before it is defined In file ../common/ropp_fm.f90:148
- type(State1dHybridEC)
- x 1
Error: Derived type 'state1dhybridec' at (1) is being used before it is defined In file ../common/ropp_fm.f90:150
- type(Obs1dBangle)
- y 1
Error: Derived type 'obs1dbangle' at (1) is being used before it is defined In file ../common/ropp_fm.f90:159
- type(State1dHybridEC)
- x 1
Error: Derived type 'state1dhybridec' at (1) is being used before it is defined In file ../common/ropp_fm.f90:161
- type(Obs1dBangle)
- y 1
Error: Derived type 'obs1dbangle' at (1) is being used before it is defined In file ../common/ropp_fm.f90:226
- type(State1dHybridEC)
- x 1
Error: Derived type 'state1dhybridec' at (1) is being used before it is defined In file ../common/ropp_fm.f90:227
- type(Obs1dRefrac)
- y 1
Error: Derived type 'obs1drefrac' at (1) is being used before it is defined In file ../common/ropp_fm.f90:235
- type(State1dHybridEC)
- x 1
Error: Derived type 'state1dhybridec' at (1) is being used before it is defined In file ../common/ropp_fm.f90:237
- type(Obs1dRefrac)
- y 1
Error: Derived type 'obs1drefrac' at (1) is being used before it is defined Fatal Error: Too many errors, aborting. make[1]: * common/ropp_fm.o Error 1 make[1]: Leaving directory `/net/home/h02/frae/temp/ropp_fm/build' make: * [all-recursive] Error 1
Change history (4)
comment:1 by , 19 years ago
Owner: | changed from | to
---|
comment:2 by , 19 years ago
Possibly, the reason for the g95 compiler to fail was that ropp_fm used an outdated version of some of the Fortran 90 support files for automake. I have updated them for all ropp packages in changeset [646]. Could you please confirm (or otherwise) that this solves the problem?
Thanks,
Chris.
Hi,
is it possible that you didn't do a 'make uninstall' before trying to compile the most recent version? From the order of the files in the Makefile.am, the ropp_fm_types.f90 should be compiled before the ropp_fm.f90, and the former contains the right declarations. However, I changed the variable type names only recently - so it could be that the compiler picks up an older, installed version of the compiled module. I have checked in /data/nwp1/frcm/ropp/g95/include, and the version there was created on June 1st - so definitely to early to be used.
This raises a bit the question on how Fortram compilers search for module files - I would expect that a module file in the current directory (as in the build setup used for the ropp libraries) always takes precedence over those directories specified in any given -I option. But maybe I'm wrong?