Problem with compiling build.bash in case of upwelling

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
leung
Posts: 3
Joined: Fri Dec 15, 2017 6:07 pm
Location: South China Sea Institute of Oceanology,CAS

Problem with compiling build.bash in case of upwelling

#1 Unread post by leung »

Hello!everybody. I am new to ROMS. Now I am trying to run the upwelling. But I met some troubles when I complied the build.bash. So could anyone help me to fix out the errors as fllowing?

./build.bash: line 161: FC: command not found
rm -f -r core *.ipo /public/home/leung/src/upwelling/Build /public/home/leung/make_macros.mk
: No such file or directory
makefile:239: INCLUDING FILE /public/home/leung/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
svn: The path '.' appears to be part of a Subversion 1.7 or greater
working copy. Please upgrade your Subversion client to use this
working copy.
cp -f /public/software/mathlib/netcdf/4.1.3/intel/include/netcdf.mod /public/home/leung/src/upwelling/Build
cp -f /public/software/mathlib/netcdf/4.1.3/intel/include/typesizes.mod /public/home/leung/src/upwelling/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/public/home/leung/src/upwelling/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /public/home/leung/src/upwelling -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /public/home/leung/src/upwelling -I Master -I Compilers --silent --moddir /public/home/leung/src/upwelling/Build ROMS/Nonlinear/bbl.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/hmixing.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/nesting.F ROMS/Nonlinear/obc_adjust.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/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/vwalk_floats.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Functionals/analytical.F ROMS/Utility/abort.F ROMS/Utility/array_modes.F ROMS/Utility/back_cost.F ROMS/Utility/cgradient.F ROMS/Utility/checkadj.F ROMS/Utility/checkdefs.F ROMS/Utility/checkerror.F ROMS/Utility/check_multifile.F ROMS/Utility/checkvars.F ROMS/Utility/close_io.F ROMS/Utility/comp_Jb0.F ROMS/Utility/congrad.F ROMS/Utility/convolve.F ROMS/Utility/cost_grad.F ROMS/Utility/dateclock.F ROMS/Utility/def_avg.F ROMS/Utility/def_dai.F ROMS/Utility/def_diags.F ROMS/Utility/def_dim.F ROMS/Utility/def_error.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_lanczos.F ROMS/Utility/def_mod.F ROMS/Utility/def_norm.F ROMS/Utility/def_quick.F ROMS/Utility/def_rst.F ROMS/Utility/def_station.F ROMS/Utility/def_tides.F ROMS/Utility/def_var.F ROMS/Utility/distribute.F ROMS/Utility/dotproduct.F ROMS/Utility/erf.F ROMS/Utility/extract_obs.F ROMS/Utility/extract_sta.F ROMS/Utility/frc_weak.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_grid.F ROMS/Utility/get_gst.F ROMS/Utility/get_ngfld.F ROMS/Utility/get_ngfldr.F ROMS/Utility/get_nudgcoef.F ROMS/Utility/get_state.F ROMS/Utility/get_varcoords.F ROMS/Utility/get_wetdry.F ROMS/Utility/grid_coords.F ROMS/Utility/ini_adjust.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/ini_lanczos.F ROMS/Utility/inner2state.F ROMS/Utility/inp_par.F ROMS/Utility/inquiry.F ROMS/Utility/interpolate.F ROMS/Utility/lanc_resid.F ROMS/Utility/lbc.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_bry.F ROMS/Utility/nf_fread2d.F ROMS/Utility/nf_fread3d_bry.F ROMS/Utility/nf_fread3d.F ROMS/Utility/nf_fread4d.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/normalization.F ROMS/Utility/nrutil.F ROMS/Utility/ntimestep.F ROMS/Utility/obs_cost.F ROMS/Utility/obs_depth.F ROMS/Utility/obs_initial.F ROMS/Utility/obs_k2z.F ROMS/Utility/obs_read.F ROMS/Utility/obs_write.F ROMS/Utility/packing.F ROMS/Utility/posterior.F ROMS/Utility/posterior_var.F ROMS/Utility/ran1.F ROMS/Utility/random_ic.F ROMS/Utility/ran_state.F ROMS/Utility/read_asspar.F ROMS/Utility/read_biopar.F ROMS/Utility/read_couplepar.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/read_fltpar.F ROMS/Utility/read_phypar.F ROMS/Utility/read_sedpar.F ROMS/Utility/read_stapar.F ROMS/Utility/regrid.F ROMS/Utility/rep_matrix.F ROMS/Utility/round.F ROMS/Utility/rpcg_lanczos.F ROMS/Utility/set_2dfld.F ROMS/Utility/set_2dfldr.F ROMS/Utility/set_3dfld.F ROMS/Utility/set_3dfldr.F ROMS/Utility/set_contact.F ROMS/Utility/set_diags.F ROMS/Utility/set_masks.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/sqlq.F ROMS/Utility/state_addition.F ROMS/Utility/state_copy.F ROMS/Utility/state_dotprod.F ROMS/Utility/state_initialize.F ROMS/Utility/state_product.F ROMS/Utility/state_scale.F ROMS/Utility/stats.F ROMS/Utility/stats_modobs.F ROMS/Utility/stiffness.F ROMS/Utility/strings.F ROMS/Utility/sum_grad.F ROMS/Utility/sum_imp.F ROMS/Utility/time_corr.F ROMS/Utility/timers.F ROMS/Utility/uv_rotate.F ROMS/Utility/vorticity.F ROMS/Utility/white_noise.F ROMS/Utility/wpoints.F ROMS/Utility/wrt_aug_imp.F ROMS/Utility/wrt_avg.F ROMS/Utility/wrt_dai.F ROMS/Utility/wrt_diags.F ROMS/Utility/wrt_error.F ROMS/Utility/wrt_evolved.F ROMS/Utility/wrt_floats.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/wrt_his.F ROMS/Utility/wrt_impulse.F ROMS/Utility/wrt_info.F ROMS/Utility/wrt_ini.F ROMS/Utility/wrt_quick.F ROMS/Utility/wrt_rst.F ROMS/Utility/wrt_station.F ROMS/Utility/wrt_tides.F ROMS/Utility/zeta_balance.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_average.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_behavior.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_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_param.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sedbed.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/coupler.F Master/esmf_roms.F Master/master.F Master/ocean_control.F Master/propagator.F Master/roms_export.F Master/roms_import.F > /public/home/leung/src/upwelling/Build/MakeDepend
: No such file or directory
make: *** No rule to make target `/public/home/leung/src/upwelling/Build/MakeDepend', needed by `all'. Stop.


