No Geogrid.exe and Metgrid.exe generated during compilation

Installing the WRF Preprocessing System

No Geogrid.exe and Metgrid.exe generated during compilation

Postby sushant » Fri Jan 27, 2012 7:46 am

Hi
working with netcdf-4.1.3 with gcc and ifort. I am able to install WRFv3.3. But while compilation of WPSv3.3.1. program creates only ungrib.exe. There are no geogrid.exe and metgrid.exe files created in the directory. Compile.output file is as follows


**** Compiling WPS and all utilities ****

make[1]: Entering directory `/home/sushant/Downloads/WPS/geogrid/src'
ifort -o geogrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o module_stringutil.o geogrid.o gridinfo_module.o hash_module.o interp_module.o list_module.o llxy_module.o misc_definitions_module.o module_debug.o module_map_utils.o output_module.o parallel_module.o process_tile_module.o proc_point_module.o queue_module.o read_geogrid.o smooth_module.o source_data_module.o \
/home/sushant/Downloads/WPS/../WRFV3/frame/module_driver_constants.o \
/home/sushant/Downloads/WPS/../WRFV3/frame/pack_utils.o /home/sushant/Downloads/WPS/../WRFV3/frame/module_machine.o \
/home/sushant/Downloads/WPS/../WRFV3/frame/module_internal_header_util.o \
-I/home/sushant/Downloads/WPS/../WRFV3/external/io_netcdf -I/home/sushant/Downloads/WPS/../WRFV3/external/io_grib_share -I/home/sushant/Downloads/WPS/../WRFV3/external/io_grib1 -I/home/sushant/Downloads/WPS/../WRFV3/external/io_int -I/home/sushant/Downloads/WPS/../WRFV3/inc \
-L/home/sushant/Downloads/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/sushant/Downloads/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/sushant/Downloads/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/sushant/Downloads/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/home/sushant/Downloads/WPS/netcdf_links/lib -lnetcdf \

IPO Warning: can not find "/home/sushant/Downloads/WPS/../WRFV3/frame/module_driver_constants.o"
IPO Warning: can not find "/home/sushant/Downloads/WPS/../WRFV3/frame/pack_utils.o"
IPO Warning: can not find "/home/sushant/Downloads/WPS/../WRFV3/frame/module_machine.o"
IPO link: can not find -lio_grib1
ifort: error: problem during multi-file optimization compilation (code 1)
make[1]: [geogrid.exe] Error 1 (ignored)

make[1]: Leaving directory `/home/sushant/Downloads/WPS/geogrid/src'
( cd src/ngl ; make -i -r DEV_TOP="/home/sushant/Downloads/WPS" CC="gcc" FC="ifort" RANLIB="echo" all )
make[1]: Entering directory `/home/sushant/Downloads/WPS/ungrib/src/ngl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/ungrib/src/ngl'
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r ungrib.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UNGRIB" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/ungrib/src'
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:95: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:87: warning: ignoring old recipe for target `.c.o'
make[1]: `ungrib.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/ungrib/src'
if [ -h ungrib.exe ] ; then \
/bin/rm -f ungrib.exe ; \
fi ; \
if [ -h ../ungrib.exe ] ; then \
/bin/rm -f ../ungrib.exe ; \
fi ; \
if [ -e src/ungrib.exe ] ; then \
ln -sf src/ungrib.exe . ; \
fi
make[1]: Entering directory `/home/sushant/Downloads/WPS/metgrid/src'
ifort -o metgrid.exe cio.o wrf_debug.o bitarray_module.o constants_module.o datatype_module.o module_stringutil.o gridinfo_module.o metgrid.o input_module.o interp_module.o interp_option_module.o list_module.o llxy_module.o met_data_module.o minheap_module.o misc_definitions_module.o module_date_pack.o module_debug.o module_map_utils.o module_mergesort.o output_module.o parallel_module.o process_domain_module.o queue_module.o read_met_module.o rotate_winds_module.o storage_module.o write_met_module.o \
/home/sushant/Downloads/WPS/../WRFV3/frame/module_driver_constants.o \
/home/sushant/Downloads/WPS/../WRFV3/frame/pack_utils.o /home/sushant/Downloads/WPS/../WRFV3/frame/module_machine.o \
/home/sushant/Downloads/WPS/../WRFV3/frame/module_internal_header_util.o \
-I/home/sushant/Downloads/WPS/../WRFV3/external/io_netcdf -I/home/sushant/Downloads/WPS/../WRFV3/external/io_grib_share -I/home/sushant/Downloads/WPS/../WRFV3/external/io_grib1 -I/home/sushant/Downloads/WPS/../WRFV3/external/io_int -I/home/sushant/Downloads/WPS/../WRFV3/inc \
-L/home/sushant/Downloads/WPS/../WRFV3/external/io_grib1 -lio_grib1 -L/home/sushant/Downloads/WPS/../WRFV3/external/io_grib_share -lio_grib_share -L/home/sushant/Downloads/WPS/../WRFV3/external/io_int -lwrfio_int -L/home/sushant/Downloads/WPS/../WRFV3/external/io_netcdf -lwrfio_nf -L/home/sushant/Downloads/WPS/netcdf_links/lib -lnetcdf \

