WRF compile failed - no executables formed

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

WRF compile failed - no executables formed

Postby WRFJeev » Wed Aug 24, 2016 12:36 am

Hi All,

I am having some difficulties compiling the WRF (attempting to run an nmm_real forecast). I am using Ubuntu 14.04 and am using gcc/gfortran. I have the relevant dependencies installed and they seemingly are functioning correctly (incl. NetCDF C, NetCDF C++, NetCDF fortran). The compile log is over 100 pages and is only semi-comprehensible to me but the errors start fairly early so I am only going to post the first four pages below. Happy to provide more of the compile log but didn't want to make the post too big. Any help is greatly appreciated.




==============================================================================================

V3.8.1

Compiling: WRF_NMM_CORE

Linux ip-172-31-54-228 3.13.0-91-generic #138-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

GNU Fortran (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING


==============================================================================================

setting parallel make -j 2

==============================================================================================

The following indicate the compilers selected to build the WRF system

Serial Fortran compiler (mostly for tool generation):
which SFC
/usr/bin/gfortran

Serial C compiler (mostly for tool generation):
which SCC
/usr/bin/gcc

Fortran compiler for the model source code:
which FC
/usr/bin/gfortran
Will use 'time' to report timing information

C compiler for the model source code:
which CC
/usr/bin/gcc

==============================================================================================

make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm -I/home/ubuntu/WRFV3/external/esmf_time_f90 -I/home/ubuntu/WRFV3/main -I/home/ubuntu/WRFV3/external/io_netcdf -I/home/ubuntu/WRFV3/external/io_int -I/home/ubuntu/WRFV3/frame -I/home/ubuntu/WRFV3/share -I/home/ubuntu/WRFV3/phys -I/home/ubuntu/WRFV3/chem -I/home/ubuntu/WRFV3/inc -I/usr/local/include " ext
make[1]: Entering directory `/home/ubuntu/WRFV3'
--------------------------------------
( cd frame ; make -i -r externals )
make[2]: Entering directory `/home/ubuntu/WRFV3/frame'
( cd /home/ubuntu/WRFV3/external/esmf_time_f90 ; \
make -j 2 FC="gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " RANLIB="ranlib" \
CPP="/lib/cpp -P -I/home/ubuntu/WRFV3/inc -I. -DEM_CORE=0 -DNMM_CORE=1 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM -DNO_IEEE_MODULE -DDM_PARALLEL -DSTUBMPI -DNETCDF -DHDF5 -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=1 -traditional" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory `/home/ubuntu/WRFV3/external/esmf_time_f90'
make[3]: Nothing to be done for `default'.
make[3]: Leaving directory `/home/ubuntu/WRFV3/external/esmf_time_f90'
( cd /home/ubuntu/WRFV3/external/io_netcdf ; \
make -j 2 NETCDFPATH="/usr/local" RANLIB="ranlib" CPP="/lib/cpp -P" \
CC="gcc" CFLAGS="-w -O3 -c -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=1" \
FC="gfortran -O2 -ftree-vectorize -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/ubuntu/WRFV3/external/io_netcdf'
grep nf_format_64bit /usr/local/include/netcdf.inc ;\
a=$? ; export a ; \
if [ $a -a "$WRFIO_NCD_LARGE_FILE_SUPPORT" = "1" ] ; then \
/lib/cpp -P -P -traditional -DWRFIO_NCD_LARGE_FILE_SUPPORT -I../ioapi_share wrf_io.F90 | m4 -Uinclude -Uindex -Ulen - > wrf_io.f ; \
else \
/lib/cpp -P -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)
gfortran -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -o wrf_io.o -I/usr/local/include -I../ioapi_share -c wrf_io.f
wrf_io.f:8415:0: fatal error: error writing to /tmp/ccgQjqLN.s: No space left on device
use wrf_data
^
compilation terminated.
make[3]: [wrf_io.o] Error 1 (ignored)
/lib/cpp -P -P -traditional -I../ioapi_share field_routines.F90 > field_routines.f
gfortran -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -o field_routines.o -I/usr/local/include -I../ioapi_share -c field_routines.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 ; \
else \
ar /out:libwrfio_nf.a wrf_io.o field_routines.o module_wrfsi_static.o ; \
fi
ar: wrf_io.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/ubuntu/WRFV3/external/io_netcdf'
( cd /home/ubuntu/WRFV3/external/ioapi_share ; \
make -i -r NATIVE_RWORDSIZE="4" RWORDSIZE="4" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory `/home/ubuntu/WRFV3/external/ioapi_share'
( /bin/rm -f ../../inc/wrf_io_flags.h foo_io_flags.h; \
/bin/cp wrf_io_flags.h foo_io_flags.h; \
if [ 4 -ne 4 ] ; then \
/bin/rm -f foo_io_flags.h; \
sed -e 's/104/105/' wrf_io_flags.h > foo_io_flags.h ;\
fi ; \
/bin/mv foo_io_flags.h ../../inc/wrf_io_flags.h )
make[3]: Leaving directory `/home/ubuntu/WRFV3/external/ioapi_share'
( cd /home/ubuntu/WRFV3/external/io_grib_share ; \
make -j 2 CC="gcc" CFLAGS="-w -O3 -c -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=1" RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -P" \
FC="gfortran -I. -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " TRADFLAG="-traditional" AR="ar" ARFLAGS="ru" archive)
make[3]: Entering directory `/home/ubuntu/WRFV3/external/io_grib_share'
make[4]: Entering directory `/home/ubuntu/WRFV3/external/io_grib_share'
ar ru ./libio_grib_share.a io_grib_share.o get_region_center.o gridnav.o open_file.o
ranlib ./libio_grib_share.a
make[4]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib_share'
make[3]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib_share'
( cd /home/ubuntu/WRFV3/external/io_grib1 ; \
make -j 2 CC="gcc" CFLAGS="-w -O3 -c -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 -DNMM_CORE=1" RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -P" \
FC="gfortran -I. -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " TRADFLAG="-traditional" AR="ar" ARFLAGS="ru" archive)
make[3]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1'
Doing make archive on library subdirectory MEL_grib1
make[4]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1/MEL_grib1'
make[5]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1/MEL_grib1'
ar ru ../libio_grib1.a FTP_getfile.o apply_bitmap.o display_gribhdr.o gbyte.o grib_dec.o grib_enc.o grib_seek.o gribgetbds.o gribgetbms.o gribgetgds.o gribgetpds.o gribhdr2file.o gribputbds.o gribputgds.o gribputpds.o hdr_print.o init_dec_struct.o init_enc_struct.o init_gribhdr.o init_struct.o ld_dec_lookup.o ld_enc_input.o ld_enc_lookup.o ld_grib_origctrs.o make_default_grbfn.o make_grib_log.o map_lvl.o map_parm.o pack_spatial.o prt_inp_struct.o upd_child_errmsg.o prt_badmsg.o swap.o grib_uthin.o set_bytes.o
ranlib ../libio_grib1.a
make[5]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1/MEL_grib1'
make[4]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1/MEL_grib1'
Doing make archive on library subdirectory grib1_util
make[4]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1/grib1_util'
make[5]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1/grib1_util'
ar ru ../libio_grib1.a alloc_2d.o read_grib.o write_grib.o
ranlib ../libio_grib1.a
make[5]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1/grib1_util'
make[4]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1/grib1_util'
Doing make archive on library subdirectory WGRIB
make[4]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1/WGRIB'
make[4]: Nothing to be done for `archive'.
make[4]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1/WGRIB'
make[4]: Entering directory `/home/ubuntu/WRFV3/external/io_grib1'
ar ru ./libio_grib1.a grib1_routines.o gribmap.o io_grib1.o trim.o
ranlib ./libio_grib1.a
make[4]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1'
make[3]: Leaving directory `/home/ubuntu/WRFV3/external/io_grib1'
( cd /home/ubuntu/WRFV3/external/io_int ; \
make -j 2 CC="gcc -DFSEEKO64_OK " CFLAGS_LOCAL="-w -O3 -c " RM="rm -f" RANLIB="ranlib" CPP="/lib/cpp -P" \
FC="time gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " FGREP="fgrep -iq" \
TRADFLAG="-traditional" AR="ar" ARFLAGS="ru" ARCHFLAGS="-DEM_CORE=0 -DNMM_CORE=1 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM -DNO_IEEE_MODULE -DDM_PARALLEL -DSTUBMPI -DNETCDF -DHDF5 -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=1" all )
make[3]: Entering directory `/home/ubuntu/WRFV3/external/io_int'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ubuntu/WRFV3/external/io_int'
( cd /home/ubuntu/WRFV3/external/fftpack/fftpack5 ; \
WRFJeev
 
Posts: 2
Joined: Tue Aug 23, 2016 11:38 pm

Re: WRF compile failed - no executables formed

Postby WRFJeev » Tue Aug 30, 2016 4:50 pm

nvm i solved this - basically, my system did not have enough available RAM.
WRFJeev
 
Posts: 2
Joined: Tue Aug 23, 2016 11:38 pm


Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 2 guests