$ ./build.bash
rm -f -r core *.ipo /home/rita/roms/Projects/Upwelling/Build /home/Rita/make_mac ros.mk
makefile:238: INCLUDING FILE /home/Rita/make_macros.mk WHICH CONTAINS APPLICATIO N-DEPENDENT MAKE DEFINITIONS
which: no gfortran-4 in (/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/c ygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32 /WindowsPowerShell/v1.0:/cygdrive/c/Program Files/WIDCOMM/Bluetooth Software:/cy gdrive/c/Program Files/WIDCOMM/Bluetooth Software/syswow64:/cygdrive/c/Program F iles/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon: /cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/10.0/DLLShared:/cygdri ve/c/Program Files (x86)/Common Files/Roxio Shared/DLLShared:/usr/openwin/bin)
/bin/sh: --: invalid option
Usage: /bin/sh [GNU long option] [option] ...
/bin/sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
cp -f /usr/local/include/netcdf.mod /home/rita/roms/Projects/Upwelling/Build
cp -f /usr/local/include/typesizes.mod /home/rita/roms/Projects/Upwelling/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/home/rita/roms/Proje cts/Upwelling/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /home/rita/ro ms/Projects/Upwelling -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlin ear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /home/rita/r oms/Projects/Upwelling -I Master -I Compilers --silent --moddir /home/rita/roms/ Projects/Upwelling/Build ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/vwalk_flo ats.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/wet dry.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/obc_adjust.F ROMS/Nonlinear/get_i data.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/radiation_stress.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/nesting.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/initial.F ROM S/Nonlinear/set_avg.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/set_tides.F ROMS /Nonlinear/exchange_2d.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/output.F ROMS/No nlinear/step2d.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/hmixing.F ROMS/Nonline ar/main3d.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/conv_bry3d.F ROMS/Nonline ar/my25_corstep.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/exchange_3d.F ROMS/Nonl inear/bulk_flux.F ROMS/Nonlinear/set_depth.F ROMS/Nonlinear/tkebc_im.F ROMS/Nonl inear/prsgrd.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/bbl.F ROMS/Nonlinear/ bc_bry3d.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/ v2dbc_im.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/co nv_2d.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/my25 _prestep.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/l md_bkpp.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/gls_pre step.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/ste p3d_t.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/gls_corst ep.F ROMS/Nonlinear/Biology/biology_floats.F ROMS/Nonlinear/Biology/biology.F RO MS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonl inear/Sediment/sed_surface.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear /Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Functionals/anal ytical.F ROMS/Utility/def_diags.F ROMS/Utility/read_fltbiopar.F ROMS/Utility/get _2dfld.F ROMS/Utility/convolve.F ROMS/Utility/nf_fread3d.F ROMS/Utility/wrt_his. F ROMS/Utility/state_addition.F ROMS/Utility/nrutil.F ROMS/Utility/state_initial ize.F ROMS/Utility/read_asspar.F ROMS/Utility/def_hessian.F ROMS/Utility/get_3df ld.F ROMS/Utility/inner2state.F ROMS/Utility/read_phypar.F ROMS/Utility/set_cont act.F ROMS/Utility/ludcmp.F ROMS/Utility/ini_lanczos.F ROMS/Utility/abort.F ROMS /Utility/def_ini.F ROMS/Utility/obs_read.F ROMS/Utility/read_biopar.F ROMS/Utili ty/back_cost.F ROMS/Utility/checkadj.F ROMS/Utility/stats_modobs.F ROMS/Utility/ get_cycle.F ROMS/Utility/nf_fread4d.F ROMS/Utility/wrt_diags.F ROMS/Utility/nf_f read3d_bry.F ROMS/Utility/lubksb.F ROMS/Utility/wrt_floats.F ROMS/Utility/extrac t_sta.F ROMS/Utility/wrt_info.F ROMS/Utility/set_weights.F ROMS/Utility/def_lanc zos.F ROMS/Utility/regrid.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/packing.F RO MS/Utility/def_gst.F ROMS/Utility/def_mod.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/ Utility/read_sedpar.F ROMS/Utility/read_fltpar.F ROMS/Utility/get_bounds.F ROMS/ Utility/wrt_hessian.F ROMS/Utility/wrt_gst.F ROMS/Utility/congrad.F ROMS/Utility /checkdefs.F ROMS/Utility/wpoints.F ROMS/Utility/sqlq.F ROMS/Utility/def_tides.F ROMS/Utility/zeta_balance.F ROMS/Utility/set_3dfld.F ROMS/Utility/normalization .F ROMS/Utility/posterior.F ROMS/Utility/set_2dfldr.F ROMS/Utility/obs_cost.F RO MS/Utility/checkerror.F ROMS/Utility/obs_depth.F ROMS/Utility/nf_fread2d.F ROMS/ Utility/set_2dfld.F ROMS/Utility/nf_fread2d_bry.F ROMS/Utility/wrt_station.F ROM S/Utility/get_3dfldr.F ROMS/Utility/distribute.F ROMS/Utility/state_dotprod.F RO MS/Utility/get_ngfld.F ROMS/Utility/rep_matrix.F ROMS/Utility/frc_weak.F ROMS/Ut ility/vorticity.F ROMS/Utility/cost_grad.F ROMS/Utility/get_nudgcoef.F ROMS/Util ity/def_error.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/mp_exchange.F ROMS/Utili ty/def_avg.F ROMS/Utility/set_ngfldr.F ROMS/Utility/check_multifile.F ROMS/Utili ty/timers.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/gasdev.F ROMS/Utility/ran1. F ROMS/Utility/array_modes.F ROMS/Utility/interpolate.F ROMS/Utility/stiffness.F ROMS/Utility/get_state.F ROMS/Utility/dotproduct.F ROMS/Utility/ntimestep.F ROM S/Utility/shapiro.F ROMS/Utility/close_io.F ROMS/Utility/wrt_ini.F ROMS/Utility/ extract_obs.F ROMS/Utility/get_grid.F ROMS/Utility/wrt_tides.F ROMS/Utility/get_ 2dfldr.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/ ini_adjust.F ROMS/Utility/get_ngfldr.F ROMS/Utility/checkvars.F ROMS/Utility/set _masks.F ROMS/Utility/get_varcoords.F ROMS/Utility/def_impulse.F ROMS/Utility/de f_dim.F ROMS/Utility/read_stapar.F ROMS/Utility/def_var.F ROMS/Utility/inquire.F ROMS/Utility/wrt_error.F ROMS/Utility/get_date.F ROMS/Utility/wrt_avg.F ROMS/Ut ility/posterior_var.F ROMS/Utility/def_rst.F ROMS/Utility/white_noise.F ROMS/Uti lity/def_norm.F ROMS/Utility/mp_routines.F ROMS/Utility/state_copy.F ROMS/Utilit y/def_info.F ROMS/Utility/lbc.F ROMS/Utility/def_his.F ROMS/Utility/random_ic.F ROMS/Utility/def_floats.F ROMS/Utility/state_product.F ROMS/Utility/cgradient.F ROMS/Utility/state_scale.F ROMS/Utility/erf.F ROMS/Utility/get_gst.F ROMS/Utilit y/ran_state.F ROMS/Utility/strings.F ROMS/Utility/set_scoord.F ROMS/Utility/sum_ grad.F ROMS/Utility/metrics.F ROMS/Utility/uv_rotate.F ROMS/Utility/read_couplep ar.F ROMS/Utility/set_3dfldr.F ROMS/Utility/wrt_impulse.F ROMS/Utility/set_diags .F ROMS/Utility/obs_initial.F ROMS/Utility/def_station.F ROMS/Utility/set_ngfld. F ROMS/Utility/inp_par.F ROMS/Utility/grid_coords.F ROMS/Utility/wrt_rst.F ROMS/ Utility/obs_write.F ROMS/Modules/mod_coupling.F ROMS/Modules/mod_floats.F ROMS/M odules/mod_clima.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_coupler.F ROMS/Mod ules/mod_param.F ROMS/Modules/mod_iounits.F ROMS/Modules/mod_diags.F ROMS/Module s/mod_biology.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_kinds.F ROMS/Module s/mod_bbl.F ROMS/Modules/mod_behavior.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/ mod_forces.F ROMS/Modules/mod_average.F ROMS/Modules/mod_nesting.F ROMS/Modules/ mod_ncparam.F ROMS/Modules/mod_ocean.F ROMS/Modules/mod_parallel.F ROMS/Modules/ mod_sediment.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_grid.F ROMS/Modules/ mod_tides.F ROMS/Modules/mod_strings.F ROMS/Modules/mod_eclight.F ROMS/Modules/m od_arrays.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_scalars.F ROMS/Modules/ mod_sources.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_sedbed.F ROMS/Modules/ mod_mixing.F Master/ocean_control.F Master/esmf_roms.F Master/ocean_coupler.F Ma ster/roms_export.F Master/master.F Master/propagator.F Master/roms_import.F > /h ome/rita/roms/Projects/Upwelling/Build/MakeDepend
cp -p /home/Rita/make_macros.mk /home/rita/roms/Projects/Upwelling/Build
makefile:234: INCLUDING FILE /home/rita/roms/Projects/Upwelling/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
which: no gfortran-4 in (/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/WIDCOMM/Bluetooth Software:/cygdrive/c/Program Files/WIDCOMM/Bluetooth Software/syswow64:/cygdrive/c/Program Files/Intel/WiFi/bin:/cygdrive/c/Program Files/Common Files/Intel/WirelessCommon:/cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/10.0/DLLShared:/cygdrive/c/Program Files (x86)/Common Files/Roxio Shared/DLLShared:/usr/openwin/bin)
/bin/sh: --: invalid option
Usage: /bin/sh [GNU long option] [option] ...
/bin/sh [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--protected
--rcfile
--restricted
--verbose
--version
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -D'ROOT_DIR="/home/rita/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/rita/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/rita/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="734M"' -IROMS/Include -I/home/rita/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/rita/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/rita/roms/Projects/Upwelling"' ROMS/Utility/def_diags.F > /home/rita/roms/Projects/Upwelling/Build/def_diags.f90
ROMS/Bin/cpp_clean /home/rita/roms/Projects/Upwelling/Build/def_diags.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -D'ROOT_DIR="/home/rita/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/rita/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/rita/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="734M"' -IROMS/Include -I/home/rita/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/rita/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/rita/roms/Projects/Upwelling"' ROMS/Utility/def_var.F > /home/rita/roms/Projects/Upwelling/Build/def_var.f90
ROMS/Bin/cpp_clean /home/rita/roms/Projects/Upwelling/Build/def_var.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -D'ROOT_DIR="/home/rita/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/rita/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/rita/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="734M"' -IROMS/Include -I/home/rita/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/rita/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/rita/roms/Projects/Upwelling"' ROMS/Utility/distribute.F > /home/rita/roms/Projects/Upwelling/Build/distribute.f90
ROMS/Bin/cpp_clean /home/rita/roms/Projects/Upwelling/Build/distribute.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -D'ROOT_DIR="/home/rita/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/rita/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/rita/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="734M"' -IROMS/Include -I/home/rita/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/rita/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/rita/roms/Projects/Upwelling"' ROMS/Modules/mod_iounits.F > /home/rita/roms/Projects/Upwelling/Build/mod_iounits.f90
ROMS/Bin/cpp_clean /home/rita/roms/Projects/Upwelling/Build/mod_iounits.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -D'ROOT_DIR="/home/rita/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/rita/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/rita/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="734M"' -IROMS/Include -I/home/rita/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/rita/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/rita/roms/Projects/Upwelling"' ROMS/Modules/mod_param.F > /home/rita/roms/Projects/Upwelling/Build/mod_param.f90
ROMS/Bin/cpp_clean /home/rita/roms/Projects/Upwelling/Build/mod_param.f90
/usr/bin/cpp -P -traditional -DCYGWIN -DI686 -DGFORTRAN -D'ROOT_DIR="/home/rita/roms/trunk"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/home/rita/roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/home/rita/roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="734M"' -IROMS/Include -I/home/rita/roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/rita/roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/home/rita/roms/Projects/Upwelling"' ROMS/Modules/mod_kinds.F > /home/rita/roms/Projects/Upwelling/Build/mod_kinds.f90
ROMS/Bin/cpp_clean /home/rita/roms/Projects/Upwelling/Build/mod_kinds.f90
cd /home/rita/roms/Projects/Upwelling/Build; -c -frepack-arrays -O3 -ffast-math -fno-bounds-check mod_kinds.f90
/bin/sh: -c: command not found
ROMS/Modules/Module.mk:15: recipe for target '/home/rita/roms/Projects/Upwelling/Build/mod_kinds.o' failed
make: *** [/home/rita/roms/Projects/Upwelling/Build/mod_kinds.o] Error 127
pleased help me...
-
- Posts: 1
- Joined: Thu Apr 03, 2014 6:23 pm
- Location: hasanuddin university
Re: pleased help me...
The ROMS build system executes the "which" command on the name of your compiler so as to give the full path to it. The "which" command failed and caused all the rest of your troubles. Is "gfortran-4" the name of your compiler? Mine goes by simply gfortran:which: no gfortran-4 in (/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32
Code: Select all
pacman3 2458% which gfortran
/usr/local/pkg/gcc/gcc-4.7.3/bin/gfortran
-
- Posts: 7
- Joined: Sat Oct 12, 2013 3:12 am
- Location: Texas A&M University, Department of Oceanography
/bin/sh: -c: command not found
Hi,
I'm having a problem in my first attempt to run build.bash using ifort compiler [Linux-ifort.mk].
after running build.bash I got this (I just copied the last portion):
..
ROMS/Bin/cpp_clean /g/home/saud/run_roms/Projects/Upwelling/Build/mod_arrays.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/scratch/saud/ROMS"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/g/home/saud/run_roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/g/home/saud/run_roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="690M"' -IROMS/Include -I/g/home/saud/run_roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/g/home/saud/run_roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/g/home/saud/run_roms/Projects/Upwelling"' Master/master.F > /g/home/saud/run_roms/Projects/Upwelling/Build/master.f90
ROMS/Bin/cpp_clean /g/home/saud/run_roms/Projects/Upwelling/Build/esmf_roms.f90
rm -f -r /g/home/saud/make_macros.mk
ROMS/Bin/cpp_clean /g/home/saud/run_roms/Projects/Upwelling/Build/master.f90
cd /g/home/saud/run_roms/Projects/Upwelling/Build; -c -heap-arrays -fp-model precise -ip -O3 -free mod_kinds.f90
/bin/sh: -c: command not found
make: *** [/g/home/saud/run_roms/Projects/Upwelling/Build/mod_kinds.o] Error 127
make: *** Waiting for unfinished jobs....
I appreciate if someone could explain what is meant by: [/bin/sh: -c: command not found]? and how to solve this error?
I'm having a problem in my first attempt to run build.bash using ifort compiler [Linux-ifort.mk].
after running build.bash I got this (I just copied the last portion):
..
ROMS/Bin/cpp_clean /g/home/saud/run_roms/Projects/Upwelling/Build/mod_arrays.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DX86_64 -DIFORT -D'ROOT_DIR="/scratch/saud/ROMS"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/g/home/saud/run_roms/Projects/Upwelling/upwelling.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/g/home/saud/run_roms/Projects/Upwelling"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="690M"' -IROMS/Include -I/g/home/saud/run_roms/Projects/Upwelling -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/g/home/saud/run_roms/Projects/Upwelling -IMaster -ICompilers -D'HEADER_DIR="/g/home/saud/run_roms/Projects/Upwelling"' Master/master.F > /g/home/saud/run_roms/Projects/Upwelling/Build/master.f90
ROMS/Bin/cpp_clean /g/home/saud/run_roms/Projects/Upwelling/Build/esmf_roms.f90
rm -f -r /g/home/saud/make_macros.mk
ROMS/Bin/cpp_clean /g/home/saud/run_roms/Projects/Upwelling/Build/master.f90
cd /g/home/saud/run_roms/Projects/Upwelling/Build; -c -heap-arrays -fp-model precise -ip -O3 -free mod_kinds.f90
/bin/sh: -c: command not found
make: *** [/g/home/saud/run_roms/Projects/Upwelling/Build/mod_kinds.o] Error 127
make: *** Waiting for unfinished jobs....
I appreciate if someone could explain what is meant by: [/bin/sh: -c: command not found]? and how to solve this error?
Re: pleased help me...
Copying from https://www.myroms.org/wiki/index.php/F ... mpile_time:
cd Build; -c -O3 mod_kinds.f90
/bin/sh: -c: not found
The command:
FC := $(shell which ${FC})
in the Compilers/xxx-xxx.mk file has failed to find the compiler you specified, setting FC to the null string. You need to find out which compiler you were asking it to look for and to make sure it is in your path. If the flag USE_MPIF90 is set, it will be looking for "mpif90". What do you get from the command "which mpif90"? If you are trying for a serial run first, what does "which gfortran" give you?
-
- Posts: 7
- Joined: Sat Oct 12, 2013 3:12 am
- Location: Texas A&M University, Department of Oceanography
Re: pleased help me...
kate wrote:Copying from https://www.myroms.org/wiki/index.php/F ... mpile_time:cd Build; -c -O3 mod_kinds.f90
/bin/sh: -c: not found
The command:
FC := $(shell which ${FC})
in the Compilers/xxx-xxx.mk file has failed to find the compiler you specified, setting FC to the null string. You need to find out which compiler you were asking it to look for and to make sure it is in your path. If the flag USE_MPIF90 is set, it will be looking for "mpif90". What do you get from the command "which mpif90"? If you are trying for a serial run first, what does "which gfortran" give you?
Hi Kate,kate wrote:Copying from https://www.myroms.org/wiki/index.php/F ... mpile_time:cd Build; -c -O3 mod_kinds.f90
/bin/sh: -c: not found
The command:
FC := $(shell which ${FC})
in the Compilers/xxx-xxx.mk file has failed to find the compiler you specified, setting FC to the null string. You need to find out which compiler you were asking it to look for and to make sure it is in your path. If the flag USE_MPIF90 is set, it will be looking for "mpif90". What do you get from the command "which mpif90"? If you are trying for a serial run first, what does "which gfortran" give you?
I've tried to set the full path of my compiler, first in the build.bash file as follows"
export COMPILERS=/scratch/saud/ROMS/Compilers
it didn't work, then i added the name of the compiler:
export COMPILERS=/scratch/saud/ROMS/Compilers/Linux-ifort.mk
... and it didn't work also!
I set back the compiler's path in the build.bash file to the first option (without Linux-ifort.mk) and modified the Linux-ifort.mk file itself. I added the compiler's full path to be:
FC := /scratch/saud/ROMS/Compilers/Linux-ifort.mk
instead of:
FC := $(shell which ${FC})
After running build.bash, i got Error 126 instead of previous Error 127,
...
ROMS/Bin/cpp_clean /scratch/saud/Projects/Upwelling/Build/set_data.f90
rm -f -r /g/home/saud/make_macros.mk
cd /scratch/saud/Projects/Upwelling/Build; /scratch/saud/ROMS/Compilers/Linux-ifort.mk -c -heap-arrays -fp-model precise -ip -O3 -free mod_kinds.f90
/bin/sh: /scratch/saud/ROMS/Compilers/Linux-ifort.mk: Permission denied
make: *** [/scratch/saud/Projects/Upwelling/Build/mod_kinds.o] Error 126
make: *** Waiting for unfinished jobs....
ROMS/Bin/cpp_clean /scratch/saud/Projects/Upwelling/Build/master.f90
which clearly stating: Permission denied!
Could you please explain?
Note, when i type "which mpif90", i got this:
/usr/bin/which: no mpif90 in (/g/home/pbs/maui/current/bin:/g/home/pbs/maui/current/sbin:/g/home/pbs/torque/current/bin:/g/home/pbs/torque/current/sbin:/g/home/pbs/mpiexec/current/bin:/g/home/pbs/mpispawn/current/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/lpp/mmfs/bin:/opt/ibutils/bin:/g/software/bin:/g/software/adobe/Adobe/Reader9/bin:/g/home/ams/bin:/g/home/saud/bin)
Thanks
Re: pleased help me...
As Kate said, you need to know where ifort or mpif90 of intel fortran is located, not Linux-ifort.mk.cd /scratch/saud/Projects/Upwelling/Build; /scratch/saud/ROMS/Compilers/Linux-ifort.mk -c -heap-arrays -fp-model precise -ip -O3 -free mod_kinds.f90
The above line is supposed to be
>> ifort -c -heap-arrays......
or
>> mpif90 -c -heap-arrays ..... (if you use MPI)
You need to find out where intel fortran (mpif90 or ifort) is installed. Then specify the location in build.bash. If this does not work, you can also make path in ~/.bashrc
export PATH=(bin directory of intel fotran):${PATH}
Then try again.
DJ
Re: pleased help me...
In the build.bash, you should be setting FORT to ifort. The makefile then uses the variable FORT and the operating system (which it figures out for itself) to find the file to include from the Compilers directory:
Then inside the Linux-ifort.mk file, the FC variable gets set, first to ifort, then to mpif90 if you are using mpi, then finally to the full path to your compiler. For me, I get:
You might need to ask your system admin how to set your path to get this to work. If ifort is on your path, you can start with some serial tests.
Code: Select all
include $(COMPILERS)/$(OS)-$(strip $(FORT)).mk
Code: Select all
pacman15 203% which ifort
/usr/local/pkg/intel/intel-2013_sp1/composer_xe_2013_sp1.0.080/bin/intel64/ifort
pacman15 204% which mpif90
/usr/local/pkg/openmpi/openmpi-1.7.2.intel-2013_sp1/bin/mpif90
-
- Posts: 7
- Joined: Sat Oct 12, 2013 3:12 am
- Location: Texas A&M University, Department of Oceanography
Re: pleased help me...
d.kobashi and Kate,
Thanks for your reply, I'll try to fix the errors based on your comments.
Thanks for your reply, I'll try to fix the errors based on your comments.