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

build error: make: *** No rule to make target `$casename/bld/lib/libatm.a'

lisa17

New Member
hi,
I tried to build cesm2.1.3, terminal displays the folllowing error message:
ERROR: BUILD FAIL: buildexe failed, cat $casename/bld/cesm.bldlog.201026-17364
then I check the cesm.bldlog, part of content is as follows:

Building a single executable version of target coupled model
ERROR: Command make exec_se -j 8 EXEC_SE=$casename/bld/cesm.exe MODEL=driver LIBROOT=$casename/bld/lib -f $caseroot/Tools/Makefile failed rc=2
*****
make: *** No rule to make target `$casename/bld/lib/libatm.a', needed by `$casename/bld/cesm.exe'. Stop.
make: *** Waiting for unfinished jobs....

Here $casename and $caseroot are just being used instead of the absolute path.

the case compset is G: 2000_DATM%NYF_SLND_CICE_POP2_DROF%NYF_SGLC_WW3
the compiler I used is intel2016 version.
Would you please give me some hints? Any suggestions or help are highly appreciated. Thank you so much!
 

jedwards

CSEG and Liaisons
Staff member
The error message here is misleading, your atm component didn't build - please check the log atm.bldlog.201026-17364
 

lisa17

New Member
Thanks very much,jedwards,
I've checked , but there is no atm.bldlog.201026-17364 in $casename/bld/ ,the only folder associated with atm is $casename/bld/atm/obj and it's empty .
I wonder if the compiler version is too old. Do you have any other suggestions?
 

jedwards

CSEG and Liaisons
Staff member
Make sure that your source code tree is complete: ./manage_externals/checkout_externals -S
Try a clean build, is the problem repeatable?
 

lisa17

New Member
Hi, Jedwards,

(1) I've run ./manage_externals/checkout_externals -S
the only error is SVN, maybe because the hpc I'm using can not connect to the network. Some messages are as follows:

Checking status of externals: clm, fates, ptclm, mosart, ww3, cime, cice, pop, cvmix, marbl, cism, source_cism, rtm, cam, clubb, carma, ERROR:root:SVN returned invalid XML message
ERROR: SVN returned invalid XML message

(2) I created a same case (G component), build failed again. The error messages are same as before, the ww\cice\pop can be built successfully. I don't understand why libatm.a is needed, the state of atm component is datm actually.

ww built in 160.631427 seconds
Component ice build complete with 1 warnings
cice built in 217.520865 seconds
Component ocn build complete with 13 warnings
pop built in 293.473061 seconds
Building cesm with output to $casename/bld/cesm.bldlog.201027-222510
ERROR: BUILD FAIL: buildexe failed, cat $casename/bld/cesm.bldlog.201027-222510

Could you please give me some advices about what I should do next ?
 

lisa17

New Member
Hi jedwards,
I've compiled G case successfully with CESM2.1.1 version.
The source code for version 2.1.3 may have been downloaded by mistake.
Anyway, I've decided to use cesm2.1.1
Thanks for all your assistance!

Best regards,
 

jedwards

CSEG and Liaisons
Staff member
You are strongly encouraged to use the latest version - in this case 2.1.3, there is no difference that I am aware of
between 2.1.1 and 2.1.3 that would cause this error. I suspect you have an incomplete source code download.
 

lisa17

New Member
Hi jedwards,
Sorry for replying so late. I've just finished the test of cesm2.1.3 , built and submitted a job successfully.
The previous errors was truly because there was an incomplete source code download of cesm2.1.3.
Thank you very much for all your help!
 
Top