[Wrf-users] problem

chiggiato at nurc.nato.int chiggiato at nurc.nato.int
Thu Jul 2 12:59:30 MDT 2009


Maria,

> /bin/sh: m4: not found

get and install GNU M4 and then recompile WRF.

-J.

----- Message from virelli at asi.it ---------
     Date: Mon, 15 Jun 2009 10:59:03 +0200
     From: Virelli Maria <virelli at asi.it>
Reply-To: Virelli Maria <virelli at asi.it>
  Subject: [Wrf-users] problem
       To: wrf-users at ucar.edu


>
> Hello...
>
> I am having problems with compiling WPF on Ubuntu Linux machine   
> using gfortran and gcc.
>
> ./compile em_squall2d_x >& compile.log
> There are errors in the compilation process when checking the   
> compile.log file. Here is one of them:
>
> ............
> ar: creating libfftpack.a
> ranlib libfftpack.a
> make[3]: Leaving directory `/home/pc/WRF/WRFV3/external/fftpack/fftpack5'
> ( cd /home/pc/WRF/WRFV3/external/io_netcdf ; \
> make NETCDFPATH="/usr/local/netcdf" RANLIB="ranlib" CPP="/lib/cpp -C -P" \
> CC="gcc" CFLAGS="-w -O3 -c -DLANDREAD_STUB " \
> FC="gfortran -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops   
> -w -ffree-form -ffree-line-length-none -fconvert=big-endian   
> -frecord-marker=4" TRADFLAG="-traditional" AR="ar" ARFLAGS="ru" )
> make[3]: Entering directory `/home/pc/WRF/WRFV3/external/io_netcdf'
> gcc -c -w -O3 -c -DLANDREAD_STUB bitwise_operators.c
> grep nf_format_64bit /usr/local/netcdf/include/netcdf.inc ;\
> a=$? ; export a ; \
> if [ $a -a "$WRFIO_NCD_LARGE_FILE_SUPPORT" = "1" ] ; then \
> /lib/cpp -C -P -C -P -traditional -DWRFIO_NCD_LARGE_FILE_SUPPORT   
> -I../ioapi_share wrf_io.F90 | m4 -Uinclude -Uindex -Ulen - >   
> wrf_io.f ; \
> else \
> /lib/cpp -C -P -C -P -traditional -I../ioapi_share wrf_io.F90 | m4   
> -Uinclude -Uindex -Ulen - > wrf_io.f ; \
> fi
> integer nf_format_64bit
> parameter (nf_format_64bit = 2)
> /bin/sh: m4: not found
> make[3]: [wrf_io.o] [color=#FF4040]Error 127[/color] (ignored)
> gfortran -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w   
> -ffree-form -ffree-line-length-none -fconvert=big-endian   
> -frecord-marker=4 -o wrf_io.o -I/usr/local/netcdf/include   
> -I../ioapi_share -c wrf_io.f
> /lib/cpp -C -P -C -P -traditional -I../ioapi_share   
> field_routines.F90 > field_routines.f
> gfortran -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w   
> -ffree-form -ffree-line-length-none -fconvert=big-endian   
> -frecord-marker=4 -o field_routines.o -I/usr/local/netcdf/include   
> -I../ioapi_share -c field_routines.f
> field_routines.f:39.14:
>
> use wrf_data
> 1
> Fatal Error: Can't open module file 'wrf_data.mod' for reading at   
> (1): No such file or directory
> make[3]: [field_routines.o] Error 1 (ignored)
> /lib/cpp -C -P -C -P -traditional -I../ioapi_share   
> module_wrfsi_static.F90 > module_wrfsi_static.f
> gfortran -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w   
> -ffree-form -ffree-line-length-none -fconvert=big-endian   
> -frecord-marker=4 -o module_wrfsi_static.o   
> -I/usr/local/netcdf/include -I../ioapi_share -c module_wrfsi_static.f
> /bin/rm -f libwrfio_nf.a
> if [ "ar" != "lib.exe" ] ; then \
> ar cr libwrfio_nf.a wrf_io.o field_routines.o module_wrfsi_static.o   
> bitwise_operators.o ; \
> else \
> ar /out:libwrfio_nf.a wrf_io.o field_routines.o   
> module_wrfsi_static.o bitwise_operators.o ; \
> fi
> ar: field_routines.o: No such file or directory
> make[3]: [libwrfio_nf.a] Error 1 (ignored)
> ranlib libwrfio_nf.a
> ranlib: 'libwrfio_nf.a': No such file
> make[3]: [libwrfio_nf.a] Error 1 (ignored)
> make[3]: Leaving directory `/home/pc/WRF/WRFV3/external/io_netcdf'
> ( /bin/rm -f /home/pc/WRF/WRFV3/tools/gen_comms.c )
> ( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning   
> module_dm.F ; cat module_dm_stubs.F >> module_dm.F ; fi )
> make[2]: Leaving directory `/home/pc/WRF/WRFV3/frame'
> make[1]: Leaving directory `/home/pc/WRF/WRFV3'
> make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm   
> -I/home/pc/WRF/WRFV3/external/esmf_time_f90   
> -I/home/pc/WRF/WRFV3/main -I/home/pc/WRF/WRFV3/external/io_netcdf   
> -I/home/pc/WRF/WRFV3/external/io_int -I/home/pc/WRF/WRFV3/frame   
> -I/home/pc/WRF/WRFV3/share -I/home/pc/WRF/WRFV3/phys   
> -I/home/pc/WRF/WRFV3/chem -I/home/pc/WRF/WRFV3/inc " toolsdir
> make[1]: Entering directory `/home/pc/WRF/WRFV3'
>
>
> ........
>
> Could you give me some help?
> Thanks in advance.
>
> Maria
>
>
>
>


----- End message from virelli at asi.it -----

**********************************************************************************************
*** PRIVILEGED AND CONFIDENTIAL ***
The information contained in this e-mail message (including any attached files)
is intended for the use of the addressee(s) only and is privileged information.
The information should neither be posted to the Internet, nor published in any
other public domain, without the express permission of the sender. If you are
not the intended recipient(s) or the recipient's representative, you are hereby
notified that any use, disclosure, copying or distribution of this communication
is prohibited. If you have received this communication in error please notify us
immediately at postmaster at nurc.nato.int and remove this message from 
your system.
**********************************************************************************************



More information about the Wrf-users mailing list