Hi all,
When I tried to compile BCON, I found an error I have never met before and did not find it in the forum.
Makefile generated
mpif90 -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/modules -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/include_files BC_PARMS.F
mpif90 -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/modules -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/include_files UTILIO_DEFN.F
mpif90 -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/modules -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/include_files HGRD_DEFN.F
mpif90 -c -ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32 -O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/modules -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/include_files CGRID_SPCS.F
f951: Fatal Error: Reading module ‘utilio_defn’ at line 983 column 14: Unexpected EOF
compilation terminated.
make: *** [Makefile:97: CGRID_SPCS.o] Error 1
ERROR while running make command
Can anybody help me? Thank you in advance!
You need to have compiled
CCTM/src/util/util/UTILIO_DEFN.F
and have put the resulting object and module files where make can find them.
@xiaofen I had a similar issue while compiling the WRF model for the Raspberry Pi (ARM processor) and the issue was related to the SWAP size, the process was killed due to insufficient memory and the file was not fully written. You can check if it’s a memory related issue by running dmesg
and checking the output, if you see something like Out of memory: Kill process
it means there isn’t enough memory.
Also make sure you have lifted limits on your system by running unlimit
(in csh).
@cjcoats Thanks! I used the utilio_defn.o I compiled successfully before and the same error was still there. Do you have other opinion?
@ever.barreto I ran dmesg | grep memory and output was
[ 0.014069] check: Scanning 1 areas for low memory corruption
[ 0.014892] ACPI: Reserving FACP table memory at [mem 0x8f506000-0x8f506113]
[ 0.014894] ACPI: Reserving DSDT table memory at [mem 0x8f4d0000-0x8f505a7a]
[ 0.014895] ACPI: Reserving FACS table memory at [mem 0x8f726000-0x8f72603f]
[ 0.014896] ACPI: Reserving MCFG table memory at [mem 0x8f50b000-0x8f50b03b]
[ 0.014897] ACPI: Reserving SSDT table memory at [mem 0x8f508000-0x8f50a0ac]
[ 0.014899] ACPI: Reserving SSDT table memory at [mem 0x8f507000-0x8f507a51]
[ 0.014900] ACPI: Reserving FIDT table memory at [mem 0x8f4cf000-0x8f4cf09b]
[ 0.014901] ACPI: Reserving MSDM table memory at [mem 0x8f4ce000-0x8f4ce054]
[ 0.014902] ACPI: Reserving SSDT table memory at [mem 0x8f4ca000-0x8f4cd1d9]
[ 0.014903] ACPI: Reserving SSDT table memory at [mem 0x8f4c7000-0x8f4c976d]
[ 0.014904] ACPI: Reserving HPET table memory at [mem 0x8f4c6000-0x8f4c6037]
[ 0.014905] ACPI: Reserving SSDT table memory at [mem 0x8f4c4000-0x8f4c547a]
[ 0.014906] ACPI: Reserving SSDT table memory at [mem 0x8f4c0000-0x8f4c32f9]
[ 0.014907] ACPI: Reserving NHLT table memory at [mem 0x8f4bf000-0x8f4bf02c]
[ 0.014908] ACPI: Reserving LPIT table memory at [mem 0x8f4be000-0x8f4be093]
[ 0.014909] ACPI: Reserving SSDT table memory at [mem 0x8f4ba000-0x8f4bc71f]
[ 0.014911] ACPI: Reserving SSDT table memory at [mem 0x8f4b7000-0x8f4b95b1]
[ 0.014912] ACPI: Reserving DBGP table memory at [mem 0x8f4b6000-0x8f4b6033]
[ 0.014913] ACPI: Reserving DBG2 table memory at [mem 0x8f4b5000-0x8f4b5053]
[ 0.014914] ACPI: Reserving SSDT table memory at [mem 0x8f4b3000-0x8f4b4b66]
[ 0.014915] ACPI: Reserving DMAR table memory at [mem 0x8f4b2000-0x8f4b206f]
[ 0.014916] ACPI: Reserving BGRT table memory at [mem 0x8f4b1000-0x8f4b1037]
[ 0.014917] ACPI: Reserving TPM2 table memory at [mem 0x8f4b0000-0x8f4b004b]
[ 0.014918] ACPI: Reserving WSMT table memory at [mem 0x8f4bd000-0x8f4bd027]
[ 0.014920] ACPI: Reserving APIC table memory at [mem 0x8f4af000-0x8f4af12b]
[ 0.014921] ACPI: Reserving FPDT table memory at [mem 0x8f4ae000-0x8f4ae043]
[ 0.015548] Early memory node ranges
[ 0.056118] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.056121] PM: hibernation: Registered nosave memory: [mem 0x0009e000-0x0009efff]
[ 0.056123] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]
[ 0.056125] PM: hibernation: Registered nosave memory: [mem 0x40000000-0x403fffff]
[ 0.056127] PM: hibernation: Registered nosave memory: [mem 0x88581000-0x887c1fff]
[ 0.056129] PM: hibernation: Registered nosave memory: [mem 0x8a088000-0x8a088fff]
[ 0.056131] PM: hibernation: Registered nosave memory: [mem 0x8a099000-0x8a099fff]
[ 0.056132] PM: hibernation: Registered nosave memory: [mem 0x8a09a000-0x8a09afff]
[ 0.056134] PM: hibernation: Registered nosave memory: [mem 0x8a0c0000-0x8a0c0fff]
[ 0.056136] PM: hibernation: Registered nosave memory: [mem 0x8a895000-0x8a895fff]
[ 0.056138] PM: hibernation: Registered nosave memory: [mem 0x8a8bd000-0x8a8bdfff]
[ 0.056140] PM: hibernation: Registered nosave memory: [mem 0x8ae0a000-0x8ae0afff]
[ 0.056142] PM: hibernation: Registered nosave memory: [mem 0x8e08b000-0x8f3ddfff]
[ 0.056143] PM: hibernation: Registered nosave memory: [mem 0x8f3de000-0x8f50dfff]
[ 0.056144] PM: hibernation: Registered nosave memory: [mem 0x8f50e000-0x8f726fff]
[ 0.056145] PM: hibernation: Registered nosave memory: [mem 0x8f727000-0x8fffdfff]
[ 0.056147] PM: hibernation: Registered nosave memory: [mem 0x8ffff000-0x98ffffff]
[ 0.056148] PM: hibernation: Registered nosave memory: [mem 0x99000000-0xdfffffff]
[ 0.056149] PM: hibernation: Registered nosave memory: [mem 0xe0000000-0xefffffff]
[ 0.056150] PM: hibernation: Registered nosave memory: [mem 0xf0000000-0xfdffffff]
[ 0.056151] PM: hibernation: Registered nosave memory: [mem 0xfe000000-0xfe010fff]
[ 0.056152] PM: hibernation: Registered nosave memory: [mem 0xfe011000-0xfebfffff]
[ 0.056152] PM: hibernation: Registered nosave memory: [mem 0xfec00000-0xfec00fff]
[ 0.056153] PM: hibernation: Registered nosave memory: [mem 0xfec01000-0xfedfffff]
[ 0.056154] PM: hibernation: Registered nosave memory: [mem 0xfee00000-0xfee00fff]
[ 0.056155] PM: hibernation: Registered nosave memory: [mem 0xfee01000-0xfeffffff]
[ 0.056156] PM: hibernation: Registered nosave memory: [mem 0xff000000-0xffffffff]
[ 0.166684] Freeing SMP alternatives memory: 40K
[ 0.481624] Freeing initrd memory: 51788K
[ 0.482312] check: Scanning for low memory corruption every 60 seconds
[ 0.824199] Freeing unused decrypted memory: 2036K
[ 0.824932] Freeing unused kernel image (initmem) memory: 2684K
[ 0.848216] Freeing unused kernel image (text/rodata gap) memory: 2036K
[ 0.848579] Freeing unused kernel image (rodata/data gap) memory: 688K
[ 0.907394] i2c i2c-0: 2/2 memory slots populated (from DMI)
[ 2.840141] [TTM] Zone kernel: Available graphics memory: 16341352 KiB
[ 2.840142] [TTM] Zone dma32: Available graphics memory: 2097152 KiB
I think I don’t have any memory issue, right? Thank you!
Where is the utilio_defn.mod and do you have an include-directive (-I <something>
) for that directory?
@cjcoats I have utilio_defn.mod in ‘/home/xiao/CMAS/CMAQ/PREP/bcon/scripts/BLD_BCON_v52_m3conc_gcc’. But the size of the file is only 8.2 kB and the successful one I compiled before was 21.8 kB.
the include-directive is ‘-I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/modules -I /home/xiao/CMAS/CMAQ/lib/x86_64/gcc/ioapi/include_files’. Thank you again!
I solved the problem temporarily by copying the previous successful **.mod into the BLD fold and run make.