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 while compiling CESM1.2.2 using pgi compiler

Deal all,Recently I try to compile CESM1.2.2 with newer version of mpich, newer paraller version of hdf5 and netcdf, but it fails while building buildlib.csm_share. The error message looks like:===================================================================================PGF90-S-0188-Argument number 3 to pio_def_dim: type mismatch (..../cesm1_2_2/models/drv/shr/seq_io_mod.F90: 1170)PGF90-S-0038-Symbol, pio_unlimited, has not been explicitly declared (.../cesm1_2_2/models/drv/shr/seq_io_mod.F90)  0 inform,   0 warnings,   2 severes, 0 fatal for seq_io_write_timegmake: *** [seq_io_mod.o] Error 2=================================================================================== Before I use the older version of mpich, parallel netcdf and hdf5 libraries and it works fine, but now it crashes. Is there any way to solve this issue besides going back to the old modules? Thank you. Jian
 

jedwards

CSEG and Liaisons
Staff member
This message indicates that it didn't build the pio library correctly, go back and review the pio build log.  
 
Dear Jedwards, Thanks for your reply. I do check the pio bldlog and there is no error message in it. I check the lib folder under the bld/pgi/mpich/nodebug/threads and there exists the library file "libpio.a", which should mean that I have compiled the pio library correctly, right? Let me know if I misunderstand anything here. Appreciate your help and suggestion. Jian
 

jedwards

CSEG and Liaisons
Staff member
Can you attach the pio.bldlog and the config.log from the pio build directory.  I believe that netcdf was not included in the pio build.
 
Dear Jedwards, Thanks so much for your suggestion. It's true that that netcdf is not included in the pio build and cause the later issue. But I don't understand why I can still get the pio library successfully. Is it a bug? And also how can you locate the netcdf error exactly without seeing my log file ahead? :) Thank you.Jian 
 
Top