Compilation problem with g95

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
orodrig
Posts: 4
Joined: Thu Apr 10, 2008 3:45 pm
Location: SiPLAB

Compilation problem with g95

#1 Unread post by orodrig »

Hi there

I fixed all paths in the *.mk files and tried to compile the model.

The make command produces lots of comments on the display and suddendly stops with the message:

cc1: internal compiler error: Aborted

Any suggestions?

Thanks in advance.

Orlando

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#2 Unread post by kate »

Get gfortran? Which source file gave the trouble? You could report it to the g95 people but they aren't likely to fix it quickly.

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

#3 Unread post by m.hadfield »

Sounds to me like an compiler installation problem. Can you compile and link a minimal test program?

G95 works for me. But, by all means try Gfortran, as Kate suggests.

orodrig
Posts: 4
Joined: Thu Apr 10, 2008 3:45 pm
Location: SiPLAB

#4 Unread post by orodrig »

Well, this what I get during compilation with g95 on my Fedora Core 3:

makefile:226: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
makefile:226: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS

./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I ROMS/Nonlinear -I ROMS/SeaIce -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I Master -I Compilers --silent --moddir Build ROMS/Nonlinear/bbl.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/biology.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/initial.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/lmd_bkpp.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/main3d.F ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/my25_corstep.F ROMS/Nonlinear/my25_prestep.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/output.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/prsgrd.F ROMS/Nonlinear/radiation_stress.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/sediment.F ROMS/Nonlinear/set_avg.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/set_depth.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/set_tides.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/step2d.F ROMS/Nonlinear/step3d_t.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/tkebc_im.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/v2dbc_im.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/zetabc.F ROMS/Functionals/analytical.F ROMS/SeaIce/seaice.F ROMS/Utility/abort.F ROMS/Utility/back_cost.F ROMS/Utility/back_cov.F ROMS/Utility/back_step.F ROMS/Utility/cgradient.F ROMS/Utility/checkdefs.F ROMS/Utility/checkerror.F ROMS/Utility/checkvars.F ROMS/Utility/close_io.F ROMS/Utility/congrad.F ROMS/Utility/cost_grad.F ROMS/Utility/cost_norm.F ROMS/Utility/def_avg.F ROMS/Utility/def_diags.F ROMS/Utility/def_floats.F ROMS/Utility/def_gst.F ROMS/Utility/def_hessian.F ROMS/Utility/def_his.F ROMS/Utility/def_impulse.F ROMS/Utility/def_info.F ROMS/Utility/def_ini.F ROMS/Utility/def_mod.F ROMS/Utility/def_norm.F ROMS/Utility/def_rst.F ROMS/Utility/def_station.F ROMS/Utility/def_tides.F ROMS/Utility/def_var.F ROMS/Utility/descent.F ROMS/Utility/distribute.F ROMS/Utility/dotproduct.F ROMS/Utility/downhill.F ROMS/Utility/extract_obs.F ROMS/Utility/extract_sta.F ROMS/Utility/frc_adjust.F ROMS/Utility/gasdev.F ROMS/Utility/get_2dfld.F ROMS/Utility/get_2dfldr.F ROMS/Utility/get_3dfld.F ROMS/Utility/get_3dfldr.F ROMS/Utility/get_bounds.F ROMS/Utility/get_cycle.F ROMS/Utility/get_date.F ROMS/Utility/get_grid.F ROMS/Utility/get_gst.F ROMS/Utility/get_ngfld.F ROMS/Utility/get_ngfldr.F ROMS/Utility/get_state.F ROMS/Utility/get_varcoords.F ROMS/Utility/grid_coords.F ROMS/Utility/impulse.F ROMS/Utility/ini_adjust.F ROMS/Utility/inp_par.F ROMS/Utility/interpolate.F ROMS/Utility/lubksb.F ROMS/Utility/ludcmp.F ROMS/Utility/metrics.F ROMS/Utility/mp_exchange.F ROMS/Utility/mp_routines.F ROMS/Utility/nf_fread2d.F ROMS/Utility/nf_fread3d.F ROMS/Utility/nf_fread4d.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/normalization.F ROMS/Utility/nrutil.F ROMS/Utility/obs_cost.F ROMS/Utility/obs_depth.F ROMS/Utility/obs_initial.F ROMS/Utility/obs_read.F ROMS/Utility/obs_scale.F ROMS/Utility/obs_write.F ROMS/Utility/oi_update.F ROMS/Utility/opencdf.F ROMS/Utility/packing.F ROMS/Utility/ran1.F ROMS/Utility/ran_state.F ROMS/Utility/regrid.F ROMS/Utility/set_2dfld.F ROMS/Utility/set_2dfldr.F ROMS/Utility/set_3dfld.F ROMS/Utility/set_3dfldr.F ROMS/Utility/set_diags.F ROMS/Utility/set_ngfld.F ROMS/Utility/set_ngfldr.F ROMS/Utility/set_scoord.F ROMS/Utility/set_weights.F ROMS/Utility/shapiro.F ROMS/Utility/state_addition.F ROMS/Utility/state_copy.F ROMS/Utility/state_dotprod.F ROMS/Utility/state_initialize.F ROMS/Utility/state_scale.F ROMS/Utility/stats_modobs.F ROMS/Utility/stiffness.F ROMS/Utility/timers.F ROMS/Utility/utility.F ROMS/Utility/white_noise.F ROMS/Utility/wpoints.F ROMS/Utility/wrt_avg.F ROMS/Utility/wrt_diags.F ROMS/Utility/wrt_floats.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/wrt_his.F ROMS/Utility/wrt_info.F ROMS/Utility/wrt_ini.F ROMS/Utility/wrt_rst.F ROMS/Utility/wrt_station.F ROMS/Utility/wrt_tides.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_average.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_biology.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_clima.F ROMS/Modules/mod_coupler.F ROMS/Modules/mod_coupling.F ROMS/Modules/mod_diags.F ROMS/Modules/mod_eclight.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/mod_floats.F ROMS/Modules/mod_forces.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_grid.F ROMS/Modules/mod_iounits.F ROMS/Modules/mod_kinds.F ROMS/Modules/mod_mixing.F ROMS/Modules/mod_ncparam.F ROMS/Modules/mod_nesting.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_obs.F ROMS/Modules/mod_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_param.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sediment.F ROMS/Modules/mod_sources.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_strings.F ROMS/Modules/mod_tides.F Master/esmf_roms.F Master/master.F Master/ocean_control.F Master/ocean_coupler.F Master/propagator.F Master/roms_export.F Master/roms_import.F > Build/MakeDepend
cp -p /home/orodrig/FORdoc/ROMS/trunk/Compilers/make_macros.mk Build
cd Build; g95 -c -fno-second-underscore -O3 -ffast-math bbl.f90
/usr/bin/cpp -P -traditional -DLINUX -DI686 -DG95 -D'ROOT_DIR="/home/orodrig/FORdoc/ROMS/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="upwelling.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/orodrig/FORdoc/ROMS/trunk/ROMS/Functionals"' -D'SVN_REV="exported"' -IROMS/Include -IROMS/Nonlinear -IROMS/SeaIce -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="./ROMS/Include"' ROMS/Nonlinear/bc_2d.F > Build/bc_2d.f90

