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

Please help!! Unable to compile em_real

zhw

New member
Dear Members,

I hope everyone is doing well. I have encountered problems in compiling the em_real. I am using WRF v4.3, and I could not figure out what the error is. I have attached the log-compile below.

Error message:
Code:
/usr/bin/ld: f_xpose.f:(.text+0x40e8): undefined reference to `mpi_abort_'
/usr/bin/ld: f_xpose.f:(.text+0x4143): undefined reference to `mpi_alltoallv_'
/usr/bin/ld: f_xpose.f:(.text+0x4431): undefined reference to `mpi_abort_'
/usr/bin/ld: f_xpose.f:(.text+0x4cc0): undefined reference to `mpi_alltoallv_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.22user 0.09system 0:00.32elapsed 99%CPU (0avgtext+0avgdata 108024maxresident)k
0inputs+103360outputs (0major+35024minor)pagefaults 0swaps
make[1]: [Makefile:17: em_wrf] Error 1 (ignored)

Any help is greatly appreciated!

Best regards,
zhw
 

Attachments

  • log.compile.txt
    769.8 KB · Views: 4
Last edited by a moderator:
It looks like you've selected a DM (MPI) options without having MPI installed. You will need MPI in your path to use this configuration option.
 
  • Like
Reactions: zhw
Interesting...
From your compile log, I also noticed that the compiler selection is :
Code:
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/gfortran
Will use 'time' to report timing information
 
C compiler for the model source code:
which CC
/usr/bin/gcc

Meaning you probably didn't do anything wrong with the installation of the MPICH library, but something in the stanza selection is causing dm option to be selected but the compilers provided via the stanza do not include an MPI wrapper. Could you upload your configure.wrf and the stdout output from configuring?
 
Interesting...
From your compile log, I also noticed that the compiler selection is :
Code:
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/gfortran
Will use 'time' to report timing information
 
C compiler for the model source code:
which CC
/usr/bin/gcc

Meaning you probably didn't do anything wrong with the installation of the MPICH library, but something in the stanza selection is causing dm option to be selected but the compilers provided via the stanza do not include an MPI wrapper. Could you upload your configure.wrf and the stdout output from configuring?
Thank you for your reply, here is the configure.wrf. May I know what are stdout output? It seems that I dont have this item.
 

Attachments

  • configure.wrf.txt
    20.6 KB · Views: 1
The stdout output is the output you see in the terminal. I don't see compilation for RSL_LITE in your original compile log file. Can you re-upload after having done a clean build? This would be with ./clean -a and then the configure + compile commands.
 
The stdout output is the output you see in the terminal. I don't see compilation for RSL_LITE in your original compile log file. Can you re-upload after having done a clean build? This would be with ./clean -a and then the configure + compile commands.
Thank you for your reply! I tried your ./clean -a command now it compiled successfully for some mysterious reasons... Previously I was just doing ./clean...Thank you very much!
 
Thank you for your reply! I tried your ./clean -a command now it compiled successfully for some mysterious reasons... Previously I was just doing ./clean...Thank you very much!
clean -a does a hard clean of the compilers and the installation files, so if there was something wrong with those it usually works itself out
 
Top