IPO Warning: can not find "/home/sushant/Downloads/WPS/../WRFV3/frame/module_driver_constants.o"
IPO Warning: can not find "/home/sushant/Downloads/WPS/../WRFV3/frame/pack_utils.o"
IPO Warning: can not find "/home/sushant/Downloads/WPS/../WRFV3/frame/module_machine.o"
IPO link: can not find -lio_grib1
ifort: error: problem during multi-file optimization compilation (code 1)
make[1]: [metgrid.exe] Error 1 (ignored)

make[1]: Leaving directory `/home/sushant/Downloads/WPS/metgrid/src'
( cd src/ngl ; make -i -r DEV_TOP="/home/sushant/Downloads/WPS" CC="gcc" FC="ifort" RANLIB="echo" all )
make[1]: Entering directory `/home/sushant/Downloads/WPS/ungrib/src/ngl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/ungrib/src/ngl'
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r g1print.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_GRIBUTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/ungrib/src'
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:95: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:87: warning: ignoring old recipe for target `.c.o'
make[1]: `g1print.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/ungrib/src'
if [ -h g1print.exe ] ; then \
/bin/rm -f g1print.exe ; \
fi ; \
if [ -h ../g1print.exe ] ; then \
/bin/rm -f ../g1print.exe ; \
fi ; \
if [ -e src/g1print.exe ] ; then \
ln -sf src/g1print.exe . ; \
fi
( cd src/ngl ; make -i -r DEV_TOP="/home/sushant/Downloads/WPS" CC="gcc" FC="ifort" RANLIB="echo" all )
make[1]: Entering directory `/home/sushant/Downloads/WPS/ungrib/src/ngl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/ungrib/src/ngl'
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r g2print.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_GRIBUTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/ungrib/src'
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:95: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:87: warning: ignoring old recipe for target `.c.o'
make[1]: `g2print.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/ungrib/src'
if [ -h g2print.exe ] ; then \
/bin/rm -f g2print.exe ; \
fi ; \
if [ -h ../g2print.exe ] ; then \
/bin/rm -f ../g2print.exe ; \
fi ; \
if [ -e src/g2print.exe ] ; then \
ln -sf src/g2print.exe . ; \
fi
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r plotfmt.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
ifort -o plotfmt.exe plotfmt.o read_met_module.o module_debug.o \
misc_definitions_module.o cio.o met_data_module.o \
-L/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
IPO link: can not find -lncarg
ifort: error: problem during multi-file optimization compilation (code 1)
make[1]: [plotfmt.exe] Error 1 (ignored)
make[1]: Leaving directory `/home/sushant/Downloads/WPS/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
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r rd_intermediate.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
make[1]: `rd_intermediate.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/util/src'
if [ -h rd_intermediate.exe ] ; then \
/bin/rm -f rd_intermediate.exe ; \
fi ; \
if [ -h ../rd_intermediate.exe ] ; then \
/bin/rm -f ../rd_intermediate.exe ; \
fi ; \
if [ -e src/rd_intermediate.exe ] ; then \
ln -sf src/rd_intermediate.exe . ; \
fi
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r plotgrids.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
ifort -o plotgrids.exe module_map_utils.o module_debug.o cio.o constants_module.o misc_definitions_module.o \
plotgrids.o -L/lib -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11
IPO link: can not find -lncarg
ifort: error: problem during multi-file optimization compilation (code 1)
make[1]: [plotgrids.exe] Error 1 (ignored)
make[1]: Leaving directory `/home/sushant/Downloads/WPS/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
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r mod_levs.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
make[1]: `mod_levs.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/util/src'
if [ -h mod_levs.exe ] ; then \
/bin/rm -f mod_levs.exe ; \
fi ; \
if [ -h ../mod_levs.exe ] ; then \
/bin/rm -f ../mod_levs.exe ; \
fi ; \
if [ -e src/mod_levs.exe ] ; then \
ln -sf src/mod_levs.exe . ; \
fi
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r avg_tsfc.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
make[1]: `avg_tsfc.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/util/src'
if [ -h avg_tsfc.exe ] ; then \
/bin/rm -f avg_tsfc.exe ; \
fi ; \
if [ -h ../avg_tsfc.exe ] ; then \
/bin/rm -f ../avg_tsfc.exe ; \
fi ; \
if [ -e src/avg_tsfc.exe ] ; then \
ln -sf src/avg_tsfc.exe . ; \
fi
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r calc_ecmwf_p.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
make[1]: `calc_ecmwf_p.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/util/src'
if [ -h calc_ecmwf_p.exe ] ; then \
/bin/rm -f calc_ecmwf_p.exe ; \
fi ; \
if [ -h ../calc_ecmwf_p.exe ] ; then \
/bin/rm -f ../calc_ecmwf_p.exe ; \
fi ; \
if [ -e src/calc_ecmwf_p.exe ] ; then \
ln -sf src/calc_ecmwf_p.exe . ; \
fi
( cd src ; \
if [ "" = yes ] ; then \
WRF_DIR2=../WRFV3 ; \
else \
WRF_DIR2=/home/sushant/Downloads/WPS/../WRFV3 ; \
fi ; \
make -i -r height_ukmo.exe \
WRF_DIR="$WRF_DIR2" \
FC="ifort" \
CC="gcc" \
CPP="/lib/cpp -C -P -traditional" \
FFLAGS="-FR -convert big_endian" \
CFLAGS="-w" \
LDFLAGS="" \
CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_UTIL" )
make[1]: Entering directory `/home/sushant/Downloads/WPS/util/src'
make[1]: `height_ukmo.exe' is up to date.
make[1]: Leaving directory `/home/sushant/Downloads/WPS/util/src'
if [ -h height_ukmo.exe ] ; then \
/bin/rm -f height_ukmo.exe ; \
fi ; \
if [ -h ../height_ukmo.exe ] ; then \
/bin/rm -f ../height_ukmo.exe ; \
fi ; \
if [ -e src/height_ukmo.exe ] ; then \
ln -sf src/height_ukmo.exe . ; \
fi
sushant
 