cc1: internal compiler error: Aborted

orodrig
Posts: 4
Joined: Thu Apr 10, 2008 3:45 pm
Location: SiPLAB

#5 Unread post by orodrig »

O.K., I fixed the Linux-g95.mk one more time, and the "cc1" message dissapeared, but now I get the error

Fatal Error: Can't open module file 'mod_param.mod' at (1) for reading: No such file or directory
make: *** [Build/exchange_2d.o] Error 1

My perl version is

This is perl, v5.8.5 built for i386-linux-thread-multi

Copyright 1987-2004, Larry Wall

The Build/MakeDepend says

Build/bbl.o: mb_bbl.h set_bounds.h tile.h sg_bbl.h ssw_bbl.h cppdefs.h
Build/bbl.o: globaldefs.h upwelling.h
Build/bbl.f90: mb_bbl.h set_bounds.h tile.h sg_bbl.h ssw_bbl.h cppdefs.h
Build/bbl.f90: globaldefs.h upwelling.h
Build/bbl.o: Build/bc_2d.o Build/bbl.f90

Build/bc_2d.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/bc_2d.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/bc_2d.o: Build/exchange_2d.o Build/bc_2d.f90

Build/bc_3d.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/bc_3d.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/bc_3d.o: Build/exchange_3d.o Build/bc_3d.f90

