error after svnupdate, sfmakedepend

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

error after svnupdate, sfmakedepend

#1 Unread post by flcastej »

Hi,

I has been working with ROMs without problems, but yesterday I made a svn update of the code, and now when I execute ./build.bash , I get an error. I think the problem is on sfmakedepend update, if I update all the files except sfmakedepend, I don´t get any error.

Anyone has any idea about this error?

Thanks in advance

Francisco López

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

Re: error after svnupdate, sfmakedepend

#2 Unread post by kate »

What error are you getting? The last real change made to sfmakedepend was over a year ago, so if there were problems with it, others would have noticed.

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: error after svnupdate, sfmakedepend

#3 Unread post by flcastej »

Hi kate,

Thanks a lot for your answer. I thought that the error was in sfmakedepend, cause if i use the older one, the error dissapeared. Most probably, I am doing something wrong.

When I run /build/bash, I get:

rm -f -r core *.ipo /modelos/ROMs/projects/upwelling_paral_mpi/Build /home/francisco/make_macros.mk
: No existe el fichero o el directorio
makefile:238: INCLUDING FILE /home/francisco/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cp -f /usr/local/include/netcdf.mod /modelos/ROMs/projects/upwelling_paral_mpi/Build
cp -f /usr/local/include/typesizes.mod /modelos/ROMs/projects/upwelling_paral_mpi/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/modelos/ROMs/projects/upwelling_paral_mpi/Build -DROMS_HEADER="upwelling.h" -I ROMS/Include -I /modelos/ROMs/projects/upwelling_paral_mpi -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /modelos/ROMs/projects/upwelling_paral_mpi -I Master -I Compilers --silent --moddir /modelos/ROMs/projects/upwelling_paral_mpi/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/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/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/checkvars.F ROMS/Utility/close_io.F ROMS/Utility/congrad.F ROMS/Utility/convolve.F ROMS/Utility/cost_grad.F ROMS/Utility/def_avg.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_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/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_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/ini_adjust.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/ini_lanczos.F ROMS/Utility/inp_par.F ROMS/Utility/inquire.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_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/obs_cost.F ROMS/Utility/obs_depth.F ROMS/Utility/obs_initial.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/regrid.F ROMS/Utility/rep_matrix.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_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_modobs.F ROMS/Utility/stiffness.F ROMS/Utility/strings.F ROMS/Utility/sum_grad.F ROMS/Utility/timers.F ROMS/Utility/vorticity.F ROMS/Utility/white_noise.F ROMS/Utility/wpoints.F ROMS/Utility/wrt_avg.F ROMS/Utility/wrt_diags.F ROMS/Utility/wrt_error.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_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_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/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 > /modelos/ROMs/projects/upwelling_paral_mpi/Build/MakeDepend
cp -p /home/francisco/make_macros.mk /modelos/ROMs/projects/upwelling_paral_mpi/Build
: No existe el fichero o el directorio
makefile:234: INCLUDING FILE /modelos/ROMs/projects/upwelling_paral_mpi/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
/usr/bin/cpp -P -traditional -DLINUX -DI686 -DGFORTRAN -D'ROOT_DIR="/modelos/ROMs/src"' -DUPWELLING -D'HEADER="upwelling.h"' -D'ROMS_HEADER="/modelos/ROMs/projects/upwelling_paral_mpi/upwelling.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/modelos/ROMs/projects/upwelling_paral_mpi"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="563M"' -IROMS/Include -I/modelos/ROMs/projects/upwelling_paral_mpi -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/modelos/ROMs/projects/upwelling_paral_mpi -IMaster -ICompilers -D'HEADER_DIR="/modelos/ROMs/projects/upwelling_paral_mpi"' ROMS/Utility/abort.F > /modelos/ROMs/projects/upwelling_paral_mpi/Build/abort.f90
ROMS/Bin/cpp_clean /modelos/ROMs/projects/upwelling_paral_mpi/Build/abort.f90
: No existe el fichero o el directorio
make: *** [/modelos/ROMs/projects/upwelling_paral_mpi/Build/abort.f90] Error 127




Thanks in advance

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

Re: error after svnupdate, sfmakedepend

#4 Unread post by kate »

The first real trouble I see is here:
flcastej wrote: cp -p /home/francisco/make_macros.mk /modelos/ROMs/projects/upwelling_paral_mpi/Build
: No existe el fichero o el directorio
The make_macros.mk file should be generated from Compilers/make_macros.h. Somehow the creation of this file failed to happen. What version of gmake do you have? Actually, the creation of this file happens in a way I don't recognize as being standard make and doesn't echo to the console:

Code: Select all

ifneq "$(MAKECMDGOALS)" "clean"
 MACROS := $(shell cpp -P $(ROMS_CPPFLAGS) Compilers/make_macros.h > \
                $(MAKE_MACROS); $(CLEAN) $(MAKE_MACROS))
Since when are we writing to people's home directory? If you start two builds simultaneously, this could cause trouble as both write different things there. It could also be trouble if you fill your $HOME quota (no, I would never do that... :roll: )

Here's another error:
ROMS/Bin/cpp_clean /modelos/ROMs/projects/upwelling_paral_mpi/Build/abort.f90
: No existe el fichero o el directorio
make: *** [/modelos/ROMs/projects/upwelling_paral_mpi/Build/abort.f90] Error 127
Does this file exist and if not, why not?

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: error after svnupdate, sfmakedepend

#5 Unread post by flcastej »

Dear Kate,

I will try to answer some of your questions. The gmake version is 3.81.

It s something strange, cause the make_macros.mk file are build and copy to the folder Build/, after that I get the error "the file doesn´t exist"m the same happen with abort.F90

I only run one build.bash at the same time, and I am the only person working on the computer. I have a lot of free space on my $HOME :D.

I am trying to investigate more about the problem to give you more information.

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: error after svnupdate, sfmakedepend

#6 Unread post by flcastej »

Finally I fix the problem!!!

It has been dificult to find the real error, cause it only appeared when I find the code line in makefile and commented it.

In a step during the update, I used windows, and it put me a "beatiful" Â character on the name of the makefile file. So I updated again the code without windows, as I do usually, and the error dissapeared.

Kate, thanks a lot for your help.

mazisism

Re: error after svnupdate, sfmakedepend

#7 Unread post by mazisism »

Hi, I have a similar problem after I executed ./build.bash , I got an error message
ROMS/Bin/cpp_clean /home/u1074978/Projects/upwelling/Build/abort.f90
: No such file or directory
make: *** [/home/u1074978/Projects/upwelling/Build/abort.f90] Error 127


FYI, I was using to download the ROMS source code using windows and then transfer it to the HPC at the university. I can't use svn directly at the HPC and the administrator suggests me to use svn somewhere else end then uploaded to the HPC.

Btw could you please provide an info in some details in which make file you find a "beautiful" line and comment it?

Thank you.

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

Re: error after svnupdate, sfmakedepend

#8 Unread post by kate »

You don't have a Linux platform you can use for the svn download? Coming soon to Windows, I hear, or you can try VirtualBox. Otherwise, you can run "dos2unix" on all the files, especially the makefile.

Post Reply