compile error

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
redhat007

compile error

#1 Unread post by redhat007 »

Dear
i have installed gcc4.6.2 on linux fedora 20. and then bulid all required program (netcdf,mct and pmich3) with it. But i face with following error in compile step. Would you please tell me what is wrong? And how i can fix it?

Code: Select all

rm -f -r core *.ipo /home/user/program_install/roms/project/test/Build /home/user/make_macros.mk
makefile:235: INCLUDING FILE /home/user/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
cp -f /home/user/program_install/netcdf_4.2.1.1/netcdf_4.2.1.1/include/netcdf.mod /home/user/program_install/roms/project/test/Build
cp -f /home/user/program_install/netcdf_4.2.1.1/netcdf_4.2.1.1/include/typesizes.mod /home/user/program_install/roms/project/test/Build
./ROMS/Bin/sfmakedepend --cpp --fext=f90 --file=- --objdir=/home/user/program_install/roms/project/test/Build -DROMS_HEADER="rip_current.h" -I ROMS/Include -I /home/user/program_install/roms/project/test -I ROMS/Nonlinear -I ROMS/Nonlinear/Biology -I ROMS/Nonlinear/Sediment -I ROMS/Nonlinear/Wec -I ROMS/Utility -I ROMS/Drivers -I ROMS/Functionals -I /home/user/program_install/roms/project/test -I Master -I Compilers --silent --moddir /home/user/program_install/roms/project/test/Build  ROMS/Nonlinear/conv_bry3d.F ROMS/Nonlinear/gls_prestep.F ROMS/Nonlinear/main2d.F ROMS/Nonlinear/bc_2d.F ROMS/Nonlinear/set_zeta.F ROMS/Nonlinear/lmd_bkpp.F ROMS/Nonlinear/lmd_skpp.F ROMS/Nonlinear/uv3dmix.F ROMS/Nonlinear/zetabc.F ROMS/Nonlinear/conv_2d.F ROMS/Nonlinear/step_floats.F ROMS/Nonlinear/bc_bry2d.F ROMS/Nonlinear/v2dbc_im.F ROMS/Nonlinear/u2dbc_im.F ROMS/Nonlinear/lmd_vmix.F ROMS/Nonlinear/interp_floats.F ROMS/Nonlinear/frc_adjust.F ROMS/Nonlinear/bc_bry3d.F ROMS/Nonlinear/bbl.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/atm2ocn_flux.F ROMS/Nonlinear/conv_bry2d.F ROMS/Nonlinear/main3d.F ROMS/Nonlinear/hmixing.F ROMS/Nonlinear/u3dbc_im.F ROMS/Nonlinear/step2d.F ROMS/Nonlinear/output.F ROMS/Nonlinear/t3dbc_im.F ROMS/Nonlinear/omega.F ROMS/Nonlinear/lmd_swfrac.F ROMS/Nonlinear/set_massflux.F ROMS/Nonlinear/bvf_mix.F ROMS/Nonlinear/exchange_2d.F ROMS/Nonlinear/set_tides.F ROMS/Nonlinear/step3d_uv.F ROMS/Nonlinear/set_avg.F ROMS/Nonlinear/initial.F ROMS/Nonlinear/set_data.F ROMS/Nonlinear/prsgrd.F ROMS/Nonlinear/obc_volcons.F ROMS/Nonlinear/ccsm_flux.F ROMS/Nonlinear/rho_eos.F ROMS/Nonlinear/conv_3d.F ROMS/Nonlinear/wetdry.F ROMS/Nonlinear/diag.F ROMS/Nonlinear/t3dmix.F ROMS/Nonlinear/vwalk_floats.F ROMS/Nonlinear/forcing.F ROMS/Nonlinear/bulk_flux.F ROMS/Nonlinear/v3dbc_im.F ROMS/Nonlinear/rhs3d.F ROMS/Nonlinear/get_data.F ROMS/Nonlinear/step3dref_t.F ROMS/Nonlinear/obc_adjust.F ROMS/Nonlinear/pre_step3d.F ROMS/Nonlinear/my25_prestep.F ROMS/Nonlinear/ini_fields.F ROMS/Nonlinear/wvelocity.F ROMS/Nonlinear/mpdata_adiff.F ROMS/Nonlinear/bc_3d.F ROMS/Nonlinear/set_vbc.F ROMS/Nonlinear/step3d_t.F ROMS/Nonlinear/Biology/biology.F ROMS/Nonlinear/Sediment/sediment.F ROMS/Nonlinear/Sediment/sed_bedload.F ROMS/Nonlinear/Sediment/sed_biomass.F ROMS/Nonlinear/Sediment/sed_fluxes.F ROMS/Nonlinear/Sediment/sed_bed_cohesive.F ROMS/Nonlinear/Sediment/sed_surface.F ROMS/Nonlinear/Sediment/sed_settling.F ROMS/Nonlinear/Sediment/sed_flocs.F ROMS/Nonlinear/Sediment/sed_biodiff.F ROMS/Nonlinear/Sediment/sed_bed2.F ROMS/Nonlinear/Sediment/sed_bed.F ROMS/Nonlinear/Wec/wec_stokes.F ROMS/Nonlinear/Wec/us2dbc_im.F ROMS/Nonlinear/Wec/wstvelocity.F ROMS/Nonlinear/Wec/wec_roller.F ROMS/Nonlinear/Wec/vs3dbc_im.F ROMS/Nonlinear/Wec/us3dbc_im.F ROMS/Nonlinear/Wec/wec_streaming.F ROMS/Nonlinear/Wec/wec_wave_mix.F ROMS/Nonlinear/Wec/radiation_stress.F ROMS/Nonlinear/Wec/wec_vf.F ROMS/Nonlinear/Wec/wec_dissip.F ROMS/Nonlinear/Wec/vs2dbc_im.F ROMS/Functionals/analytical.F ROMS/Utility/metrics.F ROMS/Utility/posterior_var.F ROMS/Utility/wrt_station.F ROMS/Utility/nf_fread2d_bry.F ROMS/Utility/init_comp_hindices.F ROMS/Utility/nf_fread2d.F ROMS/Utility/obs_depth.F ROMS/Utility/checkerror.F ROMS/Utility/dotproduct.F ROMS/Utility/set_2dfldr.F ROMS/Utility/posterior.F ROMS/Utility/normalization.F ROMS/Utility/set_3dchild_data.F ROMS/Utility/set_3dfld.F ROMS/Utility/nf_fwrite2d_bry.F ROMS/Utility/wpoints.F ROMS/Utility/congrad.F ROMS/Utility/wrt_gst.F ROMS/Utility/wrt_hessian.F ROMS/Utility/init_child_hindices.F ROMS/Utility/get_bounds.F ROMS/Utility/nf_fwrite3d_bry.F ROMS/Utility/abort.F ROMS/Utility/def_gst.F ROMS/Utility/packing.F ROMS/Utility/stats_modobs.F ROMS/Utility/regrid.F ROMS/Utility/def_norm.F ROMS/Utility/set_2dchild_data.F ROMS/Utility/def_lanczos.F ROMS/Utility/state_scale.F ROMS/Utility/wrt_info.F ROMS/Utility/lubksb.F ROMS/Utility/nf_fread3d_bry.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/obs_cost.F ROMS/Utility/nf_fwrite2d.F ROMS/Utility/state_initialize.F ROMS/Utility/cawdir_eval.F ROMS/Utility/get_2dfldr.F ROMS/Utility/get_2dparent_data.F ROMS/Utility/extract_sta.F ROMS/Utility/obs_read.F ROMS/Utility/def_ini.F ROMS/Utility/zeta_balance.F ROMS/Utility/rep_matrix.F ROMS/Utility/def_mod.F ROMS/Utility/ludcmp.F ROMS/Utility/distribute.F ROMS/Utility/mp_exchange.F ROMS/Utility/frc_weak.F ROMS/Utility/def_dim.F ROMS/Utility/wrt_floats.F ROMS/Utility/nrutil.F ROMS/Utility/state_addition.F ROMS/Utility/wrt_his.F ROMS/Utility/nf_fread3d.F ROMS/Utility/def_info.F ROMS/Utility/def_tides.F ROMS/Utility/def_diags.F ROMS/Utility/extract_obs.F ROMS/Utility/wrt_rst.F ROMS/Utility/composed_2d.F ROMS/Utility/set_ngfldr.F ROMS/Utility/get_3dfldr.F ROMS/Utility/inp_par.F ROMS/Utility/set_ngfld.F ROMS/Utility/obs_initial.F ROMS/Utility/set_diags.F ROMS/Utility/wrt_impulse.F ROMS/Utility/set_3dfldr.F ROMS/Utility/set_3dparent_data.F ROMS/Utility/wrt_tides.F ROMS/Utility/init_parent_hindices.F ROMS/Utility/grid_coords.F ROMS/Utility/set_scoord.F ROMS/Utility/strings.F ROMS/Utility/ran_state.F ROMS/Utility/get_3dfld.F ROMS/Utility/set_weights.F ROMS/Utility/cgradient.F ROMS/Utility/state_copy.F ROMS/Utility/def_floats.F ROMS/Utility/set_2dfld.F ROMS/Utility/def_his.F ROMS/Utility/mp_routines.F ROMS/Utility/utility.F ROMS/Utility/random_ic.F ROMS/Utility/def_rst.F ROMS/Utility/wrt_avg.F ROMS/Utility/get_gridcoords.F ROMS/Utility/get_date.F ROMS/Utility/wrt_error.F ROMS/Utility/get_2dfld.F ROMS/Utility/def_var.F ROMS/Utility/def_impulse.F ROMS/Utility/get_varcoords.F ROMS/Utility/set_masks.F ROMS/Utility/checkvars.F ROMS/Utility/get_ngfldr.F ROMS/Utility/ini_adjust.F ROMS/Utility/set_2dparent_data.F ROMS/Utility/def_station.F ROMS/Utility/nesting.F ROMS/Utility/get_cycle.F ROMS/Utility/get_grid.F ROMS/Utility/obs_write.F ROMS/Utility/wrt_ini.F ROMS/Utility/close_io.F ROMS/Utility/get_gst.F ROMS/Utility/shapiro.F ROMS/Utility/get_state.F ROMS/Utility/stiffness.F ROMS/Utility/interpolate.F ROMS/Utility/get_3dparent_data.F ROMS/Utility/checkdefs.F ROMS/Utility/ran1.F ROMS/Utility/gasdev.F ROMS/Utility/ini_hmixcoef.F ROMS/Utility/timers.F ROMS/Utility/ini_lanczos.F ROMS/Utility/def_avg.F ROMS/Utility/composed_3d.F ROMS/Utility/nf_fwrite4d.F ROMS/Utility/state_product.F ROMS/Utility/white_noise.F ROMS/Utility/back_cost.F ROMS/Utility/cost_grad.F ROMS/Utility/def_error.F ROMS/Utility/vorticity.F ROMS/Utility/nf_fwrite3d.F ROMS/Utility/get_ngfld.F ROMS/Utility/oi_update.F ROMS/Utility/state_dotprod.F ROMS/Modules/mod_sedbed.F ROMS/Modules/mod_storage.F ROMS/Modules/mod_sources.F ROMS/Modules/mod_scalars.F ROMS/Modules/mod_sedflocs.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_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_iounits.F ROMS/Modules/mod_composed.F ROMS/Modules/mod_refined.F ROMS/Modules/mod_boundary.F ROMS/Modules/mod_kinds.F ROMS/Modules/mod_fourdvar.F ROMS/Modules/mod_mixing.F ROMS/Modules/mod_stepping.F ROMS/Modules/mod_biology.F ROMS/Modules/mod_diags.F ROMS/Modules/mod_param.F ROMS/Modules/mod_ice.F ROMS/Modules/mod_coupler.F ROMS/Modules/mod_netcdf.F ROMS/Modules/mod_bbl.F ROMS/Modules/mod_eoscoef.F ROMS/Modules/mod_clima.F ROMS/Modules/mod_floats.F ROMS/Modules/mod_coupling.F ROMS/Modules/mod_obs.F Master/roms_import.F Master/read_couplepar.F Master/propagator.F Master/master.F Master/roms_export.F Master/mct_coupler_utils.F Master/mct_coupler_params.F Master/ocean_coupler.F Master/mod_coupler_iounits.F Master/mod_coupler_kinds.F Master/esmf_roms.F Master/ocean_control.F Master/get_sparse_matrix.F > /home/user/program_install/roms/project/test/Build/MakeDepend
cp -p /home/user/make_macros.mk /home/user/program_install/roms/project/test/Build
makefile:231: INCLUDING FILE /home/user/program_install/roms/project/test/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
make: Nothing to be done for `wrfclean'.
makefile:231: INCLUDING FILE /home/user/program_install/roms/project/test/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
make: Nothing to be done for `wrf'.
makefile:231: INCLUDING FILE /home/user/program_install/roms/project/test/Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINITIONS
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DI686 -DGFORTRAN -D'ROOT_DIR="/home/user/program_install/roms"' -Drip_current -D'HEADER="rip_current.h"' -D'ROMS_HEADER="/home/user/program_install/roms/project/test/rip_current.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/user/program_install/roms/project/test"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="831"' -IROMS/Include -I/home/user/program_install/roms/project/test -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/user/program_install/roms/project/test -IMaster -ICompilers -D'HEADER_DIR="/home/user/program_install/roms/project/test"'  ROMS/Nonlinear/conv_bry3d.F > /home/user/program_install/roms/project/test/Build/conv_bry3d.f90
ROMS/Bin/cpp_clean /home/user/program_install/roms/project/test/Build/conv_bry3d.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DI686 -DGFORTRAN -D'ROOT_DIR="/home/user/program_install/roms"' -Drip_current -D'HEADER="rip_current.h"' -D'ROMS_HEADER="/home/user/program_install/roms/project/test/rip_current.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/user/program_install/roms/project/test"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="831"' -IROMS/Include -I/home/user/program_install/roms/project/test -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/user/program_install/roms/project/test -IMaster -ICompilers -D'HEADER_DIR="/home/user/program_install/roms/project/test"'  ROMS/Nonlinear/bc_bry3d.F > /home/user/program_install/roms/project/test/Build/bc_bry3d.f90
ROMS/Bin/cpp_clean /home/user/program_install/roms/project/test/Build/bc_bry3d.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DI686 -DGFORTRAN -D'ROOT_DIR="/home/user/program_install/roms"' -Drip_current -D'HEADER="rip_current.h"' -D'ROMS_HEADER="/home/user/program_install/roms/project/test/rip_current.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/user/program_install/roms/project/test"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="831"' -IROMS/Include -I/home/user/program_install/roms/project/test -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/user/program_install/roms/project/test -IMaster -ICompilers -D'HEADER_DIR="/home/user/program_install/roms/project/test"'  ROMS/Modules/mod_param.F > /home/user/program_install/roms/project/test/Build/mod_param.f90
ROMS/Bin/cpp_clean /home/user/program_install/roms/project/test/Build/mod_param.f90
/usr/bin/cpp -P -traditional -DMPI -DLINUX -DI686 -DGFORTRAN -D'ROOT_DIR="/home/user/program_install/roms"' -Drip_current -D'HEADER="rip_current.h"' -D'ROMS_HEADER="/home/user/program_install/roms/project/test/rip_current.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/user/program_install/roms/project/test"' -D'MY_ANALYTICAL="on"' -D'SVN_REV="831"' -IROMS/Include -I/home/user/program_install/roms/project/test -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/home/user/program_install/roms/project/test -IMaster -ICompilers -D'HEADER_DIR="/home/user/program_install/roms/project/test"'  ROMS/Modules/mod_kinds.F > /home/user/program_install/roms/project/test/Build/mod_kinds.f90
ROMS/Bin/cpp_clean /home/user/program_install/roms/project/test/Build/mod_kinds.f90
cd /home/user/program_install/roms/project/test/Build; /home/user/program_install/mpich3_install/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   mod_kinds.f90
f951: sorry, unimplemented: Graphite loop optimizations cannot be used (-fgraphite, -fgraphite-identity, -floop-block, -floop-flatten, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, and -ftree-loop-linear)
make: *** [/home/user/program_install/roms/project/test/Build/mod_kinds.o] Error 1

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

Re: compile error

#2 Unread post by kate »

Which ROMS is this? I assume you are using gfortran given the style of the options. The Rutgers trunk Linux-gfortran.mk file has:

Code: Select all

           FFLAGS := -frepack-arrays
then

Code: Select all

ifdef USE_OpenMP
         CPPFLAGS += -D_OPENMP
           FFLAGS += -fopenmp
endif

ifdef USE_DEBUG
           FFLAGS += -g -fbounds-check
else
           FFLAGS += -O3 -ffast-math
endif
then a few files have extra options like:

Code: Select all

$(SCRATCH_DIR)/mod_ncparam.o: FFLAGS += -ffree-form -ffree-line-length-none
Maybe you can cut back on your FFLAGS options to find a combination that works. Which gfortran version do you have?

redhat007

Re: compile error

#3 Unread post by redhat007 »

i am using version 4.6.2
my problem solved with insatlling libcloog-ppl0.
many thanks
redhat

Post Reply