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

Failed to build on cygwin

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.

GarryLai

New member
Describe the bug
Failed to build WRF on cygwin but it doesn't display any error.
It just come out with "Command exited with non-zero status 1" but no describe.

To Reproduce
Do the step on doc/README.cygwin.md
Any package, Cygwin, WRF(using em_real) is using the latest version, OS is Windows 7

Expected behavior
Code:
make[1]: Entering directory '/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 2 CF="" )
make[2]: Entering directory '/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 modul
e_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
make[2]: Leaving directory '/WRF/dyn_em'
make[1]: Leaving directory '/WRF'
if [ 0 -eq 1 ]   ; then make -i -r MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/WRF/external/esmf_time_
f90  -I/WRF/main -I/WRF/external/io_netcdf -I/WRF/external/io_int -I/WRF/frame -I/WRF/share -I/WRF/p
hys -I/WRF/wrftladj -I/WRF/chem -I/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/WRF/external/esmf_time_
f90  -I/WRF/main -I/WRF/external/io_netcdf -I/WRF/external/io_int -I/WRF/frame -I/WRF/share -I/WRF/p
hys -I/WRF/wrftladj -I/WRF/chem -I/WRF/inc -I/usr/include " wrf_hydro ; fi
( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/WRF/external/esmf_time_f
90  -I/WRF/main -I/WRF/external/io_netcdf -I/WRF/external/io_int -I/WRF/frame -I/WRF/share -I/WRF/ph
ys -I/WRF/wrftladj -I/WRF/chem -I/WRF/inc -I/usr/include " SOLVER=em em_wrf )
make[1]: Entering directory '/WRF/main'
ranlib  libwrflib.a
time mpif90 -o wrf.exe  -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      /WRF/extern
al/fftpack/fftpack5/libfftpack.a /WRF/external/io_grib1/libio_grib1.a /WRF/external/io_grib_share/li
bio_grib_share.a /WRF/external/io_int/libwrfio_int.a /WRF/external/esmf_time_f90/libesmf_time.a ../e
xternal/RSL_LITE/librsl_lite.a /WRF/frame/module_internal_header_util.o /WRF/frame/pack_utils.o
 /WRF/external/io_netcdf/libwrfio_nf.a /usr/lib/libnetcdf.dll.a -L /usr -lnetcdff -lnetcdf -lnetcdf
-ltirpc -lhdf5_hl -lhdf5 -lm -lz
Command exited with non-zero status 1
0.38user 0.66system 0:01.22elapsed 86%CPU (0avgtext+0avgdata 83308maxresident)k
0inputs+0outputs (24308major+0minor)pagefaults 0swaps
make[1]: [Makefile:17: em_wrf] Error 1 (已忽略)
make[1]: Leaving directory '/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/WRF/external/esmf_time
_f90  -I/WRF/main -I/WRF/external/io_netcdf -I/WRF/external/io_int -I/WRF/frame -I/WRF/share -I/WRF/
phys -I/WRF/wrftladj -I/WRF/chem -I/WRF/inc -I/usr/include " SOLVER=em em_wrf_SST_ESMF ) ; \
fi
build started:   2020年08月15日 19:07:48
build completed: 2020年08月15日 19:07:57
--------------------------------------
( cd main ; make -i -r RLFLAGS="" MODULE_DIRS="-I../dyn_em -I../dyn_nmm  -I/WRF/external/esmf_time_f
90  -I/WRF/main -I/WRF/external/io_netcdf -I/WRF/external/io_int -I/WRF/frame -I/WRF/share -I/WRF/ph
ys -I/WRF/wrftladj -I/WRF/chem -I/WRF/inc -I/usr/include " SOLVER=em IDEAL_CASE=real em_real )
make[1]: Entering directory '/WRF/main'
ranlib  libwrflib.a
time mpif90 -o ndown.exe  -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      /WRF/external/fftpack/fftpack5/libfftpack.a /WRF/external/io_grib1/libio_grib1.a /WRF/externa
l/io_grib_share/libio_grib_share.a /WRF/external/io_int/libwrfio_int.a /WRF/external/esmf_time_f90/l
ibesmf_time.a ../external/RSL_LITE/librsl_lite.a /WRF/frame/module_internal_header_util.o /WRF/frame
/pack_utils.o      /WRF/external/io_netcdf/libwrfio_nf.a /usr/lib/libnetcdf.dll.a -L /usr -lnetcdff
-lnetcdf -lnetcdf -ltirpc -lhdf5_hl -lhdf5 -lm -lz
Command exited with non-zero status 1
0.31user 0.70system 0:01.24elapsed 81%CPU (0avgtext+0avgdata 80820maxresident)k
0inputs+0outputs (23871major+0minor)pagefaults 0swaps
make[1]: [Makefile:33: em_real] Error 1 (已忽略)
time mpif90 -o tc.exe  -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -f
convert=big-endian -frecord-marker=4    tc_em.o  ../dyn_em/module_initialize_real.o libwrflib.a
 /WRF/external/fftpack/fftpack5/libfftpack.a /WRF/external/io_grib1/libio_grib1.a /WRF/external/io_g
rib_share/libio_grib_share.a /WRF/external/io_int/libwrfio_int.a /WRF/external/esmf_time_f90/libesmf
_time.a ../external/RSL_LITE/librsl_lite.a /WRF/frame/module_internal_header_util.o /WRF/frame/pack_
utils.o      /WRF/external/io_netcdf/libwrfio_nf.a /usr/lib/libnetcdf.dll.a -L /usr -lnetcdff -lnetc
df -lnetcdf -ltirpc -lhdf5_hl -lhdf5 -lm -lz
Command exited with non-zero status 1
0.38user 0.70system 0:01.19elapsed 91%CPU (0avgtext+0avgdata 80580maxresident)k
0inputs+0outputs (23811major+0minor)pagefaults 0swaps
make[1]: [Makefile:34: em_real] Error 1 (已忽略)
time mpif90 -o real.exe  -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
    /WRF/external/fftpack/fftpack5/libfftpack.a /WRF/external/io_grib1/libio_grib1.a /WRF/external/i
o_grib_share/libio_grib_share.a /WRF/external/io_int/libwrfio_int.a /WRF/external/esmf_time_f90/libe
smf_time.a ../external/RSL_LITE/librsl_lite.a /WRF/frame/module_internal_header_util.o /WRF/frame/pa
ck_utils.o      /WRF/external/io_netcdf/libwrfio_nf.a /usr/lib/libnetcdf.dll.a -L /usr -lnetcdff -ln
etcdf -lnetcdf -ltirpc -lhdf5_hl -lhdf5 -lm -lz
Command exited with non-zero status 1
0.38user 0.67system 0:01.30elapsed 81%CPU (0avgtext+0avgdata 80740maxresident)k
0inputs+0outputs (23851major+0minor)pagefaults 0swaps
make[1]: [Makefile:35: em_real] Error 1 (已忽略)
make[1]: Leaving directory '/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/WRF/external/esmf_time
_f90  -I/WRF/main -I/WRF/external/io_netcdf -I/WRF/external/io_int -I/WRF/frame -I/WRF/share -I/WRF/
phys -I/WRF/wrftladj -I/WRF/chem -I/WRF/inc -I/usr/include " SOLVER=em IDEAL_CASE=real em_wrf_SST_ES
MF ) ; \
  ( 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_DA
TA 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-v4.1 . ;         \
               ln -sf ../../run/p3_lookup_table_2.dat-v4.1 . ;         \
               ln -sf ../../run/HLC.TBL . ;                            \
               ln -sf ../../run/wind-turbine-1.tbl . ;                 \
               ln -sf ../../run/ishmael-gamma-tab.bin . ;              \
               ln -sf ../../run/ishmael-qi-qc.bin . ;                  \
               ln -sf ../../run/ishmael-qi-qr.bin . ;                  \
               ln -sf ../../run/BROADBAND_CLOUD_GODDARD.bin . ;        \
               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 RRT
MG_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-v4.1 . ;        \
             ln -sf ../../run/p3_lookup_table_2.dat-v4.1 . ;        \
             ln -sf ../../run/HLC.TBL . ;                           \
             ln -sf ../../run/wind-turbine-1.tbl . ;                \
             ln -sf ../../run/ishmael-gamma-tab.bin . ;             \
             ln -sf ../../run/ishmael-qi-qc.bin . ;                 \
             ln -sf ../../run/ishmael-qi-qr.bin . ;                 \
             ln -sf ../../run/BROADBAND_CLOUD_GODDARD.bin . ;       \
             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 ; if test -d ../../run/SBM_input_33 ; then                            \
             ln -sf ../../run/SBM_input_33 . ;                                          \
             ln -sf ../../run/scattering_tables_2layer_high_quad_1dT_1%fw_110 . ;       \
             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:   2020年08月15日 19:07:48
build completed: 2020年08月15日 19:08:03

---> Problems building executables, look for errors in the build log  <---

==========================================================================
 
Hi,
Are you building WRF on a Linux dual/split configuration on your system? WRF is not supported on a Windows environment. If you are, indeed, building on a linux-type environment, please follow these steps:
1) ./clean -a
2) reconfigure
3) recompile with this command:
./compile em_real >& compile.txt

and then attach that compile.txt and configure.wrf files so that I can take a look? For information on attaching files, see the home page of this forum. Thanks!
 
Top