UPP Compile Error: /usr/bin/ld: cannot find -lio_grib2

Questions relating to the use of the WRF Post Processor V3

UPP Compile Error: /usr/bin/ld: cannot find -lio_grib2

Postby apextreme » Wed May 16, 2012 7:31 am

Good morning.
My system is:
Ubuntu 11.10 64 bits
Dmpar
Intel compiler

When compiling UPPV1.1 (./compile), does not create the executable unipost.exe because:

ld: cannot find -lio_grib2
make[1]: [unipost.exe] Error 1 (no tiene efecto)
/bin/cp unipost.exe /home/angelo/WRF3.4/original_nmm_dmpar/UPPV1.1/bin
/bin/cp: no se puede efectuar `stat' sobre «unipost.exe»: No existe el archivo o el directorio
make[1]: [unipost.exe] Error 1 (no tiene efecto)


When editing the file configure.upp and eliminate reference to that library, the compilation is correct and unipost.exe executable is created, but is this correct?, Are the subsequent results will be erroneous Unipost?, What gives us useful -lio_grib2?
In advance thank you very much.
In advance thank you very much.
apextreme
 
Posts: 47
Joined: Thu Nov 05, 2009 9:58 am

Re: UPP Compile Error: /usr/bin/ld: cannot find -lio_grib2

Postby apextreme » Thu May 17, 2012 9:24 am

Is there anyone who can help me please?
apextreme
 
Posts: 47
Joined: Thu Nov 05, 2009 9:58 am

Re: UPP Compile Error: /usr/bin/ld: cannot find -lio_grib2

Postby AlC » Sun Jun 10, 2012 12:55 pm

I have the same error. Ubuntu 12.04, 64-bit.

I built wrf3.4 using the Intel compiler and I see from the compile log that io_grib2 was not built. It looks like grib2 should be built in the configure.wrf file (below). But the compile_wrf.log shows no sign that this was attempted (jumps from grib1 to io_int). Jasper is installed and the two jasper variables are defined (below).

I think this problem should also post to the wrf compilation area.

Thank you,

Alan

configure.wrf
wrfio_grib1 :
( cd $(WRF_SRC_ROOT_DIR)/external/io_grib1 ; \
make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \
FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" archive)

wrfio_grib2 :
( cd $(WRF_SRC_ROOT_DIR)/external/io_grib2 ; \
make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" \
CPP="$(CPP)" \
FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="-traditional" AR="$(AR)" ARFLAGS="$(ARFLAGS)" \
FIXED="$(FORMAT_FIXED)" archive)

wrfio_int :

------------------------------------------------------------------------------------------
compile_wrf.log
make[4]: Leaving directory `/home/alan/DRJACK/src/WRFV3/external/io_grib1'
make[3]: Leaving directory `/home/alan/DRJACK/src/WRFV3/external/io_grib1'
( cd /home/alan/DRJACK/src/WRFV3/external/io_int ; \
make CC="icc -DFSEEKO64_OK " RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -C -P" \
FC="ifort -i4 -w -ftz -align all -fno-alias -FR -convert big_endian " FGREP="fgrep -iq" \

------------------------------------------------------------------------------------------------
alan@Laptop:~/DRJACK/src/UPPV1.1/bin$ echo $JASPERLIB
/usr/lib/x86_64-linux-gnu
alan@Laptop:~/DRJACK/src/UPPV1.1/bin$ echo $JASPERINC
/usr/include/jasper
AlC
 
Posts: 7
Joined: Tue Jul 28, 2009 7:02 am

Re: UPP Compile Error: /usr/bin/ld: cannot find -lio_grib2

Postby victor.prosolin » Tue Jun 12, 2012 12:33 pm

You have to make sure WRF is compiled with io_grib2.
To do that, open configure.wrf and add "wrfio_grib2" dependency target to the line that starts with "bundled:". After WRF is (re-)built with this option, UPP build script should pick it up.

I hope this helps,
Victor.
victor.prosolin
 
Posts: 2
Joined: Tue Jun 12, 2012 11:38 am

Re: UPP Compile Error: /usr/bin/ld: cannot find -lio_grib2

Postby AlC » Wed Jun 13, 2012 11:47 pm

Victor,

Perfect! Thank you,

Alan
AlC
 
Posts: 7
Joined: Tue Jul 28, 2009 7:02 am


Return to WRF Post Processor V3

Who is online

Users browsing this forum: No registered users and 1 guest

cron