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

Help: ERROR: buildlib.mct failed.

Hello everyone.I'm trying to port CESM 1.2.2 to a SGI cluster with 16 nodes (12 processors each) and Intel compiler. The problem is when I try to build a test and the following error appears: CESM BUILDEXE SCRIPT STARTING COMPILER is intel- Build Libraries: mct gptl pio csm_shareTer Jan 27 14:06:37 BRT 2015 /clima/juarez/cesm1_2_2/scripts/test1/run/mct/mct.bldlog.150127-140635ERROR: buildlib.mct failed, see /clima/juarez/cesm1_2_2/scripts/test1/run/mct/mct.bldlog.150127-140635ERROR: cat /clima/juarez/cesm1_2_2/scripts/test1/run/mct/mct.bldlog.150127-140635 The file mct.bldlog.150127-140635 is attachedI tried a few thing that I found online, but without any success and I'm out of ideas.Can someone help me solve this?Thanks in advance.
 

jedwards

CSEG and Liaisons
Staff member
It's complaning that it can't find the mct source in  /clima/juarez/cesm1_2_2/models/utils/mct/mct/ is it there and can it be seen from the node you are compiling on?
 

jedwards

CSEG and Liaisons
Staff member
It sounds like your source tree is corrupt - try removing the source and downloading it again.
 
Sorry for the delay.In fact, the MCT download via svn was always failing. I've download it via the website, but now I'm facing a new problem, i think it is regarding my compiler:gfortran: source: No such file or directorygfortran: big_endian: No such file or directorygfortran: byterecl: No such file or directorygfortran: realloc_lhs: No such file or directorygfortran: unrecognized option '-convert'gfortran: unrecognized option '-traceback'cc1: error: unrecognized command line option "-fp-model"cc1: error: unrecognized command line option "-ftz"cc1: error: unrecognized command line option "-free"gmake[1]: *** [m_mpif.o] Error 1gmake[1]: Leaving directory `/clima/juarez/CCSM/CESM/scripts/test2/run/intel/openmpi/nodebug/nothreads/mct/mpeu'gmake: *** [subdirs] Error 2exit 1
 

santos

Member
Your "mpif90" command is using gfortran instead of ifort. To build with the Intel compiler, you will need to make sure that there is an MPI built with the Intel compiler on your system, and that the MPI compiler commands are in your PATH.Depending on how your cluster is configured, that may be as simple as adding an appropriate "module load" command to env_mach_specific.
 

lvxin

lvxin
New Member
look for clues in the config.log in the same directory the mct log file is in
I meet the same problem, following is the error message:
rm: No match.
COMPILER is intel
- Build Libraries: mct gptl pio csm_share
Sat Jul 25 09:25:10 CST 2020 /nuist/p/work/zhubin/lvxin/cesm1_2_2/secondcase/exe/intel/mvapich2/nodebug/nothreads/mct.bldlog.20072 5-092509
ERROR: buildlib.mct failed, see /nuist/p/work/zhubin/lvxin/cesm1_2_2/secondcase/exe/intel/mvapich2/nodebug/nothreads/mct.bldlog.20 0725-092509
ERROR: cat /nuist/p/work/zhubin/lvxin/cesm1_2_2/secondcase/exe/intel/mvapich2/nodebug/nothreads/mct.bldlog.200725-092509

Following is config.log file
## Core tests. ##
## ----------- ##

configure:2358: checking for C compiler version
configure:2367: icc --version >&5
/nuist/p/work/zhubin/lvxin/cesm1_2_2/models/utils/mct/configure: line 2369: icc: command not found
configure:2378: $? = 127
configure:2367: icc -v >&5
/nuist/p/work/zhubin/lvxin/cesm1_2_2/models/utils/mct/configure: line 2369: icc: command not found
configure:2378: $? = 127
configure:2367: icc -V >&5
/nuist/p/work/zhubin/lvxin/cesm1_2_2/models/utils/mct/configure: line 2369: icc: command not found
configure:2378: $? = 127
configure:2367: icc -qversion >&5
/nuist/p/work/zhubin/lvxin/cesm1_2_2/models/utils/mct/configure: line 2369: icc: command not found
configure:2378: $? = 127
configure:2398: checking whether the C compiler works
configure:2420: icc -O2 -fp-model precise -DLINUX -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -I.. -I. -I/nuist/p/work/zhubin/lvxin/cesm1_2_2/test/exe/intel/mvapich2/nodebug/nothreads/include -I/nuist/p/work/zhubin/lvxin/cesm1_2_2/test/exe/intel/mvapich2/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -I/nuist/p/public/app/netcdf/4.3.0/intel/18.0.0/include -I/nuist/p/public/app/mvapich2/2.3/intel/18.0.0/include -I/nuist/p/public/app/pnetcdf-1.11.2/include -I/nuist/p/work/zhubin/lvxin/cesm1_2_2/test/exe/intel/mvapich2/nodebug/nothreads/include -I/nuist/p/work/zhubin/lvxin/cesm1_2_2/models/csm_share/shr -fPIC conftest.c -L/nuist/p/public/app/netcdf/4.3.0/intel/18.0.0/lib -lnetcdf -lnetcdff >&5
/nuist/p/work/zhubin/lvxin/cesm1_2_2/models/utils/mct/configure: line 2422: icc: command not found
configure:2424: $? = 127
configure:2462: result: no
configure: failed program was:

| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.8"
| #define PACKAGE_STRING "MCT 2.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2467: error: in `/nuist/p/work/zhubin/lvxin/cesm1_2_2/test/exe/intel/mvapich2/nodebug/nothreads/mct':
configure:2469: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##

