Hi all,
I am trying to compile WRF and during that process, there is some question (./compile em_real) . First one is there are many mismatch errors, but I am not sure why. Then it also mentioned a fatal error that is mod and the scripts can not find it. the basic information for my cmpile is (I use gnu compiler and in configure section, I chosse 34 and 1 for nesting setting). If possible, please help me if you are familiar with this area, thanks a lot!
Question 1:
/lib/cpp -P -nostdinc -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 -DDM_PARALLEL -DNETCDF -DGRIB2 -DHDF5 -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 -I../inc module_internal_header_util.F > module_internal_header_util.f90
gfortran -c -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 module_internal_header_util.f90
module_internal_header_util.f90:1717:39:
1717 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1592:39:
1592 | DataHandle, Data, Count, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1503:39:
1503 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(*)/REAL(4)).
module_internal_header_util.f90:1440:39:
1440 | DataHandle, DummyData, DummyCount, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1348:39:
1348 | DataHandle, dummyData, DummyCount, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(132)/REAL(4)).
module_internal_header_util.f90:1285:41:
1285 | DataHandle, DummyData, DummyCount, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1132:39:
1132 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1068:39:
1068 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:943:41:
943 | DataHandle, Data, Count, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:853:41:
853 | DataHandle, Data, Count, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
make[2]: [Makefile:177: module_internal_header_util.o] Error 1 (ignored)
mpicc -cc=gcc -DFSEEKO64_OK -c -w -O3 -c -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0 wrf_num_bytes_between.c
rm -f libmassv.o
Question 2:
time mpif90 -f90=gfortran -o module_sf_clm.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -I../dyn_em -I../dyn_nmm -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/external/esmf_time_f90 -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/main -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/external/io_netcdf -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/external/io_int -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/frame -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/share -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/phys -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/wrftladj -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/chem -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/inc -I/home/envryuzj/netcdf/include module_sf_clm.f90
module_sf_clm.f90:192:33:
192 | integer, parameter :: bigint = O'17777777777'
| 1
Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see ‘-fno-allow-invalid-boz’]
module_sf_clm.f90:5651:7:
5651 | use nanMod , only : nan, bigint
| 1
Fatal Error: Cannot open module file ‘nanmod.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.29user 0.05system 0:00.33elapsed 104%CPU (0avgtext+0avgdata 39440maxresident)k
0inputs+152outputs (0major+11229minor)pagefaults 0swaps
make[3]: [../configure.wrf:348: module_sf_clm.o] Error 1 (ignored)
I am trying to compile WRF and during that process, there is some question (./compile em_real) . First one is there are many mismatch errors, but I am not sure why. Then it also mentioned a fatal error that is mod and the scripts can not find it. the basic information for my cmpile is (I use gnu compiler and in configure section, I chosse 34 and 1 for nesting setting). If possible, please help me if you are familiar with this area, thanks a lot!
Question 1:
/lib/cpp -P -nostdinc -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 -DDM_PARALLEL -DNETCDF -DGRIB2 -DHDF5 -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 -I../inc module_internal_header_util.F > module_internal_header_util.f90
gfortran -c -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 module_internal_header_util.f90
module_internal_header_util.f90:1717:39:
1717 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1592:39:
1592 | DataHandle, Data, Count, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1503:39:
1503 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(*)/REAL(4)).
module_internal_header_util.f90:1440:39:
1440 | DataHandle, DummyData, DummyCount, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1348:39:
1348 | DataHandle, dummyData, DummyCount, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(132)/REAL(4)).
module_internal_header_util.f90:1285:41:
1285 | DataHandle, DummyData, DummyCount, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1132:39:
1132 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:1068:39:
1068 | DataHandle, Data, Count, code )
| 1
......
1779 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:943:41:
943 | DataHandle, Data, Count, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
module_internal_header_util.f90:853:41:
853 | DataHandle, Data, Count, code )
| 1
......
1654 | DataHandle, Data, Count, code )
| 2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/REAL(4)).
make[2]: [Makefile:177: module_internal_header_util.o] Error 1 (ignored)
mpicc -cc=gcc -DFSEEKO64_OK -c -w -O3 -c -DDM_PARALLEL -DMAX_HISTORY=25 -DNMM_CORE=0 wrf_num_bytes_between.c
rm -f libmassv.o
Question 2:
time mpif90 -f90=gfortran -o module_sf_clm.o -c -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -I../dyn_em -I../dyn_nmm -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/external/esmf_time_f90 -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/main -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/external/io_netcdf -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/external/io_int -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/frame -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/share -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/phys -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/wrftladj -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/chem -I/localdisk/r091/export/envryuzj/WRF_test/WRF4.0/inc -I/home/envryuzj/netcdf/include module_sf_clm.f90
module_sf_clm.f90:192:33:
192 | integer, parameter :: bigint = O'17777777777'
| 1
Error: BOZ literal constant at (1) is neither a data-stmt-constant nor an actual argument to INT, REAL, DBLE, or CMPLX intrinsic function [see ‘-fno-allow-invalid-boz’]
module_sf_clm.f90:5651:7:
5651 | use nanMod , only : nan, bigint
| 1
Fatal Error: Cannot open module file ‘nanmod.mod’ for reading at (1): No such file or directory
compilation terminated.
Command exited with non-zero status 1
0.29user 0.05system 0:00.33elapsed 104%CPU (0avgtext+0avgdata 39440maxresident)k
0inputs+152outputs (0major+11229minor)pagefaults 0swaps
make[3]: [../configure.wrf:348: module_sf_clm.o] Error 1 (ignored)