Posts: 10
Joined: Sat Apr 19, 2008 2:08 am

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby kctexas7 » Wed Feb 08, 2012 3:55 pm

I am having the same problem. Have you figured it out yet?

Kathryn
kctexas7
 
Posts: 3
Joined: Wed Jul 06, 2011 11:36 am

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby sushant » Fri Feb 10, 2012 1:41 am

No Kathryn still facing the same problem.
I tried compilation using lower version of netcdf but the same problem continues.
sushant
 
Posts: 10
Joined: Sat Apr 19, 2008 2:08 am

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby mkaraca » Mon Mar 19, 2012 4:36 pm

I had the same problem as i have forgotten to distclean one failed hdf5, (make sure that you are using the final version). I noticed when I 'locate libhdf5'.
mkaraca
 
Posts: 5
Joined: Mon Mar 19, 2012 12:06 pm

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby alainaketh » Wed Dec 09, 2015 1:14 pm

Hi everyone,

Since not creating geogrid.exe and metgrid.exe are the initial stages of the setup of the WRF model, I'd recommend to start over using this tutorial: http://www2.mmm.ucar.edu/wrf/OnLineTuto ... torial.php

In my case, after banging my head against the computer screen for several times, I decided to do set up from the top and it turned out that I hadn't installed the zlib library. Which I did and then everything went as smooth as silk.

