I am getting the following errors while compiling WRF V 3.2.1 with gcc and gfortran compiler .<div><br></div><div>-----------------------------<br><div><br></div><div><div><font class="Apple-style-span" color="#FF0000">module_soil_pre.f90: In function ‘process_percent_cat_new’:</font></div>
<div><font class="Apple-style-span" color="#FF0000">module_soil_pre.f90:539: internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:652</font></div><div><font class="Apple-style-span" color="#FF0000"><br>
</font></div><div>------------------------------</div><div><font class="Apple-style-span" color="#FF0000"><br></font></div><div><div>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</div>
<div style="color: rgb(255, 0, 0); ">../main/module_wrf_top.o: In function `__module_wrf_top__wrf_finalize':</div><div style="color: rgb(255, 0, 0); ">module_wrf_top.f90:(.text+0x961): undefined reference to `med_shutdown_io_'</div>
<div style="color: rgb(255, 0, 0); ">../main/module_wrf_top.o: In function `__module_wrf_top__wrf_init':</div><div style="color: rgb(255, 0, 0); ">module_wrf_top.f90:(.text+0xa74): undefined reference to `init_modules_'</div>
<div style="color: rgb(255, 0, 0); ">module_wrf_top.f90:(.text+0xa87): undefined reference to `init_modules_'</div><div style="color: rgb(255, 0, 0); ">module_wrf_top.f90:(.text+0xad5): undefined reference to `__module_check_a_mundo__check_nml_consistency'</div>
<div style="color: rgb(255, 0, 0); ">module_wrf_top.f90:(.text+0xada): undefined reference to `__module_check_a_mundo__set_physics_rconfigs'</div><div style="color: rgb(255, 0, 0); ">'</div></div><div style="color: rgb(255, 0, 0); ">
'</div><div style="color: rgb(255, 0, 0); ">'</div><div>-------------------------------</div><div><br></div>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.</div>
<div>Attaching the compile.log file for your reference.</div><div><br></div><div>Kindly let me know if you have any suggestions to resolve this.</div><div><br></div><div>Thanks & Regards,</div><div>Kunal</div><div><br>
<div class="gmail_quote">On Wed, Dec 8, 2010 at 10:44 PM, Kunal Rao <span dir="ltr"><<a href="mailto:kunalgrao@gmail.com">kunalgrao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I had done " $ ./compile em_b_wave |tee compile.log " . Now, cleaned again and this time did "$ ./compile em_b_wave >& compile.log".<div>Now, it has recorded the undefined reference errors in the log file. Attaching the same. Kindly go through that and let me know</div>
<div>if you have any suggestions to resolve it.</div><div><br></div><div>Thanks & Regards,</div><div>Kunal<div><div></div><div class="h5"><br><div><br></div><div><br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 10:08 PM, wrfhelp <span dir="ltr"><<a href="mailto:wrfhelp@ucar.edu" target="_blank">wrfhelp@ucar.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I cannot find any compile errors in your file. Did you do 'compile em_b_wave >& (with &) compile.out'?<br>
If you are working in c-shell environment, you may need to type<br>
compile em_b_wave > compile.out 2>&1<br>
to catch errors.<br>
<br>
wrfhelp<div><div></div><div><br>
<br>
On Dec 8, 2010, at 11:27 AM, Kunal Rao wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div>
Hello<br>
<br>
Thanks for your reply.<br>
<br>
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.<br>
<br>
Kindly find attached the configure.wrf file and the compile.log file for your reference. Kindly let me know if you have any suggestions.<br>
<br>
Thanks & Regards,<br>
Kunal<br>
<br>
<br>
Kindly find attached the configure.wrf file and compile.log file.<br>
<br>
On Tue, Dec 7, 2010 at 9:57 PM, wrfhelp <<a href="mailto:wrfhelp@ucar.edu" target="_blank">wrfhelp@ucar.edu</a>> wrote:<br>
Can you try to first do 'clean -a', and repeat the compile procedure? When you compile,<br>
please save the compile output to a file (e..g compile em_b_wave >& compile.out), and see if<br>
there is other information in the output file that may give you hint on the compile problem. If<br>
you cannot figure it out, please send the entire compile.out file over.<br>
<br>
wrfhelp<br>
<br>
<br>
On Dec 7, 2010, at 5:43 PM, Kunal Rao wrote:<br>
<br>
Hello<br>
<br>
I am trying to compile WRF V 3.2.1 with parallel netCDF v1.2.0 and using gcc and gfortran compiler.<br>
<br>
My configure step is done, but when I compile ( tried with $ ./compile em_b_wave ) I get the following and many such<br>
undefined reference errors.<br>
<br>
-----------------<br>
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<br>
ideal.o: In function `med_initialdata_output_':<br>
<br>
ideal.f90:(.text+0x6e): undefined reference to `__module_date_time__calc_current_date'<br>
ideal.f90:(.text+0x97): undefined reference to `construct_filename1_'<br>
ideal.f90:(.text+0xd9): undefined reference to `__module_io_domain__output_input'<br>
ideal.f90:(.text+0xe9): undefined reference to `__module_io_domain__open_w_dataset'<br>
<br>
----------------<br>
<br>
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 ?<br>
<br>
Any tips on what is missing / going wrong here. How do I resolve this undefined reference errors ?<br>
<br>
Thanks & Regards,<br>
Kunal<br>
<br>
wrfhelp<br>
<a href="http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html" target="_blank">http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html</a><br>
<br>
<br>
<br>
<br></div></div>
<configure.wrf><compile.log><br>
</blockquote><div><div></div><div>
<br>
wrfhelp<br>
<a href="http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html" target="_blank">http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></div>
</blockquote></div><br></div></div>