I've been through so many posts here, but haven't found an answer for my problems.

Thanks a lot

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

Re: Problem with compiling build.bash in case of upwelling

#2 Unread post by kate »

./build.bash: line 161: FC: command not found
This is one place to start. What is on line 161 of build.bash? Is it perhaps "FC := mpirun"? What happens when you type "which mpirun"? You need to have that on your path. This is what I get:
chinook03 206% which mpirun
/usr/local/pkg/mpi/OpenMPI/1.10.3-GCC-5.4.0-2.26/bin/mpirun
Note that this might not be your only problem. I'm concerned that it can't create the MakeDepend file.

leung
Posts: 3
Joined: Fri Dec 15, 2017 6:07 pm
Location: South China Sea Institute of Oceanology,CAS

Re: Problem with compiling build.bash in case of upwelling

#3 Unread post by leung »

Thank you for your replying, kate. And I am sorry for my late response.

I had change some places in my build.bash, including line 16` "FC := ***". I commented out this line as "FC := mpif90".
However, there is still some similar errors as followed:


rm -f -r core *.ipo /public/home/leung/src/upwelling/Build /public/home/leung/make_macros.mk
: No such file or directory

makefile:239: INCLUDING FILE /public/home/leung/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
svn: The path '.' appears to be part of a Subversion 1.7 or greater
working copy. Please upgrade your Subversion client to use this
working copy.
cp -f /public/software/mathlib/netcdf/4.1.3/intel/include/netcdf.mod /public/home/leung/src/upwelling/Build
cp -f /public/software/mathlib/netcdf/4.1.3/intel/include/typesizes.mod /public/home/leung/src/upwelling/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/public/home/leung/src/upwelling/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /public/home/leung/src/upwelling -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /public/home/leung/src/upwelling -I Master -I Compilers --silent --moddir /public/home/leung/src/upwelling/Build ROMS/Nonlinear/bbl.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/hmixing.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/nesting.F ROMS/Nonlinear/obc_adjust.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/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/vwalk_floats.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Functionals/analytical.F ROMS/Utility/abort.F ROMS/Utility/array_modes.F ROMS/Utility/back_cost.F ROMS/Utility/cgradient.F ROMS/Utility/checkadj.F ROMS/Utility/checkdefs.F ROMS/Utility/checkerror.F ROMS/Utility/check_multifile.F ROMS/Utility/checkvars.F ROMS/Utility/close_io.F ROMS/Utility/comp_Jb0.F ROMS/Utility/congrad.F ROMS/Utility/convolve.F ROMS/Utility/cost_grad.F ROMS/Utility/dateclock.F ROMS/Utility/def_avg.F ROMS/Utility/def_dai.F ROMS/Utility/def_diags.F ROMS/Utility/def_dim.F ROMS/Utility/def_error.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_lanczos.F ROMS/Utility/def_mod.F ROMS/Utility/def_norm.F ROMS/Utility/def_quick.F ROMS/Utility/def_rst.F ROMS/Utility/def_station.F ROMS/Utility/def_tides.F ROMS/Utility/def_var.F ROMS/Utility/distribute.F ROMS/Utility/dotproduct.F ROMS/Utility/erf.F ROMS/Utility/extract_obs.F ROMS/Utility/extract_sta.F ROMS/Utility/frc_weak.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_grid.F ROMS/Utility/get_gst.F ROMS/Utility/get_ngfld.F ROMS/Utility/get_ngfldr.F ROMS/Utility/get_nudgcoef.F ROMS/Utility/get_state.F ROMS/Utility/get_varcoords.F ROMS/Utility/get_wetdry.F ROMS/Utility/grid_coords.F ROMS/Utility/ini_adjust.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/ini_lanczos.F ROMS/Utility/inner2state.F ROMS/Utility/inp_par.F ROMS/Utility/inquiry.F ROMS/Utility/interpolate.F ROMS/Utility/lanc_resid.F ROMS/Utility/lbc.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_bry.F ROMS/Utility/nf_fread2d.F ROMS/Utility/nf_fread3d_bry.F ROMS/Utility/nf_fread3d.F ROMS/Utility/nf_fread4d.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/normalization.F ROMS/Utility/nrutil.F ROMS/Utility/ntimestep.F ROMS/Utility/obs_cost.F ROMS/Utility/obs_depth.F ROMS/Utility/obs_initial.F ROMS/Utility/obs_k2z.F ROMS/Utility/obs_read.F ROMS/Utility/obs_write.F ROMS/Utility/packing.F ROMS/Utility/posterior.F ROMS/Utility/posterior_var.F ROMS/Utility/ran1.F ROMS/Utility/random_ic.F ROMS/Utility/ran_state.F ROMS/Utility/read_asspar.F ROMS/Utility/read_biopar.F ROMS/Utility/read_couplepar.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/read_fltpar.F ROMS/Utility/read_phypar.F ROMS/Utility/read_sedpar.F ROMS/Utility/read_stapar.F ROMS/Utility/regrid.F ROMS/Utility/rep_matrix.F ROMS/Utility/round.F ROMS/Utility/rpcg_lanczos.F ROMS/Utility/set_2dfld.F ROMS/Utility/set_2dfldr.F ROMS/Utility/set_3dfld.F ROMS/Utility/set_3dfldr.F ROMS/Utility/set_contact.F ROMS/Utility/set_diags.F ROMS/Utility/set_masks.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/sqlq.F ROMS/Utility/state_addition.F ROMS/Utility/state_copy.F ROMS/Utility/state_dotprod.F ROMS/Utility/state_initialize.F ROMS/Utility/state_product.F ROMS/Utility/state_scale.F ROMS/Utility/stats.F ROMS/Utility/stats_modobs.F ROMS/Utility/stiffness.F ROMS/Utility/strings.F ROMS/Utility/sum_grad.F ROMS/Utility/sum_imp.F ROMS/Utility/time_corr.F ROMS/Utility/timers.F ROMS/Utility/uv_rotate.F ROMS/Utility/vorticity.F ROMS/Utility/white_noise.F ROMS/Utility/wpoints.F ROMS/Utility/wrt_aug_imp.F ROMS/Utility/wrt_avg.F ROMS/Utility/wrt_dai.F ROMS/Utility/wrt_diags.F ROMS/Utility/wrt_error.F ROMS/Utility/wrt_evolved.F ROMS/Utility/wrt_floats.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/wrt_his.F ROMS/Utility/wrt_impulse.F ROMS/Utility/wrt_info.F ROMS/Utility/wrt_ini.F ROMS/Utility/wrt_quick.F ROMS/Utility/wrt_rst.F ROMS/Utility/wrt_station.F ROMS/Utility/wrt_tides.F ROMS/Utility/zeta_balance.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_average.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_behavior.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_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_param.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sedbed.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/coupler.F Master/esmf_roms.F Master/master.F Master/ocean_control.F Master/propagator.F Master/roms_export.F Master/roms_import.F > /public/home/leung/src/upwelling/Build/MakeDepend
: No such file or directory
make: *** No rule to make target `/public/home/leung/src/upwelling/Build/MakeDepend', needed by `all'. Stop.


