Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Compilation error related to 'ar' and header files

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

ep-98d

New member
Hello,

I am trying to build WRF in my machine (Arch Linux 4.18). I believe I have all the libraries setup.

I am getting error messages regarding 'ar' and some missiing header files. Below is the error compilation message.

Can anyone help solving the compile error?

Thank you.

Code:
None of WRF_EM_CORE, WRF_NMM_CORE, 
        specified in shell environment.... 
 
============================================================================================== 
 
V4.0.1    
 
Compiling: WRF_EM_CORE  
 
Linux birdhouse 4.18.12-arch1-1-ARCH #1 SMP PREEMPT Thu Oct 4 01:01:27 UTC 2018 x86_64 GNU/Linux
 
GNU Fortran (GCC) 8.2.1 20180831
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 
============================================================================================== 
 
setting parallel make -j 6
 
============================================================================================== 
 
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/mpif90
Will use 'time' to report timing information
 
C compiler for the model source code:
which CC
/usr/bin/mpicc
 
============================================================================================== 
 
make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " ext
make[1]: Entering directory '/home/pigeon/Testsite/WRF'
--------------------------------------
if [ 0 -eq 0 ] ; then \
  ( cd frame ; make -i -r externals ) ; \
else \
  ( cd frame ; make -i -r PLUSFLAG="-DWRFPLUS=1" externals ) ; \