Build/biology.o: ecosim.h set_bounds.h tile.h nemuro.h fasham.h npzd_Franks.h
Build/biology.o: npzd_Powell.h cppdefs.h globaldefs.h upwelling.h
Build/biology.f90: ecosim.h set_bounds.h tile.h nemuro.h fasham.h npzd_Franks.h
Build/biology.f90: npzd_Powell.h cppdefs.h globaldefs.h upwelling.h

Build/bulk_flux.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/bulk_flux.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/bulk_flux.o: Build/exchange_2d.o Build/bulk_flux.f90

Build/bvf_mix.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/bvf_mix.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/bvf_mix.o: Build/exchange_3d.o Build/bvf_mix.f90

Build/conv_2d.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/conv_2d.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/conv_2d.o: Build/bc_2d.o Build/conv_2d.f90

Build/conv_3d.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/conv_3d.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/conv_3d.o: Build/bc_3d.o Build/conv_3d.f90

Build/diag.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/diag.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/exchange_2d.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/exchange_2d.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h

Build/exchange_3d.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/exchange_3d.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h

Build/forcing.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/forcing.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/get_data.o: cppdefs.h globaldefs.h upwelling.h
Build/get_data.f90: cppdefs.h globaldefs.h upwelling.h

Build/get_idata.o: cppdefs.h globaldefs.h upwelling.h
Build/get_idata.f90: cppdefs.h globaldefs.h upwelling.h

Build/gls_corstep.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/gls_corstep.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/gls_corstep.o: Build/exchange_3d.o Build/tkebc_im.o Build/gls_corstep.f90

Build/gls_prestep.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/gls_prestep.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/gls_prestep.o: Build/exchange_3d.o Build/tkebc_im.o Build/gls_prestep.f90

Build/ini_fields.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/ini_fields.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/ini_fields.o: Build/exchange_2d.o Build/exchange_3d.o Build/set_depth.o
Build/ini_fields.o: Build/t3dbc_im.o Build/u2dbc_im.o Build/u3dbc_im.o
Build/ini_fields.o: Build/v2dbc_im.o Build/v3dbc_im.o Build/zetabc.o
Build/ini_fields.o: Build/ini_fields.f90

Build/initial.o: cppdefs.h globaldefs.h upwelling.h
Build/initial.f90: cppdefs.h globaldefs.h upwelling.h
Build/initial.o: Build/omega.o Build/rho_eos.o Build/set_depth.o
Build/initial.o: Build/set_massflux.o Build/initial.f90

Build/interp_floats.o: cppdefs.h globaldefs.h upwelling.h
Build/interp_floats.f90: cppdefs.h globaldefs.h upwelling.h

Build/lmd_bkpp.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_bkpp.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_bkpp.o: Build/bc_2d.o Build/lmd_bkpp.f90

Build/lmd_skpp.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_skpp.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_skpp.o: Build/bc_2d.o Build/lmd_skpp.f90

Build/lmd_swfrac.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_swfrac.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h

Build/lmd_vmix.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_vmix.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/lmd_vmix.o: Build/bc_3d.o Build/lmd_bkpp.o Build/lmd_skpp.o
Build/lmd_vmix.o: Build/lmd_vmix.f90

Build/main2d.o: cppdefs.h globaldefs.h upwelling.h
Build/main2d.f90: cppdefs.h globaldefs.h upwelling.h
Build/main2d.o: Build/diag.o Build/forcing.o Build/ini_fields.o
Build/main2d.o: Build/radiation_stress.o Build/set_avg.o Build/set_tides.o
Build/main2d.o: Build/set_vbc.o Build/step2d.o Build/step_floats.o
Build/main2d.o: Build/main2d.f90

Build/main3d.o: cppdefs.h globaldefs.h upwelling.h
Build/main3d.f90: cppdefs.h globaldefs.h upwelling.h
Build/main3d.o: Build/bbl.o Build/biology.o Build/bulk_flux.o Build/bvf_mix.o
Build/main3d.o: Build/diag.o Build/forcing.o Build/gls_corstep.o
Build/main3d.o: Build/gls_prestep.o Build/ini_fields.o Build/lmd_vmix.o
Build/main3d.o: Build/my25_corstep.o Build/my25_prestep.o Build/omega.o
Build/main3d.o: Build/radiation_stress.o Build/rho_eos.o Build/rhs3d.o
Build/main3d.o: Build/sediment.o Build/set_avg.o Build/set_massflux.o
Build/main3d.o: Build/set_tides.o Build/set_vbc.o Build/set_zeta.o
Build/main3d.o: Build/step2d.o Build/step3d_t.o Build/step3d_uv.o
Build/main3d.o: Build/step_floats.o Build/wvelocity.o Build/main3d.f90

Build/mpdata_adiff.o: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/mpdata_adiff.f90: set_bounds.h cppdefs.h globaldefs.h upwelling.h
Build/mpdata_adiff.o: Build/bc_3d.o Build/mpdata_adiff.f90

Build/my25_corstep.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/my25_corstep.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/my25_corstep.o: Build/exchange_3d.o Build/tkebc_im.o
Build/my25_corstep.o: Build/my25_corstep.f90

Build/my25_prestep.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/my25_prestep.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/my25_prestep.o: Build/exchange_3d.o Build/tkebc_im.o
Build/my25_prestep.o: Build/my25_prestep.f90

Build/obc_volcons.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/obc_volcons.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/omega.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/omega.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/omega.o: Build/bc_3d.o Build/omega.f90

Build/output.o: cppdefs.h globaldefs.h upwelling.h
Build/output.f90: cppdefs.h globaldefs.h upwelling.h

Build/pre_step3d.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/pre_step3d.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/pre_step3d.o: Build/exchange_3d.o Build/t3dbc_im.o Build/pre_step3d.f90

Build/prsgrd.o: prsgrd32.h set_bounds.h tile.h prsgrd31.h prsgrd42.h prsgrd40.h
Build/prsgrd.o: prsgrd44.h cppdefs.h globaldefs.h upwelling.h
Build/prsgrd.f90: prsgrd32.h set_bounds.h tile.h prsgrd31.h prsgrd42.h
Build/prsgrd.f90: prsgrd40.h prsgrd44.h cppdefs.h globaldefs.h upwelling.h

Build/radiation_stress.o: set_bounds.h tile.h cppdefs.h globaldefs.h
Build/radiation_stress.o: upwelling.h
Build/radiation_stress.f90: set_bounds.h tile.h cppdefs.h globaldefs.h
Build/radiation_stress.f90: upwelling.h
Build/radiation_stress.o: Build/bc_2d.o Build/bc_3d.o Build/exchange_2d.o
Build/radiation_stress.o: Build/exchange_3d.o Build/radiation_stress.f90

Build/rho_eos.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/rho_eos.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/rho_eos.o: Build/exchange_2d.o Build/exchange_3d.o Build/rho_eos.f90

Build/rhs3d.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/rhs3d.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/rhs3d.o: Build/exchange_2d.o Build/pre_step3d.o Build/prsgrd.o
Build/rhs3d.o: Build/t3dmix.o Build/uv3dmix.o Build/rhs3d.f90

Build/sediment.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/sediment.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/sediment.o: Build/bc_3d.o Build/exchange_2d.o Build/exchange_3d.o
Build/sediment.o: Build/t3dbc_im.o Build/sediment.f90

Build/set_avg.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_avg.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/set_data.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_data.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_data.o: Build/exchange_2d.o Build/exchange_3d.o Build/set_data.f90