what should I do now? Thank you!

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

Re: Problem with compiling build.bash in case of upwelling

#4 Unread post by kate »

The first line of sfmakedepend is "#!/usr/bin/env perl". Do you have /usr/bin/env? Do you have perl? Perl is required for compiling ROMS.

leung
Posts: 3
Joined: Fri Dec 15, 2017 6:07 pm
Location: South China Sea Institute of Oceanology,CAS

Re: Problem with compiling build.bash in case of upwelling

#5 Unread post by leung »

yes, there is a text "#!/usr/bin/env perl" in my first line of sfmakedepend.
I searched other posts in this forum, finally fixed out this problem, got the OceanG file.
Thank you for your help!kate :D

prabha
Posts: 3
Joined: Tue Dec 26, 2017 5:39 pm
Location: University of Allahabad

Re: Problem with compiling makefile in case of upwelling

#6 Unread post by prabha »

makefile:238: 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/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I Master -I Compilers --silent --moddir Build ROMS/Nonlinear/step3d_t.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/set_tides.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/lmd_bkpp.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/my25_prestep.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/nesting.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/v2dbc_im.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/bbl.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/gls_corstep.F ROMS/Nonlinear/set_depth.F ROMS/Nonlinear/tkebc_im.F ROMS/Nonlinear/get_idata.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonlinear/my25_corstep.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/hmixing.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/step2d.F ROMS/Nonlinear/output.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/set_avg.F ROMS/Nonlinear/initial.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/prsgrd.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/radiation_stress.F ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/main3d.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/vwalk_floats.F ROMS/Nonlinear/obc_adjust.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Functionals/analytical.F ROMS/Utility/inquiry.F ROMS/Utility/obs_cost.F ROMS/Utility/set_2dfldr.F ROMS/Utility/posterior.F ROMS/Utility/normalization.F ROMS/Utility/set_3dfld.F ROMS/Utility/sqlq.F ROMS/Utility/wpoints.F ROMS/Utility/checkdefs.F ROMS/Utility/congrad.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/get_bounds.F ROMS/Utility/read_fltpar.F ROMS/Utility/read_sedpar.F ROMS/Utility/mp_exchange.F ROMS/Utility/abort.F ROMS/Utility/packing.F ROMS/Utility/shapiro.F ROMS/Utility/get_3dfldr.F ROMS/Utility/def_lanczos.F ROMS/Utility/set_weights.F ROMS/Utility/wrt_info.F ROMS/Utility/def_norm.F ROMS/Utility/wrt_floats.F ROMS/Utility/uv_rotate.F ROMS/Utility/obs_k2z.F ROMS/Utility/wrt_diags.F ROMS/Utility/nf_fread4d.F ROMS/Utility/sum_grad.F ROMS/Utility/def_hessian.F ROMS/Utility/checkadj.F ROMS/Utility/dotproduct.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/read_biopar.F ROMS/Utility/stats.F ROMS/Utility/state_product.F ROMS/Utility/extract_sta.F ROMS/Utility/obs_read.F ROMS/Utility/def_ini.F ROMS/Utility/zeta_balance.F ROMS/Utility/get_varcoords.F ROMS/Utility/def_mod.F ROMS/Utility/ludcmp.F ROMS/Utility/stats_modobs.F ROMS/Utility/set_contact.F ROMS/Utility/nrutil.F ROMS/Utility/inner2state.F ROMS/Utility/frc_weak.F ROMS/Utility/read_asspar.F ROMS/Utility/round.F ROMS/Utility/state_initialize.F ROMS/Utility/vorticity.F ROMS/Utility/check_multifile.F ROMS/Utility/lubksb.F ROMS/Utility/nf_fread3d_bry.F ROMS/Utility/def_rst.F ROMS/Utility/wrt_his.F ROMS/Utility/state_addition.F ROMS/Utility/nf_fread3d.F ROMS/Utility/get_ngfldr.F ROMS/Utility/get_2dfld.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/def_diags.F ROMS/Utility/obs_write.F ROMS/Utility/wrt_rst.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/read_phypar.F ROMS/Utility/rpcg_lanczos.F ROMS/Utility/inp_par.F ROMS/Utility/set_ngfld.F ROMS/Utility/def_station.F ROMS/Utility/obs_initial.F ROMS/Utility/wrt_evolved.F ROMS/Utility/set_diags.F ROMS/Utility/wrt_impulse.F ROMS/Utility/set_3dfldr.F ROMS/Utility/read_couplepar.F ROMS/Utility/wrt_tides.F ROMS/Utility/wrt_quick.F ROMS/Utility/metrics.F ROMS/Utility/time_corr.F ROMS/Utility/strings.F ROMS/Utility/ran_state.F ROMS/Utility/get_3dfld.F ROMS/Utility/erf.F ROMS/Utility/cgradient.F ROMS/Utility/state_copy.F ROMS/Utility/def_floats.F ROMS/Utility/random_ic.F ROMS/Utility/convolve.F ROMS/Utility/def_his.F ROMS/Utility/lbc.F ROMS/Utility/def_info.F ROMS/Utility/back_cost.F ROMS/Utility/mp_routines.F ROMS/Utility/set_scoord.F ROMS/Utility/white_noise.F ROMS/Utility/distribute.F ROMS/Utility/posterior_var.F ROMS/Utility/wrt_avg.F ROMS/Utility/dateclock.F ROMS/Utility/comp_Jb0.F ROMS/Utility/wrt_error.F ROMS/Utility/def_var.F ROMS/Utility/read_stapar.F ROMS/Utility/def_dim.F ROMS/Utility/def_impulse.F ROMS/Utility/regrid.F ROMS/Utility/set_masks.F ROMS/Utility/def_tides.F ROMS/Utility/set_ngfldr.F ROMS/Utility/def_quick.F ROMS/Utility/lanc_resid.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/get_2dfldr.F ROMS/Utility/get_ngfld.F ROMS/Utility/get_cycle.F ROMS/Utility/get_grid.F ROMS/Utility/extract_obs.F ROMS/Utility/wrt_ini.F ROMS/Utility/close_io.F ROMS/Utility/get_gst.F ROMS/Utility/ran1.F ROMS/Utility/state_scale.F ROMS/Utility/checkvars.F ROMS/Utility/get_state.F ROMS/Utility/stiffness.F ROMS/Utility/interpolate.F ROMS/Utility/sum_imp.F ROMS/Utility/array_modes.F ROMS/Utility/wrt_aug_imp.F ROMS/Utility/gasdev.F ROMS/Utility/timers.F ROMS/Utility/checkerror.F ROMS/Utility/ini_lanczos.F ROMS/Utility/ini_adjust.F ROMS/Utility/def_avg.F ROMS/Utility/ntimestep.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/def_dai.F ROMS/Utility/cost_grad.F ROMS/Utility/get_nudgcoef.F ROMS/Utility/def_error.F ROMS/Utility/wrt_dai.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/rep_matrix.F ROMS/Utility/get_wetdry.F ROMS/Utility/state_dotprod.F ROMS/Utility/grid_coords.F ROMS/Utility/def_gst.F ROMS/Utility/wrt_station.F ROMS/Utility/nf_fread2d_bry.F ROMS/Utility/set_2dfld.F ROMS/Utility/nf_fread2d.F ROMS/Utility/obs_depth.F ROMS/Modules/mod_mixing.F ROMS/Modules/mod_sedbed.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_sources.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_arrays.F ROMS/Modules/mod_eclight.F ROMS/Modules/mod_strings.F ROMS/Modules/mod_tides.F ROMS/Modules/mod_grid.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_sediment.F ROMS/Modules/mod_parallel.F ROMS/Modules/mod_ocean.F ROMS/Modules/mod_ncparam.F ROMS/Modules/mod_nesting.F ROMS/Modules/mod_average.F ROMS/Modules/mod_forces.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/mod_behavior.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_kinds.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_biology.F ROMS/Modules/mod_diags.F ROMS/Modules/mod_iounits.F ROMS/Modules/mod_param.F ROMS/Modules/mod_coupler.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_clima.F ROMS/Modules/mod_floats.F ROMS/Modules/mod_coupling.F Master/roms_import.F Master/propagator.F Master/master.F Master/roms_export.F Master/coupler.F Master/esmf_roms.F Master/ocean_control.F > Build/MakeDepend
cp -p /home/prabha/make_macros.mk Build
makefile:238: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cd Build; /usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math mod_boundary.f90
mod_boundary.f90:176.10:

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

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

Re: Problem with compiling build.bash in case of upwelling

#7 Unread post by kate »

It is trying to compile things out of order. Can you look at the Build/MakeDepend and see what's in there for mod_param and mod_boundary?

Post Reply