fi
make[2]: Entering directory '/home/pigeon/Testsite/WRF/frame'
( cd /home/pigeon/Testsite/WRF/external/esmf_time_f90 ; \
          make -j 6 FC="gfortran   -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " RANLIB="ranlib" \
          CPP="cpp -P -nostdinc -I/home/pigeon/Testsite/WRF/inc -I. -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=0 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT  -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=1 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory '/home/pigeon/Testsite/WRF/external/esmf_time_f90'
make[3]: Nothing to be done for 'default'.
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/external/esmf_time_f90'
( cd /home/pigeon/Testsite/WRF/external/io_netcdf ; \
          make -j 6 NETCDFPATH="/usr" RANLIB="ranlib" CPP="cpp -P -nostdinc" \
          CC="gcc" CFLAGS="-w -O3 -c  -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0" \
          FC="gfortran  -fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory '/home/pigeon/Testsite/WRF/external/io_netcdf'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_netcdf'
( cd /home/pigeon/Testsite/WRF/external/ioapi_share ; \
          make -i -r NATIVE_RWORDSIZE="4" RWORDSIZE="4" AR="ar" ARFLAGS="ru" )
make[3]: Entering directory '/home/pigeon/Testsite/WRF/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/pigeon/Testsite/WRF/external/ioapi_share'
( cd /home/pigeon/Testsite/WRF/external/io_grib_share ; \
          make -j 6 CC="gcc" CFLAGS="-w -O3 -c  -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0" RM="rm -f" RANLIB="ranlib" CPP="cpp -P -nostdinc" \
          FC="gfortran  -I.  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  " TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" AR="ar" ARFLAGS="ru" archive) 
make[3]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib_share'
make[4]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib_share'
ar ru ./libio_grib_share.a io_grib_share.o get_region_center.o gridnav.o open_file.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib ./libio_grib_share.a
make[4]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib_share'
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib_share'
( cd /home/pigeon/Testsite/WRF/external/io_grib1 ; \
          make -j 6 CC="gcc" CFLAGS="-w -O3 -c  -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0" RM="rm -f" RANLIB="ranlib" CPP="cpp -P -nostdinc" \
          FC="gfortran  -I.  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  " TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" AR="ar" ARFLAGS="ru" archive)
make[3]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib1'
        Doing make archive on library subdirectory MEL_grib1
make[4]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib1/MEL_grib1'
make[5]: Entering directory '/home/pigeon/Testsite/WRF/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
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib ../libio_grib1.a
make[5]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1/MEL_grib1'
make[4]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1/MEL_grib1'
        Doing make archive on library subdirectory grib1_util
make[4]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib1/grib1_util'
make[5]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib1/grib1_util'
ar ru ../libio_grib1.a alloc_2d.o read_grib.o write_grib.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib ../libio_grib1.a
make[5]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1/grib1_util'
make[4]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1/grib1_util'
        Doing make archive on library subdirectory WGRIB
make[4]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib1/WGRIB'
make[4]: Nothing to be done for 'archive'.
make[4]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1/WGRIB'
make[4]: Entering directory '/home/pigeon/Testsite/WRF/external/io_grib1'
ar ru ./libio_grib1.a grib1_routines.o gribmap.o io_grib1.o trim.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib ./libio_grib1.a
make[4]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1'
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_grib1'
( cd /home/pigeon/Testsite/WRF/external/io_int ; \
          make -j 6 CC="mpicc  -DFSEEKO64_OK " CFLAGS_LOCAL="-w -O3 -c " RM="rm -f" RANLIB="ranlib" CPP="cpp -P -nostdinc" \
          FC="mpif90    -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fopenmp" FGREP="fgrep -iq" \
          TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" AR="ar" ARFLAGS="ru" ARCHFLAGS="-DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=0 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT  -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=1 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0" all )
make[3]: Entering directory '/home/pigeon/Testsite/WRF/external/io_int'
if [ -f ../../frame/pack_utils.o -a -f ../../frame/clog.o ] ; then \
  mpif90    -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fopenmp   -I../ioapi_share -o diffwrf diffwrf.f \
	../../frame/pack_utils.o ../../frame/module_internal_header_util.o ../../frame/module_driver_constants.o ../../frame/module_machine.o ../../frame/module_wrf_error.o ../../frame/wrf_debug.o  libwrfio_int.a ; \
fi
mpif90    -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -fopenmp   -o test_io_idx test_io_idx.f -L. -lwrfio_int
/usr/bin/ld: /usr/lib/gcc/x86_64/-usrpc/-binlinux/-ldgnu:/ 8.2.1//usr./.lib//.gcc.//x86_64.-.pc/-.linux.-/gnulib//8.2.1Scrt1.o/:. .in/ .function. /`._start.'/:.
.(/.libtext/+Scrt1.o0x24:) :in  undefinedfunction  reference` _startto' :`
main('.
text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[3]: [makefile:85: test_io_idx] Error 1 (ignored)
make[3]: [makefile:76: diffwrf] Error 1 (ignored)
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_int'
( cd /home/pigeon/Testsite/WRF/external/fftpack/fftpack5 ; \
          make -j 6 FC="gfortran" FFLAGS="  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " RANLIB="ranlib" AR="ar" \
          ARFLAGS="ru" CPP="cpp -P -nostdinc" CPPFLAGS="-DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DDA_CORE=0 -DWRFPLUS=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT  -DDM_PARALLEL -DNETCDF -DUSE_ALLOCATABLES -Dwrfmodel -DGRIB1 -DINTIO -DKEEP_INT_AROUND -DLIMIT_ARGS -DBUILD_RRTMG_FAST=1 -DCONFIG_BUF_LEN=65536 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0  -I. -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT " RM="rm -f" )
make[3]: Entering directory '/home/pigeon/Testsite/WRF/external/fftpack/fftpack5'
ar ru libfftpack.a c1f2kb.o  cfft1b.o  cmf3kf.o  cosqb1.o  costmi.o   dcosq1f.o  dfftb1.o   mradb2.o  mrfti1.o  r1fgkf.o     rfft2i.o  sinqmi.o  z1f2kf.o  zfft1f.o  zmf4kb.o c1f2kf.o  cfft1f.o  cmf4kb.o  cosqf1.o  d1f2kb.o   dcosq1i.o  dfftf1.o   mradb3.o  msntb1.o  r4_factor.o  rfftb1.o  sint1b.o  z1f3kb.o  zfft1i.o  zmf4kf.o c1f3kb.o  cfft1i.o  cmf4kf.o  cosqmb.o  d1f2kf.o   dcosqb1.o  dffti1.o   mradb4.o  msntf1.o  r4_mcfti1.o  rfftf1.o  sint1f.o  z1f3kf.o  zfft2b.o  zmf5kb.o c1f3kf.o  cfft2b.o  cmf5kb.o  cosqmf.o  d1f3kb.o   dcosqf1.o  dsint1b.o  mradb5.o  r1f2kb.o  r4_tables.o  rffti1.o  sint1i.o  z1f4kb.o  zfft2f.o  zmf5kf.o c1f4kb.o  cfft2f.o  cmf5kf.o  cosqmi.o  d1f3kf.o   dcost1b.o  dsint1f.o  mradbg.o  r1f2kf.o  r8_factor.o  rfftmb.o  sintb1.o  z1f4kf.o  zfft2i.o  zmfgkb.o c1f4kf.o  cfft2i.o  cmfgkb.o  cost1b.o  d1f4kb.o   dcost1f.o  dsint1i.o  mradf2.o  r1f3kb.o  r8_mcfti1.o  rfftmf.o  sintf1.o  z1f5kb.o  zfftmb.o  zmfgkf.o c1f5kb.o  cfftmb.o  cmfgkf.o  cost1f.o  d1f4kf.o   dcost1i.o  dsintb1.o  mradf3.o  r1f3kf.o  r8_tables.o  rfftmi.o  sintmb.o  z1f5kf.o  zfftmf.o  zmfm1b.o c1f5kf.o  cfftmf.o  cmfm1b.o  cost1i.o  d1f5kb.o   dcostb1.o  dsintf1.o  mradf4.o  r1f4kb.o  rfft1b.o     sinq1b.o  sintmf.o  z1fgkb.o  zfftmi.o  zmfm1f.o c1fgkb.o  cfftmi.o  cmfm1f.o  costb1.o  d1f5kf.o   dcostf1.o  mcsqb1.o   mradf5.o  r1f4kf.o  rfft1f.o     sinq1f.o  sintmi.o  z1fgkf.o  zmf2kb.o c1fgkf.o  cmf2kb.o  cosq1b.o  costf1.o  d1fgkb.o   dfft1b.o   mcsqf1.o   mradfg.o  r1f5kb.o  rfft1i.o     sinq1i.o  xercon.o  z1fm1b.o  zmf2kf.o c1fm1b.o  cmf2kf.o  cosq1f.o  costmb.o  d1fgkf.o   dfft1f.o   mcstb1.o   mrftb1.o  r1f5kf.o  rfft2b.o     sinqmb.o  xerfft.o  z1fm1f.o  zmf3kb.o c1fm1f.o  cmf3kb.o  cosq1i.o  costmf.o  dcosq1b.o  dfft1i.o   mcstf1.o   mrftf1.o  r1fgkb.o  rfft2f.o     sinqmf.o  z1f2kb.o  zfft1b.o  zmf3kf.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib libfftpack.a
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/external/fftpack/fftpack5'
( if [ ! -e /home/pigeon/Testsite/WRF/tools/gen_comms.c ] ; then \
          /bin/cp /home/pigeon/Testsite/WRF/tools/gen_comms_warning /home/pigeon/Testsite/WRF/tools/gen_comms.c ; \
          cat /home/pigeon/Testsite/WRF/external/RSL_LITE/gen_comms.c >> /home/pigeon/Testsite/WRF/tools/gen_comms.c ; fi )
( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning module_dm.F ; \
          cat /home/pigeon/Testsite/WRF/external/RSL_LITE/module_dm.F >> module_dm.F ; fi )
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/frame'
make[1]: Leaving directory '/home/pigeon/Testsite/WRF'
make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " toolsdir
make[1]: Entering directory '/home/pigeon/Testsite/WRF'
--------------------------------------
if [ 0 -eq 0 ] ; then \
  ( cd tools ; make -i -r CC_TOOLS_CFLAGS="-DNMM_CORE=0" CC_TOOLS="gcc  -DIWORDSIZE=4 -DMAX_HISTORY=25" ) ; \
else \
  ( cd tools ; make -i -r CC_TOOLS_CFLAGS="-DNMM_CORE=0" CC_TOOLS="gcc  -DIWORDSIZE=4 -DMAX_HISTORY=25 -DWRFPLUS=1" ) ; \
fi
make[2]: Entering directory '/home/pigeon/Testsite/WRF/tools'
make[2]: 'registry' is up to date.
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/tools'
make[1]: Leaving directory '/home/pigeon/Testsite/WRF'
/bin/rm -f main/libwrflib.a main/libwrflib.lib
make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " framework
make[1]: Entering directory '/home/pigeon/Testsite/WRF'
--------------------------------------
( cd frame ; make -i -r -j 6 LLIST="" framework ; \
          cd ../external/io_netcdf ; \
          make -i -r NETCDFPATH="/usr" \
               FC="mpif90  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp" RANLIB="ranlib" \
               CPP="cpp -P -nostdinc" LDFLAGS="-fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   " TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" ESMF_IO_LIB_EXT="-L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time" \
               LIB_LOCAL="" \
               ESMF_MOD_DEPENDENCE="/home/pigeon/Testsite/WRF/external/esmf_time_f90/module_utility.o" AR="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf; \
          cd ../io_netcdf ; \
          make -i -r NETCDFPATH="/usr" \
               FC="gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp" RANLIB="ranlib" \
               CPP="cpp -P -nostdinc" LDFLAGS="-fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   " TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" ESMF_IO_LIB_EXT="-L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time" \
       LIB_LOCAL="" \
               ESMF_MOD_DEPENDENCE="/home/pigeon/Testsite/WRF/external/esmf_time_f90/module_utility.o" AR="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
          cd ../io_pio ; \
          echo SKIPPING PIO BUILD make -i -r NETCDFPATH="" \
               FC="gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp" RANLIB="ranlib" \
               CPP="cpp -P -nostdinc" LDFLAGS="-fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4   " TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" ESMF_IO_LIB_EXT="-L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time" \
       LIB_LOCAL="" \
               ESMF_MOD_DEPENDENCE="/home/pigeon/Testsite/WRF/external/esmf_time_f90/module_utility.o" AR="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
          cd ../io_int ; \
          make -i -r SFC="gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " \
               FC="gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp" \
               RANLIB="ranlib" CPP="cpp -P -nostdinc -DNONSTANDARD_SYSTEM_SUBR  -DWRF_USE_CLM -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" DM_FC="mpif90  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 "\
               TRADFLAG="-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT" ESMF_IO_LIB_EXT="-L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time" \
               ESMF_MOD_DEPENDENCE="/home/pigeon/Testsite/WRF/external/esmf_time_f90/module_utility.o" AR="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf ; \
          cd ../../frame )
make[2]: Entering directory '/home/pigeon/Testsite/WRF/frame'
ar ru ../main/libwrflib.a module_driver_constants.o module_domain_type.o module_streams.o module_domain.o  module_integrate.o module_timing.o module_configure.o module_tiles.o module_machine.o module_nesting.o module_wrf_error.o module_state_description.o module_sm.o module_io.o module_comm_dm.o module_comm_dm_0.o module_comm_dm_1.o module_comm_dm_2.o module_comm_dm_3.o module_comm_dm_4.o module_comm_nesting_dm.o module_dm.o module_quilt_outbuf_ops.o module_io_quilt.o module_intermediate_nmm.o module_cpl.o module_cpl_oasis3.o module_clear_halos.o wrf_num_bytes_between.o wrf_shutdown.o wrf_debug.o libmassv.o collect_on_comm.o hires_timer.o clog.o nl_get_0_routines.o nl_get_1_routines.o nl_get_2_routines.o nl_get_3_routines.o nl_get_4_routines.o nl_get_5_routines.o nl_get_6_routines.o nl_get_7_routines.o nl_set_0_routines.o nl_set_1_routines.o nl_set_2_routines.o nl_set_3_routines.o nl_set_4_routines.o nl_set_5_routines.o nl_set_6_routines.o nl_set_7_routines.o  module_alloc_space_0.o module_alloc_space_1.o module_alloc_space_2.o module_alloc_space_3.o module_alloc_space_4.o module_alloc_space_5.o module_alloc_space_6.o module_alloc_space_7.o module_alloc_space_8.o module_alloc_space_9.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating ../main/libwrflib.a
ranlib ../main/libwrflib.a
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/frame'
make[2]: Entering directory '/home/pigeon/Testsite/WRF/external/io_netcdf'
x=`echo "mpif90  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp" | awk '{print $1}'` ; export x ; \
if [ $x = "gfortran" ] ; then \
           echo removing external declaration of iargc for gfortran ; \
   cpp -P -nostdinc -P -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -I/usr/include -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' > diffwrf.f ;\
        else \
   cpp -P -nostdinc -P -traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT -I/usr/include -I../ioapi_share diffwrf.F90 > diffwrf.f ; \
        fi
mpif90  -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp -c  -I/usr/include -I../ioapi_share diffwrf.f
diffwrf.f:51:6:

   use wrf_data
      1
Fatal Error: Can't open module file 'wrf_data.mod' for reading at (1): No such file or directory
compilation terminated.
make[2]: [makefile:44: diffwrf] Error 1 (ignored)
diffwrf io_netcdf is being built now. 
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: [makefile:45: diffwrf] Error 1 (ignored)
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_netcdf'
make[2]: Entering directory '/home/pigeon/Testsite/WRF/external/io_netcdf'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_netcdf'
SKIPPING PIO BUILD make -i -r NETCDFPATH= FC=gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp RANLIB=ranlib CPP=cpp -P -nostdinc LDFLAGS=-fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    TRADFLAG=-traditional-cpp -DUSE_NETCDF4_FEATURES -DWRFIO_NCD_LARGE_FILE_SUPPORT ESMF_IO_LIB_EXT=-L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time LIB_LOCAL= ESMF_MOD_DEPENDENCE=/home/pigeon/Testsite/WRF/external/esmf_time_f90/module_utility.o AR=INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR
make[2]: Entering directory '/home/pigeon/Testsite/WRF/external/io_int'
if [ -f ../../frame/pack_utils.o -a -f ../../frame/clog.o ] ; then \
  gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -fopenmp   -I../ioapi_share -o diffwrf diffwrf.f \
	../../frame/pack_utils.o ../../frame/module_internal_header_util.o ../../frame/module_driver_constants.o ../../frame/module_machine.o ../../frame/module_wrf_error.o ../../frame/wrf_debug.o -L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time libwrfio_int.a ; \
fi
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: [makefile:76: diffwrf] Error 1 (ignored)
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/external/io_int'
make[1]: Leaving directory '/home/pigeon/Testsite/WRF'
make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " shared
make[1]: Entering directory '/home/pigeon/Testsite/WRF'
--------------------------------------
if [ "`echo -j 6 | sed -e 's/-j//g' -e 's/ \+//g'`" -gt "6" ] ; then \
  if [ 0 -eq 0 ]   ; then \
   ( cd share ; make -i -r -j 6 PERTMOD=" " ) ;  \
  else \
   ( cd share ; make -i -r -j 6 PERTMOD="../dyn_em/module_bc_em.o ../wrftladj/mediation_pertmod_io.o" ) ;  \
  fi \
else \
  if [ 0 -eq 0 ]   ; then \
   ( cd share ; make -i -r -j 6 PERTMOD=" " ) ;  \
  else \
   ( cd share ; make -i -r -j 6 PERTMOD="../dyn_em/module_bc_em.o ../wrftladj/mediation_pertmod_io.o" ) ;  \
  fi \
fi
make[2]: Entering directory '/home/pigeon/Testsite/WRF/share'
rm -f landread.o
mpicc  -DFSEEKO64_OK  -o landread.o -c -w -O3 -c  -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0 landread.c
landread.c:68:10: fatal error: rpc/types.h: No such file or directory
 #include <rpc/types.h>
          ^~~~~~~~~~~~~
compilation terminated.
make[2]: [../configure.wrf:372: landread.o] Error 1 (ignored)
if [ 0 -eq 1 ] ; then \
                  make -i -r nmm_contrib                                      ; \
                  ar ru ../main/libwrflib.a module_model_constants.o module_bc_time_utilities.o module_get_file_names.o module_compute_geop.o module_check_a_mundo.o module_random.o module_llxy.o module_interp_nmm.o module_interp_store.o module_MPP.o  module_date_time.o module_bc.o module_io_wrf.o module_soil_pre.o  module_io_domain.o               module_optional_input.o          solve_interface.o mediation_interp_domain.o mediation_force_domain.o mediation_feedback_domain.o start_domain.o init_modules.o set_timekeeping.o interp_fcn.o sint.o wrf_ext_write_field.o wrf_ext_read_field.o  wrf_tsin.o landread.o track_driver.o track_input.o module_trajectory.o bobrand.o wrf_timeseries.o track_driver.o wrf_fddaobs_in.o mediation_nest_move.o setfeenv.o input_wrf.o output_wrf.o wrf_bdyout.o wrf_bdyin.o dfi.o  mediation_integrate.o mediation_wrfmain.o    ; \
                  else                                                         \
                  ar ru ../main/libwrflib.a module_model_constants.o module_bc_time_utilities.o module_get_file_names.o module_compute_geop.o module_check_a_mundo.o module_random.o module_llxy.o module_interp_nmm.o module_interp_store.o module_MPP.o  module_date_time.o module_bc.o module_io_wrf.o module_soil_pre.o  module_io_domain.o               module_optional_input.o          solve_interface.o mediation_interp_domain.o mediation_force_domain.o mediation_feedback_domain.o start_domain.o init_modules.o set_timekeeping.o interp_fcn.o sint.o wrf_ext_write_field.o wrf_ext_read_field.o  wrf_tsin.o landread.o track_driver.o track_input.o module_trajectory.o bobrand.o wrf_timeseries.o track_driver.o wrf_fddaobs_in.o mediation_nest_move.o setfeenv.o input_wrf.o output_wrf.o wrf_bdyout.o wrf_bdyin.o dfi.o  mediation_integrate.o mediation_wrfmain.o              ; \
                fi
ar: `u' modifier ignored since `D' is the default (see `U')
ar: landread.o: No such file or directory
make[2]: [Makefile:79: shared] Error 1 (ignored)
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/share'
make[1]: Leaving directory '/home/pigeon/Testsite/WRF'
make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " physics
make[1]: Entering directory '/home/pigeon/Testsite/WRF'
--------------------------------------
if [ 0  -eq 0 ] ; then \
	( cd phys ; make -i -r CF2=" " ) ; \
else \
	( cd phys ; make -i -r CF2="../chem/module_data_mosaic_asect.o" ) ; \
fi
make[2]: Entering directory '/home/pigeon/Testsite/WRF/phys'
if [ 0 -eq 1 ] ; then \
                  make -i -r -j 6 nmm_contrib  ; \
                  ar ru ../main/libwrflib.a module_cam_shr_kind_mod.o module_cam_support.o module_cam_shr_const_mod.o module_cam_physconst.o module_cam_cldwat.o module_cam_wv_saturation.o module_cam_esinti.o module_cam_gffgch.o module_cam_error_function.o module_cam_constituents.o module_cam_trb_mtn_stress.o module_cam_molec_diff.o module_cam_upper_bc.o module_cam_bl_diffusion_solver.o module_cam_bl_eddy_diff.o module_cam_mp_microp_aero.o module_cam_mp_cldwat2m_micro.o module_cam_mp_ndrop.o module_cam_mp_modal_aero_initialize_data_phys.o module_cam_mp_radconstants.o module_cam_mp_conv_water.o module_cam_mp_qneg3.o module_data_cam_mam_aero.o module_data_cam_mam_asect.o module_cam_infnan.o  module_bl_ysu.o module_bl_shinhong.o module_bl_mrf.o module_bl_gfs.o module_bl_gfsedmf.o module_bl_myjpbl.o module_bl_qnsepbl.o module_bl_acm.o module_bl_mynn.o module_bl_fogdes.o module_bl_gwdo.o module_bl_myjurb.o module_bl_boulac.o module_bl_camuwpbl_driver.o module_bl_mfshconvpbl.o module_shcu_camuwshcu_driver.o module_shcu_camuwshcu.o module_shcu_grims.o module_shcu_nscv.o module_cu_camzm_driver.o module_cu_camzm.o module_bl_temf.o module_bl_gbmpbl.o module_cu_g3.o module_cu_kf.o module_cu_bmj.o module_cu_kfeta.o module_cu_mskf.o module_cu_tiedtke.o module_cu_ntiedtke.o module_cu_gd.o module_cu_gf_wrfdrv.o module_cu_gf_deep.o module_cu_gf_sh.o module_cu_ksas.o module_cu_nsas.o module_cu_sas.o module_cu_scalesas.o module_cu_osas.o module_cu_kfcup.o module_mp_radar.o module_mp_kessler.o module_mp_lin.o module_mp_sbu_ylin.o module_mp_wsm3.o module_mp_wsm5.o module_mp_wsm6.o module_mp_etanew.o module_mp_fer_hires.o module_mp_HWRF.o module_mp_thompson.o module_mp_full_sbm.o module_mp_fast_sbm.o module_ltng_lpi.o module_mp_gsfcgce.o module_mp_morr_two_moment.o module_mp_p3.o module_mp_morr_two_moment_aero.o module_mp_milbrandt2mom.o module_mp_nssl_2mom.o module_mp_wdm5.o module_mp_wdm6.o module_mp_cammgmp_driver.o module_ra_sw.o module_ra_clWRF_support.o module_ra_gsfcsw.o module_ra_goddard.o module_ra_effective_radius.o module_ra_rrtm.o module_ra_rrtmg_lw.o module_ra_rrtmg_sw.o module_ra_rrtmg_lwf.o module_ra_rrtmg_swf.o module_ra_rrtmg_lwk.o module_ra_rrtmg_swk.o module_ra_cam_support.o module_ra_cam.o module_ra_gfdleta.o module_ra_flg.o module_ra_HWRF.o module_ra_hs.o module_ra_aerosol.o module_sf_sfclay.o module_sf_sfclayrev.o module_sf_gfs.o module_sf_exchcoef.o module_sf_gfdl.o module_sf_slab.o module_sf_noahdrv.o module_sf_noahlsm.o module_sf_clm.o module_sf_ssib.o module_sf_noah_seaice.o module_sf_noah_seaice_drv.o module_sf_noahlsm_glacial_only.o module_sf_noahmp_groundwater.o module_sf_gecros.o module_sf_noahmpdrv.o module_sf_noahmplsm.o module_sf_noahmp_glacier.o module_sf_urban.o module_sf_bep.o module_sf_bep_bem.o module_sf_bem.o module_sf_pxlsm.o module_sf_pxlsm_data.o module_sf_ruclsm.o module_sf_sfcdiags.o module_sf_sfcdiags_ruclsm.o module_sf_sstskin.o module_sf_tmnupdate.o module_sf_ocean_driver.o module_sf_oml.o module_sf_3dpwp.o module_sf_myjsfc.o module_sf_qnsesfc.o module_sf_mynn.o module_sf_fogdes.o module_sf_pxsfclay.o module_sf_temfsfclay.o module_sf_idealscmsfclay.o module_sf_scmflux.o module_sf_scmskintemp.o module_physics_addtendc.o module_physics_init.o module_gfs_machine.o module_gfs_funcphys.o module_gfs_physcons.o module_progtm.o module_pbl_driver.o module_data_gocart_dust.o module_dust_emis.o module_cumulus_driver.o module_shallowcu_driver.o module_microphysics_driver.o module_microphysics_zero_out.o module_mixactivate.o module_radiation_driver.o module_surface_driver.o module_lightning_driver.o module_ltng_cpmpr92z.o module_ltng_crmpr92.o module_ltng_iccg.o module_fdda_psufddagd.o module_fdda_spnudging.o module_fddagd_driver.o module_fddaobs_rtfdda.o module_fddaobs_driver.o module_wind_fitch.o module_sf_lake.o module_diagnostics_driver.o  \
                                     \
                                   module_diag_refl.o ; \
                else                                                         \
                  make -i -r -j 6 non_nmm      ; \
                  ar ru ../main/libwrflib.a module_cam_shr_kind_mod.o module_cam_support.o module_cam_shr_const_mod.o module_cam_physconst.o module_cam_cldwat.o module_cam_wv_saturation.o module_cam_esinti.o module_cam_gffgch.o module_cam_error_function.o module_cam_constituents.o module_cam_trb_mtn_stress.o module_cam_molec_diff.o module_cam_upper_bc.o module_cam_bl_diffusion_solver.o module_cam_bl_eddy_diff.o module_cam_mp_microp_aero.o module_cam_mp_cldwat2m_micro.o module_cam_mp_ndrop.o module_cam_mp_modal_aero_initialize_data_phys.o module_cam_mp_radconstants.o module_cam_mp_conv_water.o module_cam_mp_qneg3.o module_data_cam_mam_aero.o module_data_cam_mam_asect.o module_cam_infnan.o  module_bl_ysu.o module_bl_shinhong.o module_bl_mrf.o module_bl_gfs.o module_bl_gfsedmf.o module_bl_myjpbl.o module_bl_qnsepbl.o module_bl_acm.o module_bl_mynn.o module_bl_fogdes.o module_bl_gwdo.o module_bl_myjurb.o module_bl_boulac.o module_bl_camuwpbl_driver.o module_bl_mfshconvpbl.o module_shcu_camuwshcu_driver.o module_shcu_camuwshcu.o module_shcu_grims.o module_shcu_nscv.o module_cu_camzm_driver.o module_cu_camzm.o module_bl_temf.o module_bl_gbmpbl.o module_cu_g3.o module_cu_kf.o module_cu_bmj.o module_cu_kfeta.o module_cu_mskf.o module_cu_tiedtke.o module_cu_ntiedtke.o module_cu_gd.o module_cu_gf_wrfdrv.o module_cu_gf_deep.o module_cu_gf_sh.o module_cu_ksas.o module_cu_nsas.o module_cu_sas.o module_cu_scalesas.o module_cu_osas.o module_cu_kfcup.o module_mp_radar.o module_mp_kessler.o module_mp_lin.o module_mp_sbu_ylin.o module_mp_wsm3.o module_mp_wsm5.o module_mp_wsm6.o module_mp_etanew.o module_mp_fer_hires.o module_mp_HWRF.o module_mp_thompson.o module_mp_full_sbm.o module_mp_fast_sbm.o module_ltng_lpi.o module_mp_gsfcgce.o module_mp_morr_two_moment.o module_mp_p3.o module_mp_morr_two_moment_aero.o module_mp_milbrandt2mom.o module_mp_nssl_2mom.o module_mp_wdm5.o module_mp_wdm6.o module_mp_cammgmp_driver.o module_ra_sw.o module_ra_clWRF_support.o module_ra_gsfcsw.o module_ra_goddard.o module_ra_effective_radius.o module_ra_rrtm.o module_ra_rrtmg_lw.o module_ra_rrtmg_sw.o module_ra_rrtmg_lwf.o module_ra_rrtmg_swf.o module_ra_rrtmg_lwk.o module_ra_rrtmg_swk.o module_ra_cam_support.o module_ra_cam.o module_ra_gfdleta.o module_ra_flg.o module_ra_HWRF.o module_ra_hs.o module_ra_aerosol.o module_sf_sfclay.o module_sf_sfclayrev.o module_sf_gfs.o module_sf_exchcoef.o module_sf_gfdl.o module_sf_slab.o module_sf_noahdrv.o module_sf_noahlsm.o module_sf_clm.o module_sf_ssib.o module_sf_noah_seaice.o module_sf_noah_seaice_drv.o module_sf_noahlsm_glacial_only.o module_sf_noahmp_groundwater.o module_sf_gecros.o module_sf_noahmpdrv.o module_sf_noahmplsm.o module_sf_noahmp_glacier.o module_sf_urban.o module_sf_bep.o module_sf_bep_bem.o module_sf_bem.o module_sf_pxlsm.o module_sf_pxlsm_data.o module_sf_ruclsm.o module_sf_sfcdiags.o module_sf_sfcdiags_ruclsm.o module_sf_sstskin.o module_sf_tmnupdate.o module_sf_ocean_driver.o module_sf_oml.o module_sf_3dpwp.o module_sf_myjsfc.o module_sf_qnsesfc.o module_sf_mynn.o module_sf_fogdes.o module_sf_pxsfclay.o module_sf_temfsfclay.o module_sf_idealscmsfclay.o module_sf_scmflux.o module_sf_scmskintemp.o module_physics_addtendc.o module_physics_init.o module_gfs_machine.o module_gfs_funcphys.o module_gfs_physcons.o module_progtm.o module_pbl_driver.o module_data_gocart_dust.o module_dust_emis.o module_cumulus_driver.o module_shallowcu_driver.o module_microphysics_driver.o module_microphysics_zero_out.o module_mixactivate.o module_radiation_driver.o module_surface_driver.o module_lightning_driver.o module_ltng_cpmpr92z.o module_ltng_crmpr92.o module_ltng_iccg.o module_fdda_psufddagd.o module_fdda_spnudging.o module_fddagd_driver.o module_fddaobs_rtfdda.o module_fddaobs_driver.o module_wind_fitch.o module_sf_lake.o module_diagnostics_driver.o  \
                                   module_fr_fire_driver.o module_fr_fire_driver_wrf.o module_fr_fire_atm.o module_fr_fire_model.o module_fr_fire_core.o module_fr_fire_phys.o module_fr_fire_util.o \
                                   module_diag_afwa.o module_diag_cl.o module_diag_functions.o module_diag_hailcast.o module_diag_misc.o module_diag_rasm.o module_diag_pld.o module_diag_zld.o module_diag_trad_fields.o  ; \
                fi
make[3]: Entering directory '/home/pigeon/Testsite/WRF/phys'
make[3]: Nothing to be done for 'non_nmm'.
make[3]: Leaving directory '/home/pigeon/Testsite/WRF/phys'
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/phys'
make[1]: Leaving directory '/home/pigeon/Testsite/WRF'
if [ 0  -eq 1 ]    ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " chemics ; fi
if [ 1 -eq 1 ]    ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " em_core ; fi
make[1]: Entering directory '/home/pigeon/Testsite/WRF'
--------------------------------------
if [ 0  -eq 0 ] ; then \
	CF= ; \
else \
	CF="../chem/module_aerosols_sorgam.o ../chem/module_gocart_aerosols.o ../chem/module_mosaic_driver.o ../chem/module_input_tracer.o ../chem/module_aerosols_soa_vbs.o" ; \
fi
( cd dyn_em ; make -i -r -j 6 CF="" )
make[2]: Entering directory '/home/pigeon/Testsite/WRF/dyn_em'
ar ru ../main/libwrflib.a module_advect_em.o module_diffusion_em.o module_small_step_em.o module_big_step_utilities_em.o module_em.o module_solvedebug_em.o module_bc_em.o module_init_utilities.o module_wps_io_arw.o module_damping_em.o module_polarfft.o module_force_scm.o module_first_rk_step_part1.o module_first_rk_step_part2.o module_avgflx_em.o module_sfs_nba.o module_convtrans_prep.o module_sfs_driver.o module_stoch.o module_after_all_rk_steps.o  init_modules_em.o solve_em.o start_em.o shift_domain_em.o couple_or_uncouple_em.o nest_init_utils.o adapt_timestep_em.o interp_domain_em.o
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: Leaving directory '/home/pigeon/Testsite/WRF/dyn_em'
make[1]: Leaving directory '/home/pigeon/Testsite/WRF'
if [ 0 -eq 1 ]   ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " nmm_core ; fi
if [ 0 -eq 1 ]   ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " wrf_hydro ; fi
( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " SOLVER=em em_wrf )
make[1]: Entering directory '/home/pigeon/Testsite/WRF/main'
ranlib  libwrflib.a
mpif90  -o wrf.exe -fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    wrf.o ../main/module_wrf_top.o libwrflib.a /home/pigeon/Testsite/WRF/external/fftpack/fftpack5/libfftpack.a /home/pigeon/Testsite/WRF/external/io_grib1/libio_grib1.a /home/pigeon/Testsite/WRF/external/io_grib_share/libio_grib_share.a /home/pigeon/Testsite/WRF/external/io_int/libwrfio_int.a -L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time /home/pigeon/Testsite/WRF/external/RSL_LITE/librsl_lite.a /home/pigeon/Testsite/WRF/frame/module_internal_header_util.o /home/pigeon/Testsite/WRF/frame/pack_utils.o  -L/home/pigeon/Testsite/WRF/external/io_netcdf -lwrfio_nf -L/usr/lib -lnetcdff -lnetcdf             
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: [Makefile:17: em_wrf] Error 1 (ignored)
make[1]: Leaving directory '/home/pigeon/Testsite/WRF/main'
( cd run ; /bin/rm -f wrf.exe ; ln -s ../main/wrf.exe . )
if [ 0 -eq 1 ] ; then \
  ( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " SOLVER=em em_wrf_SST_ESMF ) ; \
fi
build started:   Tue Oct 30 02:34:09 UTC 2018
build completed: Tue Oct 30 02:34:11 UTC 2018
--------------------------------------
( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " SOLVER=em IDEAL_CASE=real em_real )
make[1]: Entering directory '/home/pigeon/Testsite/WRF/main'
ranlib  libwrflib.a
mpif90  -o ndown.exe -fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    ndown_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/pigeon/Testsite/WRF/external/fftpack/fftpack5/libfftpack.a /home/pigeon/Testsite/WRF/external/io_grib1/libio_grib1.a /home/pigeon/Testsite/WRF/external/io_grib_share/libio_grib_share.a /home/pigeon/Testsite/WRF/external/io_int/libwrfio_int.a -L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time /home/pigeon/Testsite/WRF/external/RSL_LITE/librsl_lite.a /home/pigeon/Testsite/WRF/frame/module_internal_header_util.o /home/pigeon/Testsite/WRF/frame/pack_utils.o  -L/home/pigeon/Testsite/WRF/external/io_netcdf -lwrfio_nf -L/usr/lib -lnetcdff -lnetcdf            
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: [Makefile:33: em_real] Error 1 (ignored)
mpif90  -o tc.exe -fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    tc_em.o  ../dyn_em/module_initialize_real.o libwrflib.a /home/pigeon/Testsite/WRF/external/fftpack/fftpack5/libfftpack.a /home/pigeon/Testsite/WRF/external/io_grib1/libio_grib1.a /home/pigeon/Testsite/WRF/external/io_grib_share/libio_grib_share.a /home/pigeon/Testsite/WRF/external/io_int/libwrfio_int.a -L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time /home/pigeon/Testsite/WRF/external/RSL_LITE/librsl_lite.a /home/pigeon/Testsite/WRF/frame/module_internal_header_util.o /home/pigeon/Testsite/WRF/frame/pack_utils.o  -L/home/pigeon/Testsite/WRF/external/io_netcdf -lwrfio_nf -L/usr/lib -lnetcdff -lnetcdf            
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: [Makefile:34: em_real] Error 1 (ignored)
mpif90  -o real.exe -fopenmp -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    real_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/pigeon/Testsite/WRF/external/fftpack/fftpack5/libfftpack.a /home/pigeon/Testsite/WRF/external/io_grib1/libio_grib1.a /home/pigeon/Testsite/WRF/external/io_grib_share/libio_grib_share.a /home/pigeon/Testsite/WRF/external/io_int/libwrfio_int.a -L/home/pigeon/Testsite/WRF/external/esmf_time_f90 -lesmf_time /home/pigeon/Testsite/WRF/external/RSL_LITE/librsl_lite.a /home/pigeon/Testsite/WRF/frame/module_internal_header_util.o /home/pigeon/Testsite/WRF/frame/pack_utils.o  -L/home/pigeon/Testsite/WRF/external/io_netcdf -lwrfio_nf -L/usr/lib -lnetcdff -lnetcdf            
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/../../../../lib/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[1]: [Makefile:35: em_real] Error 1 (ignored)
make[1]: Leaving directory '/home/pigeon/Testsite/WRF/main'
( cd test/em_real ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
if [ 0 -eq 1 ] ; then \
  ( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/home/pigeon/Testsite/WRF/external/esmf_time_f90  -I/home/pigeon/Testsite/WRF/main -I/home/pigeon/Testsite/WRF/external/io_netcdf -I/home/pigeon/Testsite/WRF/external/io_int -I/home/pigeon/Testsite/WRF/frame -I/home/pigeon/Testsite/WRF/share -I/home/pigeon/Testsite/WRF/phys -I/home/pigeon/Testsite/WRF/wrftladj -I/home/pigeon/Testsite/WRF/chem -I/home/pigeon/Testsite/WRF/inc -I/usr/include " SOLVER=em IDEAL_CASE=real em_wrf_SST_ESMF ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f wrf_SST_ESMF.exe ; ln -s ../../main/wrf_SST_ESMF.exe . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ; \
               ln -sf ../../run/ETAMPNEW_DATA . ;                      \
               ln -sf ../../run/ETAMPNEW_DATA.expanded_rain . ;        \
               ln -sf ../../run/RRTM_DATA . ;                          \
               ln -sf ../../run/RRTMG_LW_DATA . ;                      \
               ln -sf ../../run/RRTMG_SW_DATA . ;                      \
               ln -sf ../../run/CAM_ABS_DATA . ;                       \
               ln -sf ../../run/CAM_AEROPT_DATA . ;                    \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP4.5 . ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP6   . ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP8.5 CAMtr_volume_mixing_ratio ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.A1B    . ;   \
               ln -sf ../../run/CAMtr_volume_mixing_ratio.A2     . ;   \
               ln -sf ../../run/CLM_ALB_ICE_DFS_DATA . ;               \
               ln -sf ../../run/CLM_ALB_ICE_DRC_DATA . ;               \
               ln -sf ../../run/CLM_ASM_ICE_DFS_DATA . ;               \
               ln -sf ../../run/CLM_ASM_ICE_DRC_DATA . ;               \
               ln -sf ../../run/CLM_DRDSDT0_DATA . ;                   \
               ln -sf ../../run/CLM_EXT_ICE_DFS_DATA . ;               \
               ln -sf ../../run/CLM_EXT_ICE_DRC_DATA . ;               \
               ln -sf ../../run/CLM_KAPPA_DATA . ;                     \
               ln -sf ../../run/CLM_TAU_DATA . ;                       \
               ln -sf ../../run/ozone.formatted . ;                    \
               ln -sf ../../run/ozone_lat.formatted . ;                \
               ln -sf ../../run/ozone_plev.formatted . ;               \
               ln -sf ../../run/aerosol.formatted . ;                  \
               ln -sf ../../run/aerosol_lat.formatted . ;              \
               ln -sf ../../run/aerosol_lon.formatted . ;              \
               ln -sf ../../run/aerosol_plev.formatted . ;             \
               ln -sf ../../run/CCN_ACTIVATE.BIN . ;                   \
               ln -sf ../../run/p3_lookup_table_1.dat-v2.8.2 . ;              \
               ln -sf ../../run/p3_lookup_table_2.dat-v2.8.2 . ;              \
               if [ 4 -eq 8 ] ; then                        \
                  ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ;   \
                  ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ;   \
                  ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA         ;   \
                  ln -sf ../../run/RRTMG_LW_DATA_DBL RRTMG_LW_DATA ;   \
                  ln -sf ../../run/RRTMG_SW_DATA_DBL RRTMG_SW_DATA ;   \
               fi ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . ) ; \
  ( cd test/em_esmf_exp ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . ) ; \
fi
( cd test/em_real ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . )
( cd test/em_real ; /bin/rm -f tc.exe ; ln -s ../../main/tc.exe . )
( cd test/em_real ; /bin/rm -f ndown.exe ; ln -s ../../main/ndown.exe . )
( cd test/em_real ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd test/em_real ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ;    \
             ln -sf ../../run/ETAMPNEW_DATA . ;                     \
             ln -sf ../../run/ETAMPNEW_DATA.expanded_rain . ;       \
             ln -sf ../../run/RRTM_DATA . ;                         \
             ln -sf ../../run/RRTMG_LW_DATA . ;                     \
             ln -sf ../../run/RRTMG_SW_DATA . ;                     \
             ln -sf ../../run/CAM_ABS_DATA . ;                      \
             ln -sf ../../run/CAM_AEROPT_DATA . ;                   \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP4.5 . ;  \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP6   . ;  \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP8.5 CAMtr_volume_mixing_ratio ;   \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.A1B    . ;  \
             ln -sf ../../run/CAMtr_volume_mixing_ratio.A2     . ;  \
             ln -sf ../../run/CLM_ALB_ICE_DFS_DATA . ;              \
             ln -sf ../../run/CLM_ALB_ICE_DRC_DATA . ;              \
             ln -sf ../../run/CLM_ASM_ICE_DFS_DATA . ;              \
             ln -sf ../../run/CLM_ASM_ICE_DRC_DATA . ;              \
             ln -sf ../../run/CLM_DRDSDT0_DATA . ;                  \
             ln -sf ../../run/CLM_EXT_ICE_DFS_DATA . ;              \
             ln -sf ../../run/CLM_EXT_ICE_DRC_DATA . ;              \
             ln -sf ../../run/CLM_KAPPA_DATA . ;                    \
             ln -sf ../../run/CLM_TAU_DATA . ;                      \
             ln -sf ../../run/ozone.formatted . ;                   \
             ln -sf ../../run/ozone_lat.formatted . ;               \
             ln -sf ../../run/ozone_plev.formatted . ;              \
             ln -sf ../../run/aerosol.formatted . ;                 \
             ln -sf ../../run/aerosol_lat.formatted . ;             \
             ln -sf ../../run/aerosol_lon.formatted . ;             \
             ln -sf ../../run/aerosol_plev.formatted . ;            \
             ln -sf ../../run/capacity.asc . ;            \
             ln -sf ../../run/coeff_p.asc . ;            \
             ln -sf ../../run/coeff_q.asc . ;            \
             ln -sf ../../run/constants.asc . ;            \
             ln -sf ../../run/masses.asc . ;            \
             ln -sf ../../run/termvels.asc . ;            \
             ln -sf ../../run/kernels.asc_s_0_03_0_9 . ;            \
             ln -sf ../../run/kernels_z.asc . ;            \
             ln -sf ../../run/bulkdens.asc_s_0_03_0_9 . ;            \
             ln -sf ../../run/bulkradii.asc_s_0_03_0_9 . ;            \
             ln -sf ../../run/CCN_ACTIVATE.BIN . ;                   \
             ln -sf ../../run/p3_lookup_table_1.dat-v2.8.2 . ;                   \
             ln -sf ../../run/p3_lookup_table_2.dat-v2.8.2 . ;                   \
             if [ 4 -eq 8 ] ; then                       \
                ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ;  \
                ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ;   \
                ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA ;          \
                ln -sf ../../run/RRTMG_LW_DATA_DBL RRTMG_LW_DATA ;  \
                ln -sf ../../run/RRTMG_SW_DATA_DBL RRTMG_SW_DATA ;  \
             fi )
( cd test/em_real ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . )
( cd test/em_real ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . )
( cd test/em_real ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . )
( cd test/em_real ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . )
( cd test/em_real ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . )
( cd test/em_real ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . )
( cd test/em_real ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . )
( cd test/em_real ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . )
( cd test/em_real ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . )
( cd test/em_real ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . )
( cd test/em_real ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . )
( cd run ; /bin/rm -f real.exe ; ln -s ../main/real.exe . )
( cd run ; /bin/rm -f tc.exe ; ln -s ../main/tc.exe . )
( cd run ; /bin/rm -f ndown.exe ; ln -s ../main/ndown.exe . )
( cd run ; if test -f namelist.input ; then \
	/bin/cp -f namelist.input namelist.input.backup.`date +%Y-%m-%d_%H_%M_%S` ; fi ; \
	/bin/rm -f namelist.input ; cp ../test/em_real/namelist.input . )
 
==========================================================================
build started:   Tue Oct 30 02:34:09 UTC 2018
build completed: Tue Oct 30 02:34:12 UTC 2018
 
---> Problems building executables, look for errors in the build log  <---
 
==========================================================================
 
For the individual troubles that you are having, make a small test case for yourself.

For example, here is something to test out the "ar" command, where we have a main program which will use a static library consisting of three small files. We build this library with the object files and the "ar" command. If the problem you have is a BSD vs SysV unix situation, maybe the options "ru" are incorrect for the "ar" command. Perhaps "r" is the only required option.

>cat joe_main.f90
PROGRAM joe_main

USE moda
USE modb
USE modc

IMPLICIT NONE

REAL :: x = 5.

CALL a(x)
CALL b(x)
CALL c(x)

END PROGRAM joe_main

>cat a.f90
MODULE moda
CONTAINS
SUBROUTINE a ( val )
IMPLICIT NONE
REAL :: val
print *,'In SUBR A: val = ',val
END SUBROUTINE a
END MODULE moda

>cat b.f90
MODULE modb
CONTAINS
SUBROUTINE b ( val )
IMPLICIT NONE
REAL :: val
print *,'In SUBR B: val*val = ',val*val
END SUBROUTINE b
END MODULE modb

>cat c.f90
MODULE modc
CONTAINS
SUBROUTINE c ( val )
IMPLICIT NONE
REAL :: val
print *,'In SUBR C: SQRT(val) = ',SQRT(val)
END SUBROUTINE c
END MODULE modc

>gfortran -c a.f90 b.f90 c.f90
>gfortran -c joe_main.f90
>ar ru libmy_test.a a.o b.o c.o
OR
>ar r libmy_test.a a.o b.o c.o
>gfortran -o joe_main joe_main.o -L. -lmy_test
>./joe_main
In SUBR A: val = 5.00000000
In SUBR B: val*val = 25.0000000
In SUBR C: SQRT(val) = 2.23606801
 
Thank you for the input. The `ar` works (I get the identical ouput as what you have posted).

I think in my case, the problem lies in linking the header files in order to generate `landread.o` file from the following command.

Code:
mpicc  -DFSEEKO64_OK  -o landread.o -c -w -O3 -c -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0 landread.c
and I am getting the following error messages.

Code:
landread.c:68:10: fatal error: rpc/types.h: No such file or directory
   #include <rpc/types.h>

I did try to tweak gcc library paths, and explicitly linking the header file location using -L flags... but it didn't work for some reason (generates the same error message as above).
 
Hi,
Take a look at this post regarding 'landread' errors and let us know if the proposed work-around is able to get you past your problem. Thanks!
http://forum.mmm.ucar.edu/phpBB3/viewtopic.php?f=37&t=61&p=220&hilit=landread.c#p220
 
Top