EDIT * * * * *

I had to configure WRF again in some other place and I got the same error, no geogrid or metgrid AGAIN. So this time I exited the server I was using and then logged in again. I tried to configure WPS again but to my surprise, I was asked to set the paths for the 'include' and 'library' directories (as if I hadn't set them up already!) so I did that:

If using C Shell:
Code: Select all
$ setenv NETCDF /path/to/directory/Build_WRF/LIBRARIES/netcdf/include
$ setenv NETCDF /path/to/directory/Build_WRF/LIBRARIES/netcdf/lib


If using Bash Shell:
Code: Select all
$ export NETCDF=/path/to/directory/Build_WRF/LIBRARIES/netcdf/include
$ export NETCDF=/path/to/directory/Build_WRF/LIBRARIES/netcdf/lib


(To know which shell you're using, type
Code: Select all
$ echo $SHELL

/bin/csh stands for C Shell, and /bin/bash stands for Bash Shell).

Only after setting the paths, I could chose the configuration for my computer. Then I issued
Code: Select all
./compile >& log.compile
and suddenly geogrid and metgrid were created without problem.
alainaketh
 
Posts: 26
Joined: Fri Jun 26, 2015 12:30 pm

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby gordon » Tue Jul 19, 2016 5:15 am

Try to use gfortran and gcc (recommended), or ifort and icc, but not to combine them.
gordon
 
Posts: 4
Joined: Tue Dec 04, 2012 7:24 am

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby gauravtiwari » Fri Jan 13, 2017 1:15 am

Hello community,

I've installed WRFV3.7.1, netcdf, jasper, zlib, MPICH and pnglib and made variables
JASPERLIB=/home/username/jasper-1.900.1/lib/
JASPERINC=/home/username/jasper-1.900.1/include/
So I'm trying to compile WPS. geogrid.exe and metgrid.exe was successfully generated but there wasn't ungrib.exe in compile.log

I am the beginner in model installation, please someone reply and try to fix my problem ASAP.
gauravtiwari
 
Posts: 6
Joined: Thu Jan 05, 2017 1:28 am

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby mpperezpena » Fri Jan 13, 2017 12:22 pm

Hello everybody and @gauravtiwari!

I'm having the exact same issue with WRFV3.8.1, I'm using intel (icc and ifort), when compiling WRF everything seems ok (all .exe are created), however when trying to compile WPS ungrib.exe is not created, the only clue is the message:

"ld: cannot find -lg2_4
make[1]: [g2print.exe] Error 1 (ignored)"

I have set my environmental variables that look like this:

export CC=icc
export CXX=icpc
export CFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CXXFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export F77=ifort
export FC=ifort
export F90=ifort
export FFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CPP='icc -E'
export CXXCPP='icpc -E'
export ZDIR=/usr/local/zlib-1.2.10
export H5DIR=/usr/local/hdf5-1.10.0
export LDFLAGS="-L${H5DIR}/lib -L${ZDIR}/lib -L${JASPERDIR}/lib -L${NETCDF}/lib"
export CPPFLAGS="-I${H5DIR}/include -I${ZDIR}/include -I${JASPERDIR}/include -I${NETCDF}/include"
export NETCDF=/usr/local/netcdf
export LD_LIBRARY_PATH=${COMPILE.LOGNETCDF}/lib:${LD_LIBRARY_PATH}
export NCARG_ROOT=/usr/local
export JASPERLIB=/usr/local/libpng-1.6.28/grib2/lib
export JASPERINC=/usr/local/libpng-1.6.28/grib2/include

I beliebe I have everything, zlib and libpng alongside with jasper are located under the folder /usr/local/libpng-1.6.28/grib2/ and were compiled with intel as well. could it be something related with FLAGS?

Please help!!! :oops:
mpperezpena
 
Posts: 3
Joined: Fri Jan 13, 2017 12:13 pm

Re: No Geogrid.exe and Metgrid.exe generated during compilat

Postby mpperezpena » Wed Jan 18, 2017 11:59 am

Found the solution! I was working with the latest versions of zlib, libpng and jasper; so I installed older ones as suggested in http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php and it worked !! :D
mpperezpena
 
Posts: 3
Joined: Fri Jan 13, 2017 12:13 pm

Re: Error while compiling ARWpost

Postby gauravtiwari » Wed Jan 18, 2017 12:46 pm

Hi everyone,

I am compiling ARWpost_V3, but during compilation I am getting the following error. Please someone help me to fix out this problem


[gaurav16@kanadlogin1 ARWpost]$ ./configure
** There is an existing ./netcdf_links file. Should I use? [y]
y
Will use NETCDF in dir: /home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links
------------------------------------------------------------------------
Please select from among the following supported platforms.

1. PC Linux i486 i586 i686 x86_64, PGI compiler
2. PC Linux i486 i586 i686 x86_64, Intel compiler
3. PC Linux i486 i586 i686 x86_64, gfortran compiler
4. Settings for Linux x86_64, Intel compiler (dmpar)

Enter selection [1-4] : 4
------------------------------------------------------------------------
Configuration successful. To build the ARWpost, type: compile
------------------------------------------------------------------------
[gaurav16@kanadlogin1 ARWpost]$ ./compile

**** Compiling ARWpost ****

/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -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/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/lib -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -lnetcdff -lnetcdf
input_module.o: In function `input_module_mp_read_next_field_':
input_module.f:(.text+0x4e7): undefined reference to `ncvgt_'
input_module.f:(.text+0x640): undefined reference to `ncvgt_'
input_module.f:(.text+0xb88): undefined reference to `ncvgt_'
input_module.f:(.text+0xe3e): undefined reference to `ncvgt_'
module_interp.o: In function `module_interp_mp_get_interp_info_':
module_interp.f:(.text+0x57ff): undefined reference to `ncvgt_'
module_interp.o:module_interp.f:(.text+0x5dbf): more undefined references to `ncvgt_' follow
make: [ARWpost.exe] Error 1 (ignored)
[gaurav16@kanadlogin1 ARWpost]$ ./clean
rm -f 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 *.mod
[gaurav16@kanadlogin1 ARWpost]$ ./configure
** There is an existing ./netcdf_links file. Should I use? [y]
y
Will use NETCDF in dir: /home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links
------------------------------------------------------------------------
Please select from among the following supported platforms.

1. PC Linux i486 i586 i686 x86_64, PGI compiler
2. PC Linux i486 i586 i686 x86_64, Intel compiler
3. PC Linux i486 i586 i686 x86_64, gfortran compiler
4. Settings for Linux x86_64, Intel compiler (dmpar)

Enter selection [1-4] : 4
------------------------------------------------------------------------
Configuration successful. To build the ARWpost, type: compile
------------------------------------------------------------------------
[gaurav16@kanadlogin1 ARWpost]$ ./compile

**** Compiling ARWpost ****

/bin/rm -f module_model_basics.o module_model_basics.mod
/bin/cp module_model_basics.f90 module_model_basics.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_model_basics.f
/bin/rm -f module_model_basics.f
/bin/rm -f constants_module.o constants_module.mod
/bin/cp constants_module.f90 constants_module.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c constants_module.f
/bin/rm -f constants_module.f
/bin/rm -f misc_definitions_module.o misc_definitions_module.mod
/bin/cp misc_definitions_module.f90 misc_definitions_module.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c misc_definitions_module.f
/bin/rm -f misc_definitions_module.f
/bin/rm -f module_debug.o module_debug.mod
/bin/cp module_debug.f90 module_debug.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_debug.f
module_debug.f(96): remark #8290: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+3'.
WRITE(6,'(f6.4)',advance='no') fa
-----------------------------^
/bin/rm -f module_debug.f
/bin/rm -f module_get_file_names.o module_get_file_names.mod
/lib/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -DUSE_JPEG2000 -DUSE_PNG module_get_file_names.F90 > module_get_file_names.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_get_file_names.f
/bin/rm -f module_get_file_names.f
/bin/rm -f gridinfo_module.o gridinfo_module.mod
/bin/cp gridinfo_module.f90 gridinfo_module.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c gridinfo_module.f
/bin/rm -f gridinfo_module.f
/bin/rm -f module_date_pack.o module_date_pack.mod
/bin/cp module_date_pack.f90 module_date_pack.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_date_pack.f
/bin/rm -f module_date_pack.f
/bin/rm -f input_module.o input_module.mod
/bin/cp input_module.f90 input_module.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c input_module.f
/bin/rm -f input_module.f
/bin/rm -f module_arrays.o module_arrays.mod
/bin/cp module_arrays.f90 module_arrays.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_arrays.f
/bin/rm -f module_arrays.f
/bin/rm -f module_pressure.o module_pressure.mod
/bin/cp module_pressure.f90 module_pressure.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_pressure.f
/bin/rm -f module_pressure.f
/bin/rm -f module_interp.o module_interp.mod
/bin/cp module_interp.f90 module_interp.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_interp.f
/bin/rm -f module_interp.f
/bin/rm -f output_module.o output_module.mod
/lib/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -DUSE_JPEG2000 -DUSE_PNG output_module.F90 > output_module.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c output_module.f
/bin/rm -f output_module.f
/bin/rm -f module_basic_arrays.o module_basic_arrays.mod
/bin/cp module_basic_arrays.f90 module_basic_arrays.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_basic_arrays.f
/bin/rm -f module_basic_arrays.f
/bin/rm -f module_calc_height.o module_calc_height.mod
/bin/cp module_calc_height.f90 module_calc_height.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_height.f
/bin/rm -f module_calc_height.f
/bin/rm -f module_calc_pressure.o module_calc_pressure.mod
/bin/cp module_calc_pressure.f90 module_calc_pressure.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_pressure.f
/bin/rm -f module_calc_pressure.f
/bin/rm -f module_calc_tk.o module_calc_tk.mod
/bin/cp module_calc_tk.f90 module_calc_tk.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_tk.f
/bin/rm -f module_calc_tk.f
/bin/rm -f module_calc_tc.o module_calc_tc.mod
/bin/cp module_calc_tc.f90 module_calc_tc.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_tc.f
/bin/rm -f module_calc_tc.f
/bin/rm -f module_calc_theta.o module_calc_theta.mod
/bin/cp module_calc_theta.f90 module_calc_theta.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_theta.f
/bin/rm -f module_calc_theta.f
/bin/rm -f module_calc_td.o module_calc_td.mod
/bin/cp module_calc_td.f90 module_calc_td.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_td.f
/bin/rm -f module_calc_td.f
/bin/rm -f module_calc_td2.o module_calc_td2.mod
/bin/cp module_calc_td2.f90 module_calc_td2.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_td2.f
/bin/rm -f module_calc_td2.f
/bin/rm -f module_calc_rh.o module_calc_rh.mod
/bin/cp module_calc_rh.f90 module_calc_rh.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_rh.f
/bin/rm -f module_calc_rh.f
/bin/rm -f module_calc_rh2.o module_calc_rh2.mod
/bin/cp module_calc_rh2.f90 module_calc_rh2.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_rh2.f
/bin/rm -f module_calc_rh2.f
/bin/rm -f module_calc_uvmet.o module_calc_uvmet.mod
/bin/cp module_calc_uvmet.f90 module_calc_uvmet.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_uvmet.f
/bin/rm -f module_calc_uvmet.f
/bin/rm -f module_calc_slp.o module_calc_slp.mod
/bin/cp module_calc_slp.f90 module_calc_slp.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_slp.f
/bin/rm -f module_calc_slp.f
/bin/rm -f module_calc_dbz.o module_calc_dbz.mod
/bin/cp module_calc_dbz.f90 module_calc_dbz.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_dbz.f
/bin/rm -f module_calc_dbz.f
/bin/rm -f module_calc_cape.o module_calc_cape.mod
/bin/cp module_calc_cape.f90 module_calc_cape.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_cape.f
/bin/rm -f module_calc_cape.f
/bin/rm -f module_calc_wdir.o module_calc_wdir.mod
/bin/cp module_calc_wdir.f90 module_calc_wdir.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_wdir.f
/bin/rm -f module_calc_wdir.f
/bin/rm -f module_calc_wspd.o module_calc_wspd.mod
/bin/cp module_calc_wspd.f90 module_calc_wspd.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_wspd.f
/bin/rm -f module_calc_wspd.f
/bin/rm -f module_calc_clfr.o module_calc_clfr.mod
/bin/cp module_calc_clfr.f90 module_calc_clfr.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_calc_clfr.f
/bin/rm -f module_calc_clfr.f
/bin/rm -f module_diagnostics.o module_diagnostics.mod
/bin/cp module_diagnostics.f90 module_diagnostics.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_diagnostics.f
/bin/rm -f module_diagnostics.f
/bin/rm -f process_domain_module.o process_domain_module.mod
/lib/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI -DUSE_JPEG2000 -DUSE_PNG process_domain_module.F90 > process_domain_module.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c process_domain_module.f
/bin/rm -f process_domain_module.f
/bin/rm -f ARWpost.o ARWpost.mod
/bin/cp ARWpost.f90 ARWpost.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c ARWpost.f
/bin/rm -f ARWpost.f
/bin/rm -f module_map_utils.o module_map_utils.mod
/bin/cp module_map_utils.f90 module_map_utils.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -c module_map_utils.f
/bin/rm -f module_map_utils.f
/home1/gaurav16/wrf/mpich/bin/mpif90 -f90=ifort -FR -convert big_endian -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/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/lib -I/home1/gaurav16/wrf/build_wrf/ARWpost/netcdf_links/include -lnetcdff -lnetcdf
input_module.o: In function `input_module_mp_read_next_field_':
input_module.f:(.text+0x4e7): undefined reference to `ncvgt_'
input_module.f:(.text+0x640): undefined reference to `ncvgt_'
input_module.f:(.text+0xb88): undefined reference to `ncvgt_'
input_module.f:(.text+0xe3e): undefined reference to `ncvgt_'
module_interp.o: In function `module_interp_mp_get_interp_info_':
module_interp.f:(.text+0x57ff): undefined reference to `ncvgt_'
module_interp.o:module_interp.f:(.text+0x5dbf): more undefined references to `ncvgt_' follow
make: [ARWpost.exe] Error 1 (ignored)
gauravtiwari
 
Posts: 6
Joined: Thu Jan 05, 2017 1:28 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron