Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Question about building the executable with 'mpi-serial'?

mengqi

mj
Member
Hi,

I am working on the CLM5. However, I noticed that it did not work when I built the executable with qcmd (qcmd -- ./case.build). By the way, I keep MPILIB=mpi-serial. I am sure that it did still work before and I did not change anything. Could you please give me some ideas about this? Thank you!

Please see the error below:

ERROR: /glade/u/home/mengqij/my_ctsm_sandbox/cime/CIME/build_scripts/buildlib.mpi-serial FAILED, cat /glade/scratch/mengqij/I2000_CTSM_singlept_av_test_Vb_spinup/bld/mpi-serial.bldlog.230704-080843

When I read the '/glade/scratch/mengqij/I2000_CTSM_singlept_av_test_Vb_spinup/bld/mpi-serial.bldlog.230704-080843', it states:

/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'mpi.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'collective.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'comm.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'recv.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'send.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'error.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'req.o' failed
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/Makefile:70: recipe for target 'handles.o' failed

gmake: Leaving directory '/glade/scratch/mengqij/I2000_CTSM_singlept_av_test_Vb_spinup/bld/intel/mpi-serial/nodebug/nothreads/nuopc/mct/mpi-serial'
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/recv.c(2):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/collective.c(2):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpi.c(3):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/comm.c(2):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/send.c(2):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
#include <config.h>
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/collective.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/recv.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/comm.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpi.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/send.c (code 4)
gmake: *** [mpi.o] Error 4
gmake: *** Waiting for unfinished jobs....
gmake: *** [collective.o] Error 4
gmake: *** [comm.o] Error 4
gmake: *** [recv.o] Error 4
gmake: *** [send.o] Error 4
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/error.c(2):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/error.c (code 4)
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/req.c(1):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/req.c (code 4)
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/handles.c(8):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
gmake: *** [error.o] Error 4
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/handles.c (code 4)
gmake: *** [req.o] Error 4
gmake: *** [handles.o] Error 4
ERROR: icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
icc: remark #10397: optimization reports are generated in *.optrpt files in the output location
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/recv.c(2):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/collective.c(2):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpi.c(3):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/comm.c(2):
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/send.c(2):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/collective.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/recv.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/comm.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpi.c (code 4)
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/send.c (code 4)
gmake: *** [mpi.o] Error 4
gmake: *** Waiting for unfinished jobs....
gmake: *** [collective.o] Error 4
gmake: *** [comm.o] Error 4
gmake: *** [recv.o] Error 4
gmake: *** [send.o] Error 4
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/error.c(2):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/error.c (code 4)
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/req.c(1):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/req.c (code 4)
In file included from /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/handles.c(8):
/glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/mpiP.h(30): catastrophic error: cannot open source file "config.h"
gmake: *** [error.o] Error 4
compilation aborted for /glade/u/home/mengqij/my_ctsm_sandbox/libraries/mct/mpi-serial/handles.c (code 4)
gmake: *** [req.o] Error 4
 

slevis

Moderator
If it worked before, then I have a couple of suggestions to try:
1) Run /manage_externals/checkout_externals and then try again.
2) If that doesn't help, start over creating a new case.
3) If that doesn't work, maybe start over checking out the code again.
 

mengqi

mj
Member
If it worked before, then I have a couple of suggestions to try:
1) Run /manage_externals/checkout_externals and then try again.
2) If that doesn't help, start over creating a new case.
3) If that doesn't work, maybe start over checking out the code again.
Thank you! Will try it.
 
Top