ERROR: BUILD FAIL: xatm.buildlib failed(cesm2.0.0 porting )

majun

Member
Dear all,
Recently, when I was porting cesm2.0.0 to centos6, I use the command as follows:
(1) ./create_newcase --case test_case --res f19_g16 --compset X --mach majun
(2) ./case.setup
(3)./case.build
error occurs in the step "./case.build", it shows:
ERROR: BUILD FAIL: xatm.buildlib failed, cat /home/shenhf/majun/1/cesm/output/test_case/bld/atm.bldlog.191222-113513
BUILD FAIL: xlnd.buildlib failed, cat /home/shenhf/majun/1/cesm/output/test_case/bld/lnd.bldlog.191222-113513
BUILD FAIL: xice.buildlib failed, cat /home/shenhf/majun/1/cesm/output/test_case/bld/ice.bldlog.191222-113513

Then I cat /home/shenhf/majun/1/cesm/output/test_case/bld/atm.bldlog.191222-113513, it shows:
/home/shenhf/majun/1/cesm/cime/src/components/xcpl_comps/xatm/cime_config/buildlib: line 1: XSym: command not found
/home/shenhf/majun/1/cesm/cime/src/components/xcpl_comps/xatm/cime_config/buildlib: line 2: 0054: command not found
/home/shenhf/majun/1/cesm/cime/src/components/xcpl_comps/xatm/cime_config/buildlib: line 3: 60a2eadb1b3f1eb002f929808da8ff81: command not found
/home/shenhf/majun/1/cesm/cime/src/components/xcpl_comps/xatm/cime_config/buildlib: line 4: ../../../../build_scripts/buildlib.internal_components: There is no file or directory

Then I vi /home/shenhf/majun/1/cesm/cime/src/components/xcpl_comps/xatm/cime_config/buildlib, it shows:
1 XSym
2 0054
3 60a2eadb1b3f1eb002f929808da8ff81
4 ../../../../build_scripts/buildlib.internal_components
I don't know what's wrong with it , this problem has bothered me for one week, the brief configurations are:
gcc -8.3.0 / netcdf-4.7.3 / hdf5-1.8.20 / mpich-3.3.1 /python-2.7.17 /pnetcdf-1.12.0 /esmf_8.0.0 / curl-7.20.0 /bison-3.0.5 /lapack-3.4.2

Any suggestions or help are highly appreciated. The config_machines.xml and config_compilers.xml are attached below. (I didn't use moudles and batch system)
 

Attachments

  • config_machines.xml.png
    config_machines.xml.png
    72.1 KB · Views: 15
  • config_compilers.xml.png
    config_compilers.xml.png
    27.9 KB · Views: 16

jedwards

CSEG and Liaisons
Staff member
It seems that your system did not correctly handle symbolic links. The xatm/cime_config/buildlib is just a symbolic link to
build_scripts/buildlib.internal_components
 

majun

Member
It seems that your system did not correctly handle symbolic links. The xatm/cime_config/buildlib is just a symbolic link to
build_scripts/buildlib.internal_components
sorry, I don't understand what does "did not correctly handle symbolic links" mean, so what should I do to exclude this error. thanks a lot
 

jedwards

CSEG and Liaisons
Staff member
Symbolic links are just files that point to other files on the system. This file points to cime/src/build_scripts/buildlib.internal_components
if your system does not support symbolic links you will need to copy the buildlib.internal_components file to each of the internal component buildlib files.
 

majun

Member
Symbolic links are just files that point to other files on the system. This file points to cime/src/build_scripts/buildlib.internal_components
if your system does not support symbolic links you will need to copy the buildlib.internal_components file to each of the internal component buildlib files.
Dear jedwards,
My system seems to support symbolic links. After dealing with <SLIBS> in the config_compilers.xml (adding -llapack and -lblas) ,this problem has been solved, thanks a lot for your kind help. A new case was created: ./create_newcase --case test_case --res f19_g17 --compset B1850 --mach majun
However, new problem occured during case build
ERROR: BUILD FAIL: pop.buildlib failed, cat /home/shenhf/majun/mycesm/output/case1/bld/ocn.bldlog.200103-090406
the bldlog file shows :
ERROR: Command make complib -j 1 MODEL=pop COMPLIB=/home/shenhf/majun/mycesm/output/case1/ bld/lib/libocn.a -f /home/shenhf/majun/mycesm/cime/scripts/case1/Tools/Makefile USER_CPPDEFS="-DCCSMCOUPLED -DMARBL_TIMING_OPT=CIME -DBLCKX=80 -DBLCKY=96 -DMXBLCKS=1 - DNT=37 -DMARBL_NT=32 -DIRF_NT=0 " failed rc=2
Do you know what's the problem ? (still the problem of symbolic links?) In fact, I just want to use clm5.0 component in cesm2.0 and don't care about other components, like pop ,cam .etc. The log file and config_compilers.xml and config_machines.xml are attached below, thank you very much !!!
 

Attachments

Back
Top