look for clues in the config.log in the same directory the mct log file is in
 
Hi all,

I am trying to install cesm1_2_2. I am having trouble with the ERROR: buildlib.mct failed error. The following are the error messages I received after running./CAM.build. How can this be resolved?

./CAM.build
-------------------------------------------------------------------------
CESM BUILDNML SCRIPT STARTING
- To prestage restarts, untar a restart.tar file into /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/run
infile is /home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM/Buildconf/cplconf/cesm_namelist
CAM writing dry deposition namelist to drv_flds_in
Writing ocean component namelist to ./docn_in
CAM writing namelist to atm_in
CLM configure done.
CLM adding use_case 2000_control defaults for var sim_year with val 2000
CLM adding use_case 2000_control defaults for var sim_year_range with val constant
CLM adding use_case 2000_control defaults for var use_case_desc with val Conditions to simulate 2000 land-use
CICE configure done.
CESM BUILDNML SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM PRESTAGE SCRIPT STARTING
- Case input data directory, DIN_LOC_ROOT, is /net/fs01/data/cesm2/inputdata
- Checking the existence of input datasets in DIN_LOC_ROOT
CESM PRESTAGE SCRIPT HAS FINISHED SUCCESSFULLY
-------------------------------------------------------------------------
-------------------------------------------------------------------------
CESM BUILDEXE SCRIPT STARTING
rm: No match.
COMPILER is intel
- Build Libraries: mct gptl pio csm_share
Mon May 15 16:52:36 EDT 2023 /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct.bldlog.230515-165230
ERROR: buildlib.mct failed, see /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct.bldlog.230515-165230
ERROR: cat /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct.bldlog.230515-165230
 

slevis

Moderator
Staff member
Dear @popatsalunke9@gmail_com,

This may not help in the end, but I wanted to ask as a first step:
Did you follow the guidance in the error message that suggests "see /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct.bldlog.230515-165230"? If so, did you find additional information in this bldlog file?
 
Dear Slevis
Thank you for prompt reply. Yes, I checked the inside of the file mct.bldlog.230515-165230. The error message is seen below.

Mon May 15 16:52:36 EDT 2023 /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct.bldlog.230515-165230
setenv MCT_DIR /net/fs10/d2/psalunke/CESM1.2.2/models/utils/mct
setenv LIBDIR /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads
setenv MCT_LIBDIR /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct
echo MCT_LIBDIR /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct
MCT_LIBDIR /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct
cd /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct
echo Copying source to CCSM EXEROOT...
Copying source to CCSM EXEROOT...
cp /net/fs10/d2/psalunke/CESM1.2.2/models/utils/mct/Makefile .
mkdir mct
mkdir: cannot create directory ‘mct’: File exists
cp /net/fs10/d2/psalunke/CESM1.2.2/models/utils/mct/mct/Makefile mct
mkdir mpeu
mkdir: cannot create directory ‘mpeu’: File exists
cp /net/fs10/d2/psalunke/CESM1.2.2/models/utils/mct/mpeu/Makefile mpeu
mkdir mpi-serial
mkdir: cannot create directory ‘mpi-serial’: File exists
cp /net/fs10/d2/psalunke/CESM1.2.2/models/utils/mct/mpi-serial/Makefile mpi-serial
set runconf = 0
set runclean = 0
echo Running configure...
Running configure...
echo for OS=LINUX MACH=svante
for OS=LINUX MACH=svante
gmake -f /home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM/Tools/Makefile /net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct/Makefile.conf
SHAREDLIBROOT |/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld| SHAREDPATH |/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads|
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether icc accepts -g... yes
checking for icc option to accept ISO C89... none needed
checking how to run the C preprocessor... /home/software/pgi/17.3/linux86-64/17.3/bin/pgcc -E
configure: error: in `/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct':
configure: error: C preprocessor "/home/software/pgi/17.3/linux86-64/17.3/bin/pgcc -E" fails sanity check
See `config.log' for more details
/home/psalunke/fs10/psalunke/CESM1.2.2/cases/CAM/Tools/Makefile:428: recipe for target '/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct/Makefile.conf' failed
gmake: *** [/net/fs10/d2/psalunke/CESM1.2.2/cases/CAM/bld/intel/openmpi/nodebug/nothreads/mct/Makefile.conf] Error 1
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
cp: cannot stat 'Makefile.conf': No such file or directory
gmake
Makefile:4: Makefile.conf: No such file or directory
gmake: *** No rule to make target 'Makefile.conf'. Stop.
exit 1
 
