[Wrf-users] WPS V3 compilation problem plotfmt and plotgrid not forming

jagabandhu panda jagabandhu at gmail.com
Fri Dec 4 04:12:21 MST 2009


Hi
This is Jagabandhu from India Meteorological Department, New Delhi. I am
trying to install WPS V3.0.1 in a single processor machine having OS  "Red
Hat Linux 5". I have PGI 6.0 installed and I am first of all trying to
install this with the 1st option i.e. no GRIB 2 using gcc with PGI. When I
am trying to compile I get the following errors which results in the absence
of plotfmt.exe and plotgrid.exe

#################################################################################################
/lib/cpp -C -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF
-DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL plotfmt.F > plotfmt.f90
pgf90 -Mfree -byteswapio -O -c plotfmt.f90
/bin/rm -f plotfmt.f90
pgf90 -o plotfmt.exe  plotfmt.o read_met_module.o module_debug.o \
                misc_definitions_module.o cio.o met_data_module.o \
                -L/home/jagabandhu/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks
-lncarg_c -L/usr/X11R6/lib -lX11
-L/home/jagabandhu/PGI_workstation6.0/pgi/linux86/6.1/lib -lpgftnrtl -lpgc
-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c
/usr/bin/ld: cannot find -lg2c
make[1]: [plotfmt.exe] Error 2 (ignored)
make[1]: Leaving directory `/home/jagabandhu/SATDAS/WRF3P0/WPSV3/util/src'
if [ -h plotfmt.exe ] ; then \
                /bin/rm -f plotfmt.exe ; \
        fi ; \
        if [ -h ../plotfmt.exe ] ; then \
                /bin/rm -f ../plotfmt.exe ; \
        fi ; \
        if [ -e src/plotfmt.exe ] ; then \
                ln -sf src/plotfmt.exe . ; \
        fi
----------------------------------------------------------------------------------------------------
/bin/cp plotgrids.F plotgrids.f90
pgf90 -Mfree -byteswapio -O -c plotgrids.f90
/bin/rm -f plotgrids.f90
pgf90 -o plotgrids.exe  module_map_utils.o module_debug.o cio.o
constants_module.o misc_definitions_module.o \
                plotgrids.o -L/home/jagabandhu/ncl_ncarg-5.1.1/lib -lncarg
-lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
-L/home/jagabandhu/PGI_workstation6.0/pgi/linux86/6.1/lib -lpgftnrtl -lpgc
-L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c
/usr/bin/ld: cannot find -lg2c
make[1]: [plotgrids.exe] Error 2 (ignored)
make[1]: Leaving directory `/home/jagabandhu/SATDAS/WRF3P0/WPSV3/util/src'
if [ -h plotgrids.exe ] ; then \
                /bin/rm -f plotgrids.exe ; \
        fi ; \
        if [ -h ../plotgrids.exe ] ; then \
                /bin/rm -f ../plotgrids.exe ; \
        fi ; \
        if [ -e src/plotgrids.exe ] ; then \
                ln -sf src/plotgrids.exe . ; \
        fi
#########################################################################################

When I try to link with g2c library I am getting the following kind of
errors with the same result as I had previously i.e. the above said exe
files are not forming:

#########################################################################################
pgf90 -Mfree -byteswapio -O -c plotfmt.f90
/bin/rm -f plotfmt.f90
pgf90 -o plotfmt.exe  plotfmt.o read_met_module.o module_debug.o \
                misc_definitions_module.o cio.o met_data_module.o \
                -L/home/jagabandhu/ncl_ncarg-5.1.1/lib -lncarg -lncarg_gks
-lncarg_c -L/usr/X11R6/lib -lX11
-L/home/jagabandhu/PGI_workstation6.0/pgi/linux86/6.0/lib -lpgftnrtl -lpgc
-L/usr/lib/gcc/i386-redhat-linux/3.4.6 -lg2c
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o): In function
`cpcldr_':
cpcldr.f:(.text+0x4fa): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x52b): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x55c): undefined reference to `_gfortran_concat_string'
cpcldr.f:(.text+0x590): undefined reference to `_gfortran_concat_string'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o):cpcldr.f:(.text+0x5f8):
more undefined references to `_gfortran_concat_string' follow
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o): In function
`cpcldr_':
cpcldr.f:(.text+0x7ee): undefined reference to `_gfortran_copy_string'
cpcldr.f:(.text+0xa26): undefined reference to `_gfortran_pow_r4_i4'
cpcldr.f:(.text+0xaa8): undefined reference to `_gfortran_pow_r4_i4'
cpcldr.f:(.text+0xe69): undefined reference to `_gfortran_copy_string'
cpcldr.f:(.text+0xef3): undefined reference to `_gfortran_copy_string'
cpcldr.f:(.text+0xfdd): undefined reference to `_gfortran_copy_string'
cpcldr.f:(.text+0x10e4): undefined reference to `_gfortran_copy_string'
cpcldr.f:(.text+0x119a): undefined reference to `_gfortran_copy_string'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cpcldr.o):cpcldr.f:(.text+0x125e):
more undefined references to `_gfortran_copy_string' follow
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cppkcl.o): In function
`cppkcl_':
cppkcl.f:(.text+0x46b): undefined reference to `_gfortran_pow_r4_i4'
cppkcl.f:(.text+0x537): undefined reference to `_gfortran_pow_r4_i4'
cppkcl.f:(.text+0x55f): undefined reference to `_gfortran_pow_r4_i4'
cppkcl.f:(.text+0x6fe): undefined reference to `_gfortran_copy_string'
cppkcl.f:(.text+0x741): undefined reference to `_gfortran_copy_string'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(cppklb.o): In function
`cppklb_':
cppklb.f:(.text+0x19a): undefined reference to `_gfortran_compare_string'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchhq.o): In function
`.L673':
plchhq.f:(.text+0x42bb): undefined reference to `_gfortran_st_write'
plchhq.f:(.text+0x42d2): undefined reference to `_gfortran_transfer_integer'
plchhq.f:(.text+0x42ef): undefined reference to
`_gfortran_transfer_character'
plchhq.f:(.text+0x42f7): undefined reference to `_gfortran_st_write_done'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchhq.o): In function
`.L548':
plchhq.f:(.text+0x43ed): undefined reference to `_gfortran_st_write'
plchhq.f:(.text+0x4404): undefined reference to `_gfortran_transfer_integer'
plchhq.f:(.text+0x4421): undefined reference to
`_gfortran_transfer_character'
plchhq.f:(.text+0x4429): undefined reference to `_gfortran_st_write_done'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchmq.o): In function
`plchmq_':
plchmq.f:(.text+0x173): undefined reference to `_gfortran_pow_r4_i4'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(plchlq.o): In function
`plchlq_':
plchlq.f:(.text+0x1ee): undefined reference to `_gfortran_pow_r4_i4'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(pcgetc.o): In function
`pcgetc_':
pcgetc.f:(.text+0x6b): undefined reference to `_gfortran_compare_string'
pcgetc.f:(.text+0x91): undefined reference to `_gfortran_compare_string'
pcgetc.f:(.text+0xe3): undefined reference to `_gfortran_copy_string'
pcgetc.f:(.text+0x10a): undefined reference to `_gfortran_compare_string'
pcgetc.f:(.text+0x130): undefined reference to `_gfortran_compare_string'
pcgetc.f:(.text+0x192): undefined reference to `_gfortran_copy_string'
pcgetc.f:(.text+0x1c0): undefined reference to `_gfortran_copy_string'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg.a(pcgetr.o): In function
`pcgetr_':
pcgetr.f:(.text+0x6b): undefined reference to `_gfortran_compare_string'
pcgetr.f:(.text+0x91): undefined reference to `_gfortran_compare_string'
pixwrite_png.c:(.text+0x67): undefined reference to
`png_create_write_struct'
pixwrite_png.c:(.text+0x90): undefined reference to `png_create_info_struct'
pixwrite_png.c:(.text+0xaa): undefined reference to
`png_destroy_write_struct'
pixwrite_png.c:(.text+0xe5): undefined reference to
`png_destroy_write_struct'
pixwrite_png.c:(.text+0x11c): undefined reference to `png_init_io'
pixwrite_png.c:(.text+0x131): undefined reference to `png_malloc'
pixwrite_png.c:(.text+0x172): undefined reference to `png_set_rows'
pixwrite_png.c:(.text+0x1b9): undefined reference to `png_set_IHDR'
pixwrite_png.c:(.text+0x1e2): undefined reference to `png_write_png'
pixwrite_png.c:(.text+0x1f4): undefined reference to
`png_destroy_write_struct'
/home/jagabandhu/ncl_ncarg-5.1.1/lib/libncarg_c.a(i1mach.o): In function
`i1mach_':
i1mach.f:(.text+0x16f): undefined reference to `_gfortran_st_write'
i1mach.f:(.text+0x177): undefined reference to `_gfortran_st_write_done'
i1mach.f:(.text+0x183): undefined reference to `_gfortran_stop_numeric'
i1mach.f:(.text+0x4b4): undefined reference to `_gfortran_st_write'
i1mach.f:(.text+0x4bc): undefined reference to `_gfortran_st_write_done'
i1mach.f:(.text+0x4c8): undefined reference to `_gfortran_stop_numeric'
i1mach.f:(.text+0x640): undefined reference to `_gfortran_st_write'
i1mach.f:(.text+0x65a): undefined reference to
`_gfortran_transfer_character'
i1mach.f:(.text+0x671): undefined reference to `_gfortran_transfer_integer'
i1mach.f:(.text+0x68b): undefined reference to
`_gfortran_transfer_character'
i1mach.f:(.text+0x693): undefined reference to `_gfortran_st_write_done'
i1mach.f:(.text+0x69f): undefined reference to `_gfortran_stop_numeric'
make[1]: [plotfmt.exe] Error 2 (ignored)
make[1]: Leaving directory `/home/jagabandhu/SATDAS/WRF3P0/WPSV3/util/src'
if [ -h plotfmt.exe ] ; then \
                /bin/rm -f plotfmt.exe ; \
        fi ; \
        if [ -h ../plotfmt.exe ] ; then \
                /bin/rm -f ../plotfmt.exe ; \
        fi ; \
        if [ -e src/plotfmt.exe ] ; then \
                ln -sf src/plotfmt.exe . ; \
        fi
-----------------------------------------------------------------------------------------
The errors are similar for plotgrid.exe part as well.

################################################################

It is my humble request to let me know the solution if any. THat would be a
great help!

Thanking you

regards
Jagabandhu

-- 
##################################
Jagabandhu Panda
Research Associate
Sattellite Meteorology Division
India Meteorological Department
Mausam Bhawan, Lodhi Road
New Delhi-110003, India
Phone: (+91)-9873442910
Web:http://jagabandhu.googlepages.com
##################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20091204/9123600a/attachment-0001.html 


More information about the Wrf-users mailing list