ARWpost.exe is not created using gfortran compiler

Discussions related to the use of ARWPost

ARWpost.exe is not created using gfortran compiler

Postby sangeeta » Fri Oct 18, 2013 2:11 am

Dear All,

I have gfortran compiler in my 32 bit linux machine (Centos).
My NETCDF path is /usr/local.
Both WRFV3 and WPS is running successfully in my machine using the netcdf path /usr/local.
But while compiling the ARWpost using same NETCDF path, ARWpost.exe could not be build.

The segment of output generated by ./compile is as follows:-
;------------------------------------------------------------------------------------------------------------------------------------------------------
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 -o ARWpost.exe module_model_basics.o constants_module.o gridinfo_module.o ARWpost.o input_module.o output_module.o module_map_utils.o misc_definitions_module.o module_date_pack.o module_debug.o process_domain_module.o module_get_file_names.o module_interp.o module_basic_arrays.o module_diagnostics.o module_arrays.o module_pressure.o module_calc_height.o module_calc_pressure.o module_calc_theta.o module_calc_tk.o module_calc_tc.o module_calc_td.o module_calc_td2.o module_calc_rh.o module_calc_rh2.o module_calc_uvmet.o module_calc_slp.o module_calc_dbz.o module_calc_cape.o module_calc_wdir.o module_calc_wspd.o module_calc_clfr.o \
-L/usr/local/lib -I/usr/local/include -lnetcdf
input_module.o: In function `__input_module_MOD_input_init':
input_module.f:(.text+0x1ad): undefined reference to `nf_open_'
input_module.f:(.text+0x207): undefined reference to `nf_inq_'
input_module.f:(.text+0x40a): undefined reference to `nf_inq_dim_'
input_module.o: In function `__input_module_MOD_read_next_field':
input_module.f:(.text+0x5b5): undefined reference to `nf_inq_var_'
input_module.f:(.text+0x8de): undefined reference to `ncvgt_'
input_module.f:(.text+0xa3b): undefined reference to `ncvgt_'
input_module.f:(.text+0xe17): undefined reference to `ncvgt_'
input_module.f:(.text+0xff7): undefined reference to `ncvgt_'
input_module.f:(.text+0x118d): undefined reference to `nf_get_att_text_'
input_module.f:(.text+0x11bf): undefined reference to `nf_get_att_text_'
input_module.f:(.text+0x129f): undefined reference to `nf_get_att_text_'
input_module.f:(.text+0x131f): undefined reference to `nf_get_att_text_'
input_module.o: In function `__input_module_MOD_read_global_attrs':
input_module.f:(.text+0x1edf): undefined reference to `nf_get_att_text_'
input_module.f:(.text+0x228c): undefined reference to `nf_get_att_int_'
input_module.f:(.text+0x22bf): undefined reference to `nf_get_att_int_'
input_module.f:(.text+0x22f2): undefined reference to `nf_get_att_int_'
input_module.f:(.text+0x234b): undefined reference to `nf_get_att_text_'
input_module.f:(.text+0x2377): undefined reference to `nf_get_att_int_'
input_module.f:(.text+0x23a3): undefined reference to `nf_get_att_real_'
input_module.f:(.text+0x23cf): undefined reference to `nf_get_att_real_'
input_module.f:(.text+0x23fb): undefined reference to `nf_get_att_real_'
input_module.f:(.text+0x2427): undefined reference to `nf_get_att_real_'
input_module.f:(.text+0x2453): undefined reference to `nf_get_att_real_'
input_module.o:input_module.f:(.text+0x247f): more undefined references to `nf_get_att_real_' follow
input_module.o: In function `__input_module_MOD_read_global_attrs':
input_module.f:(.text+0x266c): undefined reference to `nf_inq_attname_'
input_module.f:(.text+0x26a0): undefined reference to `nf_inq_att_'
input_module.f:(.text+0x2740): undefined reference to `nf_get_att_text_'
input_module.f:(.text+0x28cb): undefined reference to `nf_get_att_int_'
input_module.f:(.text+0x2a09): undefined reference to `nf_get_att_real_'
input_module.o: In function `__input_module_MOD_input_close':
input_module.f:(.text+0x2b2b): undefined reference to `nf_close_'
input_module.o: In function `__input_module_MOD_arw_get_next_time':
input_module.f:(.text+0x2b62): undefined reference to `nf_inq_varid_'
input_module.f:(.text+0x2baa): undefined reference to `nf_inq_var_'
input_module.f:(.text+0x2c5c): undefined reference to `nf_get_vara_text_'
module_interp.o: In function `__module_interp_MOD_get_interp_info':
module_interp.f:(.text+0x25a5): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x25cd): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x26a4): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x26cc): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x26f5): undefined reference to `nf_inq_varid_'
module_interp.o:module_interp.f:(.text+0x271d): more undefined references to `nf_inq_varid_' follow
module_interp.o: In function `__module_interp_MOD_get_interp_info':
module_interp.f:(.text+0x2de9): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x2fa8): undefined reference to `ncvgt_'
module_interp.f:(.text+0x32c3): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x3307): undefined reference to `ncvgt_'
module_interp.o: In function `__module_interp_MOD_get_interp_array':
module_interp.f:(.text+0x3b88): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x3bb0): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x3c87): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x3cd8): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x3ed0): undefined reference to `ncvgt_'
module_interp.f:(.text+0x43a3): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x43f4): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x45a7): undefined reference to `ncvgt_'
module_interp.f:(.text+0x47f9): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x4837): undefined reference to `ncvgt_'
module_interp.f:(.text+0x4a52): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x4aa1): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x4baf): undefined reference to `ncvgt_'
module_interp.f:(.text+0x4cd1): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x4d20): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x4d7f): undefined reference to `ncvgt_'
module_interp.f:(.text+0x4eb2): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x4f03): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x50c8): undefined reference to `ncvgt_'
module_interp.f:(.text+0x5433): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x5471): undefined reference to `ncvgt_'
module_interp.f:(.text+0x5a6e): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x5abd): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x5e5a): undefined reference to `ncvgt_'
module_interp.f:(.text+0x604e): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x608c): undefined reference to `ncvgt_'
module_interp.o: In function `__module_interp_MOD_get_keep_array':
module_interp.f:(.text+0x63d7): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x6589): undefined reference to `nf_inq_varid_'
module_interp.f:(.text+0x6685): undefined reference to `nf_inq_var_'
module_interp.f:(.text+0x684d): undefined reference to `ncvgt_'
module_interp.f:(.text+0x6a49): undefined reference to `ncvgt_'
module_interp.f:(.text+0x6c59): undefined reference to `ncvgt_'
collect2: ld returned 1 exit status
make: [ARWpost.exe] Error 1 (ignored)
;-----------------------------------------------------------------------------------------------------------------------------------------

Any help on it is appreciated.
Thanks.
Sangeeta Maharjan.
sangeeta
 
Posts: 25
Joined: Mon Feb 04, 2013 5:16 am

Re: ARWpost.exe is not created using gfortran compiler

Postby sangeeta » Tue Oct 22, 2013 4:56 am

Finally, ARwpost.exe is created after editing /src/Makefile. I have added -lnetcdff in the following codes.

ARWpost.exe: $(OBJS)
$(FC) $(FFLAGS) $(LDFLAGS) -o $@ $(OBJS) \
-L$(NETCDF)/lib -I$(NETCDF)/include -lnetcdf -lnetcdff

Hope this will be helpful to others .

Thanks.
Sangeeta Maharjan.
sangeeta
 
Posts: 25
Joined: Mon Feb 04, 2013 5:16 am

Re: ARWpost.exe is not created using gfortran compiler

Postby Jipson Johnson » Tue Jan 13, 2015 2:58 am

**** Compiling ARWpost ****
while i add -lnetcdff it shows this error:
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4 -o ARWpost.exe module_model_basics.o constants_module.o gridinfo_module.o ARWpost.o input_module.o output_module.o module_map_utils.o misc_definitions_module.o module_date_pack.o module_debug.o process_domain_module.o module_get_file_names.o module_interp.o module_basic_arrays.o module_diagnostics.o module_arrays.o module_pressure.o module_calc_height.o module_calc_pressure.o module_calc_theta.o module_calc_tk.o module_calc_tc.o module_calc_td.o module_calc_td2.o module_calc_rh.o module_calc_rh2.o module_calc_uvmet.o module_calc_slp.o module_calc_dbz.o module_calc_cape.o module_calc_wdir.o module_calc_wspd.o module_calc_clfr.o \
-L/home/jipson/Build_WRF/LIBRARIES/netcdf/lib -I/home/jipson/Build_WRF/LIBRARIES/netcdf/include -lnetcdf-lnetcdff
/usr/bin/ld: cannot find -lnetcdf-lnetcdff
collect2: ld returned 1 exit status
make: [ARWpost.exe] Error 1 (ignored)
please help , Thank you
Jipson
Jipson Johnson
 
Posts: 24
Joined: Thu Jan 08, 2015 2:15 pm

Re: ARWpost.exe is not created using gfortran compiler

Postby surgeon » Tue Jan 13, 2015 6:08 am

-lnetcdf_-lnetcdff
---------^
Add space here.
surgeon
 
Posts: 15
Joined: Sun Jun 26, 2011 8:57 am


Return to ARWPost

Who is online

Users browsing this forum: No registered users and 1 guest