Hi all,
I am trying to download source code again.
by using this link;
svn co https://svn-ccsm-models.cgd.ucar.edu/cesm1/release_tags/cesm1_2_2

However, after multiple downloads, it gives the following error:

cesm1_2_2/scripts/doc/modelnl/nl_dice.html
cesm1_2_2/scripts/doc/modelnl/nldef2html_clm45
cesm1_2_2/scripts/doc
Checked out external at revision 91833.
Checked out revision 91833.
svn: E205011: Failure occurred processing one or more externals definitions


How can this be resolved?

Thank you in advance!
 

usha

Usha K H
New Member
Hi all,
I am also facing the same issue as @popatsalunke9@gmail_com. But when I looked into mct.bldlog.230623-111020, I find the following error,

setenv MCT_DIR /home/proj/23/caskha/cesm/cesm1_2_2/models/utils/mct
setenv LIBDIR /scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads
setenv MCT_LIBDIR /scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct
echo MCT_LIBDIR /scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct
MCT_LIBDIR /scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct
cd /scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct
echo Copying source to CCSM EXEROOT...
Copying source to CCSM EXEROOT...
cp /home/proj/23/caskha/cesm/cesm1_2_2/models/utils/mct/Makefile .
mkdir mct
mkdir: cannot create directory ‘mct’: File exists
cp /home/proj/23/caskha/cesm/cesm1_2_2/models/utils/mct/mct/Makefile mct
mkdir mpeu
mkdir: cannot create directory ‘mpeu’: File exists
cp /home/proj/23/caskha/cesm/cesm1_2_2/models/utils/mct/mpeu/Makefile mpeu
mkdir mpi-serial
mkdir: cannot create directory ‘mpi-serial’: File exists
cp /home/proj/23/caskha/cesm/cesm1_2_2/models/utils/mct/mpi-serial/Makefile mpi-serial
set runconf = 0
set runclean = 0
echo Running configure...
Running configure...
echo for OS=generic_linux_intel MACH=userdefined
for OS=generic_linux_intel MACH=userdefined
gmake -f /scratch/caskha/cases/F1850_test/Tools/Makefile /scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct/Makefile.conf
gmake: `/scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct/Makefile.conf' is up to date.
if ( 0 == 1 ) then
cp -p Makefile.conf Makefile.conf.old
gmake
gmake[1]: Entering directory `/scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct/mpeu'
mpif90 -c -I. -I../ -Dgeneric_linux_intel -DNDEBUG -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -Dgeneric_linux_intel -DCPRINTEL -DSYSLINUX -DCPRINTEL -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -O2 -free -I. -I/scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/include -I/scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/MCT/noesmf/a1l1r1i1o1g1w1/csm_share -IUSERDEFINED_MUST_EDIT_THIS/include -I/scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/include -I/home/proj/23/caskha/cesm/cesm1_2_2/models/csm_share/shr /home/proj/23/caskha/cesm/cesm1_2_2/models/utils/mct/mpeu/m_mpif.F90
gfortran: error: source: No such file or directory
gfortran: error: big_endian: No such file or directory
gfortran: error: byterecl: No such file or directory
gfortran: error: realloc_lhs: No such file or directory
gfortran: error: unrecognized command line option ‘-fp-model’
gfortran: error: unrecognized command line option ‘-convert’
gfortran: error: unrecognized command line option ‘-assume’
gfortran: error: unrecognized command line option ‘-ftz’
gfortran: error: unrecognized command line option ‘-traceback’
gfortran: error: unrecognized command line option ‘-assume’
gmake[1]: *** [m_mpif.o] Error 1
gmake[1]: Leaving directory `/scratch/caskha/output/F1850_test/intel/mpiicc/nodebug/nothreads/mct/mpeu'
gmake: *** [subdirs] Error 2
exit 1

This looks like its taking gfortran, But where do I specify it ?
 
Top