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

WRF-4.3 Compiling Error: collect2: error: ld returned 1 exit status

hhhyd

New member
I am using the Ubuntu system to compile the WRF 4.3, however, I don't know why it shows me the error in the compile.log:
/usr/bin/ld: cannot find ndown_em.o: No such file or directory
/usr/bin/ld: cannot find ../dyn_em/module_initialize_real.o: No such file or directory
/usr/bin/ld: cannot find libwrflib.a: No such file or directory
/usr/bin/ld: cannot find /home/houyidi/WRF_4/Build_WRF/WRF-4.3/external/io_int/libwrfio_int.a: No such file or directory
collect2: error: ld returned 1 exit status

/WRF_4/Build_WRF/LIBRARIES/grib2/lib -lhdf5_hl -lhdf5 -lz
/usr/bin/ld: cannot find tc_em.o: No such file or directory
/usr/bin/ld: cannot find ../dyn_em/module_initialize_real.o: No such file or directory
/usr/bin/ld: cannot find libwrflib.a: No such file or directory
/usr/bin/ld: cannot find /home/houyidi/WRF_4/Build_WRF/WRF-4.3/external/io_int/libwrfio_int.a: No such file or directory
collect2: error: ld returned 1 exit status

May I have any suggestions? I also attached the configure file and compile file below.
 

Attachments

  • compile.txt
    1.5 MB · Views: 2
  • configure.txt
    20.7 KB · Views: 2
Hi,
This is the first error found in the compile log:

Code:
mpicc -cc=gcc -DFSEEKO64_OK  -o io_int_idx.o -c -w -O3 -c   io_int_idx.c
module_internal_header_util.f: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)).

First, did you make any modifications to the WRF code, or are you compiling pristine (out-of-the-box) code?

I believe there have been some issues with older versions of GNU (you're using V8.5.0). Since GNU is a free compiler, can you try to upgrade it to a more recent version? For reference, we currently use V13.2.0 here at NCAR. After you update the compiler, make sure to install the libraries with that new compiler, and set your paths accordingly. Then clean the WRF code (./clean -a), reconfigure, and recompile.

If that doesn't work, can you try to build the latest version of WRF to see if that makes any difference?
 
Top