[Wrf-users] registry.c(22): warning #1079: return type of function "main" must be "int"

libravo at foxmail.com
Mon Dec 21 01:03:24 MST 2015


Dear Sir/Madam,
   My name is liyang. Some problems happen when i compiled WRF.    
   my compiler is ifort and icc,and wrf version is 3.3.1. i compiled em_real , and this is compile.log

( cd tools ; make -i -r CC_TOOLS="icc  -DIWORDSIZE=4 -DMAX_HISTORY=25" )
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  registry.c
registry.c(22): warning #1079: return type of function "main" must be "int"
  main( int argc, char *argv[], char *env[] )
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  my_strtok.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  reg_parse.c
reg_parse.c(294): warning #177: label "normal" was declared but never referenced
  normal:
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  data.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  type.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  misc.c
misc.c(175): warning #1011: missing return statement at end of non-void function "range_of_dimension"
  }
  ^

misc.c(217): warning #592: variable "zdex" is used before its value is set
            sprintf(tmp,"%ssm3%d,%ssm3%d,1,1", r,bdex,r,zdex ) ;
                                                        ^

misc.c(321): warning #1011: missing return statement at end of non-void function "get_elem"
  }
  ^

misc.c(423): warning #1011: missing return statement at end of non-void function "close_the_file"
  }
  ^

misc.c(647): warning #1011: missing return statement at end of non-void function "dimension_size_expression"
  }
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_defs.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_allocs.c
gen_allocs.c(73): warning #1011: missing return statement at end of non-void function "get_count_for_alloc"
  }
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_mod_state_descr.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_scalar_indices.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_args.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_config.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  sym.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  symtab_gen.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_model_data_ord.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_interp.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_comms.c
gen_comms.c(157): warning #1011: missing return statement at end of non-void function "print_4d_i1_decls"
  }
  ^

gen_comms.c(196): warning #1011: missing return statement at end of non-void function "print_decl"
    }
    ^

gen_comms.c(206): warning #1011: missing return statement at end of non-void function "print_body"
    }
    ^

gen_comms.c(1672): warning #268: the format string ends before this argument
         sprintf(fname,"shift_halo",*direction) ;
                                    ^

gen_comms.c(1949): warning #1011: missing return statement at end of non-void function "gen_shift"
  }
  ^

gen_comms.c(2428): warning #1011: missing return statement at end of non-void function "gen_debug"
  }
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_scalar_derefs.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  set_dim_strs.c
set_dim_strs.c(145): warning #1011: missing return statement at end of non-void function "set_dim_strs"
  }
  ^

set_dim_strs.c(153): warning #1011: missing return statement at end of non-void function "set_dim_strs2"
  }
  ^

set_dim_strs.c(159): warning #1011: missing return statement at end of non-void function "set_dim_strs3"
  }
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_wrf_io.c
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  gen_streams.c
gen_streams.c(180): warning #1011: missing return statement at end of non-void function "gen_io_domain_defs"
  }
  ^

gen_streams.c(213): warning #1011: missing return statement at end of non-void function "gen_set_timekeeping_defs"
  }
  ^

gen_streams.c(300): warning #1011: missing return statement at end of non-void function "gen_set_timekeeping_alarms"
  }
  ^

gen_streams.c(327): warning #1011: missing return statement at end of non-void function "gen_io_form_for_dataset"
  }
  ^

gen_streams.c(354): warning #1011: missing return statement at end of non-void function "gen_io_form_for_stream"
  }
  ^

gen_streams.c(373): warning #1011: missing return statement at end of non-void function "gen_switches_and_alarms"
  }
  ^

gen_streams.c(404): warning #1011: missing return statement at end of non-void function "gen_check_auxstream_alarms"
  }
  ^

gen_streams.c(426): warning #1011: missing return statement at end of non-void function "gen_fine_stream_input"
  }
  ^

gen_streams.c(441): warning #1011: missing return statement at end of non-void function "gen_med_auxinput_in"
  }
  ^

gen_streams.c(456): warning #1011: missing return statement at end of non-void function "gen_med_hist_out_opens"
  }
  ^

gen_streams.c(472): warning #1011: missing return statement at end of non-void function "gen_med_hist_out_closes"
  }
  ^

gen_streams.c(488): warning #1011: missing return statement at end of non-void function "gen_med_auxinput_in_closes"
  }
  ^

gen_streams.c(501): warning #1011: missing return statement at end of non-void function "gen_med_last_solve_io"
  }
  ^

gen_streams.c(512): warning #1011: missing return statement at end of non-void function "gen_shutdown_closes"
  }
  ^

gen_streams.c(632): warning #1011: missing return statement at end of non-void function "gen_io_boilerplate"
  }
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25  -c -g  standard.c
standard.c(166): warning #1011: missing return statement at end of non-void function "drop_comment"
  }
  ^

standard.c(176): warning #1011: missing return statement at end of non-void function "change_to_lower"
  }
  ^

icc  -DIWORDSIZE=4 -DMAX_HISTORY=25 -o standard.exe -g   standard.o
icc  -DIWORDSIZE=4 -DMAX_HISTORY=25 -o registry -g   registry.o my_strtok.o reg_parse.o data.o type.o misc.o gen_defs.o gen_allocs.o gen_mod_state_descr.o gen_scalar_indices.o gen_args.o gen_config.o sym.o symtab_gen.o gen_model_data_ord.o gen_interp.o gen_comms.o gen_scalar_derefs.o set_dim_strs.o gen_wrf_io.o gen_streams.o

-----------------------------------------------------------------------------------------------------
     Please tell me what should i do. I would appreciate it if you could help me solve the problem.      Thank you anyway!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20151221/0d255b67/attachment.html 


More information about the Wrf-users mailing list