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

ERROR: BUILD FAIL: clm.buildlib failed,(clm5.0 porting )

fanlei21

fan
New Member
Dear all,
Recently, when I was porting cesm2.0.0 to centos6, I use the command as follows:
(1) ./create_newcase --case fancase11 --res f19_g17 --compset I1850Clm50BgcCrop--mach fancentos7
(2) ./case.setup
(3)./case.build
error occurs in the step "./case.build", it shows:
ERROR: BUILD FAIL: clm.buildlib failed, cat /root/clm5dir/output/fancase11/bld/lnd.bldlog.200819-174221

Then I cat /root/clm5dir/output/fancase11/bld/lnd.bldlog.200819-174221, it shows:

err:

/root/clm5.0/src/fates/parteh/PRTAllometricCarbonMod.F90:230.5:

prt_global => prt_global_ac
1
Error: (1) different type of pointer assignment; trying to assign CLASS (prt_global_type) to TYPE (prt_global_type)
make: *** [PRTAllometricCarbonMod.o] Error 1

ERROR: Command make complib -j 1 MODEL=clm COMPLIB=/root/clm5dir/output/fancase11/bld/gnu/mpich/nodebug/nothreads/mct/noesmf/lib/libclm.a -f /root/clm5.0/cime/scripts/fancase11/Tools/Makefile MACFILE=/root/clm5.0/cime/scripts/fancase11/Macros.fancentos7 failed with rc=2

Anybody can help me?
 

Attachments

  • lnd.bldlog.200819-174221.txt
    2.1 KB · Views: 6

erik

Erik Kluzek
CSEG and Liaisons
Staff member
OK, so the problem is in compiling the module PRTAllometricCarbonMod.F90 in FATES. And it gives the line number that it has trouble with (line 230). You are using an older CESM version, the first recommendation is to try the same thing with a newer version. I'd suggest the CESM2.1 series with the latest one of CESM2.1.3. There are few answer differences between it and the older version, but it's also more likely to work. If for some reason you really need the older version, looking at the same file in the newer version might help you to find the problem.
 

fanlei21

fan
New Member
OK, so the problem is in compiling the module PRTAllometricCarbonMod.F90 in FATES. And it gives the line number that it has trouble with (line 230). You are using an older CESM version, the first recommendation is to try the same thing with a newer version. I'd suggest the CESM2.1 series with the latest one of CESM2.1.3. There are few answer differences between it and the older version, but it's also more likely to work. If for some reason you really need the older version, looking at the same file in the newer version might help you to find the problem.
Thank you very much for your help. This problem should be caused by my version of the gfortran compiler. There will be no problem after I upgrade the version.
 

fanlei21

fan
New Member
Please be sure to keep posts in English as we don't have anyone to translate for us.
I typed in English. I don't know what caused the display language to be Chinese. But thank you very much for answering my question.
 

Jasper

New Member
Thank you very much for your help. This problem should be caused by my version of the gfortran compiler. There will be no problem after I upgrade the version.
I meet the same problem with gfortran4.8.5 and CESM2.1.3. I think both of them are suitable version. Do you mean you solve the problem by updating your gnu to version 4.9?
 

erik

Erik Kluzek
CSEG and Liaisons
Staff member
gfortran4.8.5 is pretty old at this point. We are using gfortran4.9.2 to gfortran9.3.0 in development versions of CESM at this point. And pretty close to that in CESM2.1 series as well. I suspect that there is a newer feature in FORTRAN that's being used in the above module that the older version of GNU is having trouble with. So if you can update to a newer GNU version that would be my first recommendation.
 
Top