Build/set_depth.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_depth.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_depth.o: Build/exchange_2d.o Build/exchange_3d.o Build/set_depth.f90

Build/set_massflux.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_massflux.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_massflux.o: Build/exchange_3d.o Build/set_massflux.f90

Build/set_tides.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_tides.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_tides.o: Build/exchange_2d.o Build/set_tides.f90

Build/set_vbc.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_vbc.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_vbc.o: Build/bc_2d.o Build/set_vbc.f90

Build/set_zeta.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_zeta.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/set_zeta.o: Build/exchange_2d.o Build/set_zeta.f90

Build/step2d.o: step2d_LF_AM3.h set_bounds.h tile.h cppdefs.h globaldefs.h
Build/step2d.o: upwelling.h
Build/step2d.f90: step2d_LF_AM3.h set_bounds.h tile.h cppdefs.h globaldefs.h
Build/step2d.f90: upwelling.h
Build/step2d.o: Build/bc_2d.o Build/exchange_2d.o Build/obc_volcons.o
Build/step2d.o: Build/set_depth.o Build/u2dbc_im.o Build/v2dbc_im.o
Build/step2d.o: Build/zetabc.o Build/step2d.f90

Build/step3d_t.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/step3d_t.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/step3d_t.o: Build/exchange_3d.o Build/mpdata_adiff.o Build/t3dbc_im.o
Build/step3d_t.o: Build/step3d_t.f90

Build/step3d_uv.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/step3d_uv.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/step3d_uv.o: Build/exchange_2d.o Build/exchange_3d.o Build/u3dbc_im.o
Build/step3d_uv.o: Build/v3dbc_im.o Build/step3d_uv.f90

Build/step_floats.o: cppdefs.h globaldefs.h upwelling.h
Build/step_floats.f90: cppdefs.h globaldefs.h upwelling.h

Build/t3dbc_im.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/t3dbc_im.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/t3dmix.o: t3dmix4_geo.h set_bounds.h tile.h t3dmix2_geo.h t3dmix2_s.h
Build/t3dmix.o: t3dmix4_iso.h t3dmix4_s.h t3dmix2_iso.h cppdefs.h globaldefs.h
Build/t3dmix.o: upwelling.h
Build/t3dmix.f90: t3dmix4_geo.h set_bounds.h tile.h t3dmix2_geo.h t3dmix2_s.h
Build/t3dmix.f90: t3dmix4_iso.h t3dmix4_s.h t3dmix2_iso.h cppdefs.h
Build/t3dmix.f90: globaldefs.h upwelling.h

Build/tkebc_im.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/tkebc_im.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/u2dbc_im.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/u2dbc_im.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/u3dbc_im.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/u3dbc_im.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/uv3dmix.o: uv3dmix2_s.h set_bounds.h tile.h uv3dmix2_geo.h uv3dmix4_s.h
Build/uv3dmix.o: uv3dmix4_geo.h cppdefs.h globaldefs.h upwelling.h
Build/uv3dmix.f90: uv3dmix2_s.h set_bounds.h tile.h uv3dmix2_geo.h uv3dmix4_s.h
Build/uv3dmix.f90: uv3dmix4_geo.h cppdefs.h globaldefs.h upwelling.h

Build/v2dbc_im.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/v2dbc_im.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/v3dbc_im.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/v3dbc_im.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h

Build/wvelocity.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/wvelocity.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/wvelocity.o: Build/bc_3d.o Build/exchange_2d.o Build/wvelocity.f90

