[Wrf-users] undefined reference errors while compiling WRF v 3.2.1

Feng Liu FLiu at azmag.gov
Mon Dec 13 09:30:55 MST 2010


Hi,
Your problem is not about gcc and gfortran compiler. Look at your compile_3.1.log file, you will see the error message related to netcdf
diffwrf.F90:71: error: netcdf.inc: No such file or directory
You may double check if you set environment parameters for netcdf correctly:
setenv NETCDF_DIR YOUR_NETCDF_PATH
Hope that is helpful.
Thanks.
Feng

From: wrf-users-bounces at ucar.edu [mailto:wrf-users-bounces at ucar.edu] On Behalf Of Kunal Rao
Sent: Thursday, December 09, 2010 6:52 PM
To: wrfhelp; wrf-users at ucar.edu
Subject: Re: [Wrf-users] undefined reference errors while compiling WRF v 3.2.1

attaching compile.log file for version 3.1.1 as well (this worked fine with the same settings ..)
On Thu, Dec 9, 2010 at 8:45 PM, Kunal Rao <kunalgrao at gmail.com<mailto:kunalgrao at gmail.com>> wrote:
I am getting the following errors while compiling WRF V 3.2.1 with gcc and gfortran compiler .

-----------------------------

module_soil_pre.f90: In function 'process_percent_cat_new':
module_soil_pre.f90:539: internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:652

------------------------------

mpif90 -f90=gfortran -o wrf.exe  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    wrf.o ../main/module_wrf_top.o libwrflib.a /root/Kunal/WRFV3.2/external/fftpack/fftpack5/libfftpack.a /root/Kunal/WRFV3.2/external/io_grib1/libio_grib1.a /root/Kunal/WRFV3.2/external/io_grib_share/libio_grib_share.a /root/Kunal/WRFV3.2/external/io_int/libwrfio_int.a /root/Kunal/WRFV3.2/external/esmf_time_f90/libesmf_time.a /root/Kunal/WRFV3.2/external/RSL_LITE/librsl_lite.a /root/Kunal/WRFV3.2/frame/module_internal_header_util.o /root/Kunal/WRFV3.2/frame/pack_utils.o  /root/Kunal/WRFV3.2/external/io_pnetcdf/libwrfio_pnf.a -L/root/Kunal/pnetcdf/lib -lpnetcdf
../main/module_wrf_top.o: In function `__module_wrf_top__wrf_finalize':
module_wrf_top.f90:(.text+0x961): undefined reference to `med_shutdown_io_'
../main/module_wrf_top.o: In function `__module_wrf_top__wrf_init':
module_wrf_top.f90:(.text+0xa74): undefined reference to `init_modules_'
module_wrf_top.f90:(.text+0xa87): undefined reference to `init_modules_'
module_wrf_top.f90:(.text+0xad5): undefined reference to `__module_check_a_mundo__check_nml_consistency'
module_wrf_top.f90:(.text+0xada): undefined reference to `__module_check_a_mundo__set_physics_rconfigs'
'
'
'
-------------------------------

These errors do not come with version 3.1.1 and comes with version 3.2.1. I am compiling the test case em_b_wave.
Attaching the compile.log file for your reference.

Kindly let me know if you have any suggestions to resolve this.

Thanks & Regards,
Kunal

On Wed, Dec 8, 2010 at 10:44 PM, Kunal Rao <kunalgrao at gmail.com<mailto:kunalgrao at gmail.com>> wrote:
I had done " $ ./compile em_b_wave |tee compile.log " . Now, cleaned again and this time did "$ ./compile em_b_wave >& compile.log".
Now, it has recorded the undefined reference errors in the log file. Attaching the same. Kindly go through that and let me know
if you have any suggestions to resolve it.

Thanks & Regards,
Kunal



On Wed, Dec 8, 2010 at 10:08 PM, wrfhelp <wrfhelp at ucar.edu<mailto:wrfhelp at ucar.edu>> wrote:
I cannot find any compile errors in your file. Did you do 'compile em_b_wave >& (with &) compile.out'?
If you are working in c-shell environment, you may need to type
compile em_b_wave > compile.out 2>&1
to catch errors.

wrfhelp


On Dec 8, 2010, at 11:27 AM, Kunal Rao wrote:
Hello

Thanks for your reply.

As per your suggestion, I did 'clean -a' and then configured and compiled again. I do not see any hints in the log file to figure out what might be going wrong/missing. I have set the env. variable PNETCDF to the path where I have parallel netcdf and also changed "io_form_*" in namelist.input in /test/em_b_wave folder from 2 to 11 for parallel netcdf. Everything is compiled with gcc and gfortran compiler.

Kindly find attached the configure.wrf file and the compile.log file for your reference. Kindly let me know if you have any suggestions.

Thanks & Regards,
Kunal


Kindly find attached the configure.wrf file and compile.log file.

On Tue, Dec 7, 2010 at 9:57 PM, wrfhelp <wrfhelp at ucar.edu<mailto:wrfhelp at ucar.edu>> wrote:
Can you try  to first do 'clean -a', and repeat the compile procedure? When you compile,
please save the compile output to a file (e..g compile em_b_wave >& compile.out), and see if
there is other information in the output file that may give you hint on the compile problem. If
you cannot figure it out, please send the entire compile.out file over.

wrfhelp


On Dec 7, 2010, at 5:43 PM, Kunal Rao wrote:

Hello

I am trying to compile WRF V 3.2.1 with parallel netCDF v1.2.0 and using gcc and gfortran compiler.

My configure step is done, but when I compile ( tried with $ ./compile em_b_wave ) I get the following and many such
undefined reference errors.

-----------------
gfortran -o ideal.exe  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    ideal.o ../dyn_em/module_initialize_b_wave.o libwrflib.a /root/Kunal/WRFV3/external/fftpack/fftpack5/libfftpack.a /root/Kunal/WRFV3/external/io_grib1/libio_grib1.a /root/Kunal/WRFV3/external/io_grib_share/libio_grib_share.a /root/Kunal/WRFV3/external/io_int/libwrfio_int.a /root/Kunal/WRFV3/external/esmf_time_f90/libesmf_time.a /root/Kunal/WRFV3/frame/module_internal_header_util.o /root/Kunal/WRFV3/frame/pack_utils.o
ideal.o: In function `med_initialdata_output_':

ideal.f90:(.text+0x6e): undefined reference to `__module_date_time__calc_current_date'
ideal.f90:(.text+0x97): undefined reference to `construct_filename1_'
ideal.f90:(.text+0xd9): undefined reference to `__module_io_domain__output_input'
ideal.f90:(.text+0xe9): undefined reference to `__module_io_domain__open_w_dataset'

----------------

I don't have netCDF installed on my system, only parallel NetCDF is installed. I have set the PNETCDF env. variable with the path to Parallel NetCDF. That should be sufficient, right ?

Any tips on what is missing / going wrong here. How do I resolve this undefined reference errors ?

Thanks & Regards,
Kunal

wrfhelp
http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html



<configure.wrf><compile.log>

wrfhelp
http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20101213/eaf7759a/attachment-0001.html 


More information about the Wrf-users mailing list