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

Status
Not open for further replies.

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
Staff 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.
 

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.
 
Status
Not open for further replies.
Back
Top