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 during case.build regarding buildlib.pio and identifier "_FillValue" is undefined

xidazhi

FDX
New Member
Dear Supporting Staff,

I just get started with CESM2. I am using 2.2.2. I have successfully finished the case.setup step but ran into error regarding case.build. The error arises from building the buildlib.pio and with detailed investigation, it is related to "_FillValue". Attached please find my case.build.log and pio.bldlog, my machine, compiler configurations, and my Macro.make file. Please help and really appreciate it.

Best,
Dazhi
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
I don't see any attachments here. If you are having trouble porting cesm2.2.2, please provide the information requested here and post in the infrastructure forum:

 
Vote Upvote 0 Downvote

pengzhou

peng zhou
New Member
I don't see any attachments here. If you are having trouble porting cesm2.2.2, please provide the information requested here and post in the infrastructure forum:

I'm guessing that he may have encountered the following error, as I have as well. May I ask how to solve it?

gmake[2]: Leaving directory '/XYFS01/sysu_atmos_choujm_1/zhoup/CTSMoutput/I2000Li8/bld/intel/mpich/nodebug/nothreads/mct/pio/pio2'
gmake[1]: Leaving directory '/XYFS01/sysu_atmos_choujm_1/zhoup/CTSMoutput/I2000Li8/bld/intel/mpich/nodebug/nothreads/mct/pio/pio2'
/XYFS01/sysu_atmos_choujm_1/zhoup/cesm2.2.2/cime/src/externals/pio2/src/clib/pio_nc.c(2433): error: identifier "_FillValue" is undefined
ierr = nc_put_att(file->fh, varid, _FillValue, xtype, 1, fill_valuep);
^

/XYFS01/sysu_atmos_choujm_1/zhoup/cesm2.2.2/cime/src/externals/pio2/src/clib/pio_nc.c(2577): error: identifier "_FillValue" is undefined
ierr = nc_get_att(file->fh, varid, _FillValue, fill_valuep);
^

compilation aborted for /XYFS01/sysu_atmos_choujm_1/zhoup/cesm2.2.2/cime/src/externals/pio2/src/clib/pio_nc.c (code 2)
gmake[2]: *** [src/clib/CMakeFiles/pioc.dir/build.make:219: src/clib/CMakeFiles/pioc.dir/pio_nc.c.o] Error 2
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:208: src/clib/CMakeFiles/pioc.dir/all] Error 2
gmake: *** [Makefile:139: all] Error 2
ERROR: /XYFS01/sysu_atmos_choujm_1/zhoup/cesm2.2.2/cime/src/externals/pio2/src/clib/pio_nc.c(2433): error: identifier "_FillValue" is undefined
ierr = nc_put_att(file->fh, varid, _FillValue, xtype, 1, fill_valuep);
^

/XYFS01/sysu_atmos_choujm_1/zhoup/cesm2.2.2/cime/src/externals/pio2/src/clib/pio_nc.c(2577): error: identifier "_FillValue" is undefined
ierr = nc_get_att(file->fh, varid, _FillValue, fill_valuep);
^

compilation aborted for /XYFS01/sysu_atmos_choujm_1/zhoup/cesm2.2.2/cime/src/externals/pio2/src/clib/pio_nc.c (code 2)
gmake[2]: *** [src/clib/CMakeFiles/pioc.dir/build.make:219: src/clib/CMakeFiles/pioc.dir/pio_nc.c.o] Error 2
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:208: src/clib/CMakeFiles/pioc.dir/all] Error 2
gmake: *** [Makefile:139: all] Error 2[sysu_atmos_choujm_1@ln202%TianheXY-CN I2000Li8]$
 
Vote Upvote 0 Downvote
Top