Build/zetabc.o: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
Build/zetabc.f90: set_bounds.h tile.h cppdefs.h globaldefs.h upwelling.h
bbl_mod.mod: bbl.o
bc_2d_mod.mod: bc_2d.o
bc_3d_mod.mod: bc_3d.o
biology_mod.mod: biology.o
bulk_flux_mod.mod: bulk_flux.o
bvf_mix_mod.mod: bvf_mix.o
conv_2d_mod.mod: conv_2d.o
conv_3d_mod.mod: conv_3d.o
diag_mod.mod: diag.o
exchange_2d_mod.mod: exchange_2d.o
exchange_3d_mod.mod: exchange_3d.o
forcing_mod.mod: forcing.o
gls_corstep_mod.mod: gls_corstep.o
gls_prestep_mod.mod: gls_prestep.o
ini_fields_mod.mod: ini_fields.o
lmd_bkpp_mod.mod: lmd_bkpp.o
lmd_skpp_mod.mod: lmd_skpp.o
lmd_vmix_mod.mod: lmd_vmix.o
mpdata_adiff_mod.mod: mpdata_adiff.o
my25_corstep_mod.mod: my25_corstep.o
my25_prestep_mod.mod: my25_prestep.o
obc_volcons_mod.mod: obc_volcons.o
omega_mod.mod: omega.o
pre_step3d_mod.mod: pre_step3d.o
prsgrd_mod.mod: prsgrd.o
radiation_stress_mod.mod: radiation_stress.o
rho_eos_mod.mod: rho_eos.o
rhs3d_mod.mod: rhs3d.o
sediment_mod.mod: sediment.o
set_avg_mod.mod: set_avg.o
set_depth_mod.mod: set_depth.o
set_massflux_mod.mod: set_massflux.o
set_tides_mod.mod: set_tides.o
set_vbc_mod.mod: set_vbc.o
set_zeta_mod.mod: set_zeta.o
step2d_mod.mod: step2d.o
step3d_t_mod.mod: step3d_t.o
step3d_uv_mod.mod: step3d_uv.o
step_floats_mod.mod: step_floats.o
t3dbc_mod.mod: t3dbc_im.o
t3dmix_mod.mod: t3dmix.o
tkebc_mod.mod: tkebc_im.o
u2dbc_mod.mod: u2dbc_im.o
u3dbc_mod.mod: u3dbc_im.o
uv3dmix_mod.mod: uv3dmix.o
v2dbc_mod.mod: v2dbc_im.o
v3dbc_mod.mod: v3dbc_im.o
wvelocity_mod.mod: wvelocity.o
zetabc_mod.mod: zetabc.o

Any suggestions?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#6 Unread post by kate »

Type "make clean" and try again? You are missing some lines in the exchange dependencies (and many more):

Code: Select all

Build/exchange_2d.o: set_bounds.h cppdefs.h globaldefs.h nep5.h
Build/exchange_2d.f90: set_bounds.h cppdefs.h globaldefs.h nep5.h
Build/exchange_2d.o: Build/mod_param.o Build/exchange_2d.f90

Build/exchange_3d.o: set_bounds.h cppdefs.h globaldefs.h nep5.h
Build/exchange_3d.f90: set_bounds.h cppdefs.h globaldefs.h nep5.h
Build/exchange_3d.o: Build/mod_param.o Build/exchange_3d.f90
It needs to know to compile mod_param.F first and it doesn't for some reason. You don't seem to have any of the mod_xx routines listed at all. Did you somehow leave the Modules directory out? It is shown in your earlier post.

orodrig
Posts: 4
Joined: Thu Apr 10, 2008 3:45 pm
Location: SiPLAB

#7 Unread post by orodrig »

Hi there (again).

This is what I have found about the installation:

1) If you install a binary netcdf package (my case) then the corresponding modules will be produced as if you have gfortran installed on your machine. Therefore any compilation with g95 will produce lots of errors.

2) I removed my old ROMS directory and unpack the files again. Then I introduced the necessary changes in the makefile and in the Compilers/Linux-gfortran.mk file.

3) An important modification of the makefile, for those using g77 and gfortran simultaneously (my case), consists in setting up the right path for the gfortran cpp compiler.

After those changes the compilation started to look O.K., unitl I got the message

Fatal Error: Reading module netcdf at line 22 column 34: Expected string

Any suggestions?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#8 Unread post by kate »

I suggest you try compiling netcdf from source. Then you know you used the same compiler as you are using on ROMS. Sometimes there are problems when using netcdf.mod from a different version of the same compiler even.

Post Reply