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

is gcc 4.8.5 too old to build CESM 2.1.3?

The documentation says to use: " Fortran compiler with support for Fortran 2003 " .https://escomp.github.io/CESM/release-cesm2/introduction.html
I'm trying to run the cheyenne create_test, but compilation is proving problematic.

With gcc 4.8.5 if I use "-std=f2003" or "fs2008ts" I get many errors of the form
real*4,parameter :: mpeuR4=1.
1
Error: GNU Extension: Nonstandard type declaration REAL*4 at (1)

If I use -std="gnu" (the default) then the errors (in log files from teh cheyenne tests) are of form:
mpif90 -c -I. -I.... 20200625_165900_n87b7t/bld/lib/include -fconvert=big-endian -ffree-line-length-none -ffixed-line-length-none -g -Wall -Og -fbacktrace -ffpe-trap=zero,overflow -fcheck=bounds -std=gnu -DLINUX -DHAVE_MPI -DPIO1 -DFORTRANUNDERSCORE -DNO_R16 -DCPRGNU -DHAVE_SLASHPROC -ffree-form -DUSE_CONTIGUOUS= /exports/csce/eddie/geos/groups/cesd/CESM/my_cesm_sandbox/components/clm/src/fates/parteh/PRTAllometricCarbonMod.F90

err:

..../my_cesm_sandbox/components/clm/src/fates/parteh/PRTAllometricCarbonMod.F90:230.5:

prt_global => prt_global_ac
1
Error: Different types in pointer assignment at (1); attempted assignment of CLASS(prt_global_type) to TYPE(prt_global_type)

I have yet to find a pattern of flags that works and wonder if a) I need to look harder, or b) I just need a more recent compiler. (Since starting this, intel2017 has become available to me - so i could switch to that)

I attach the compiler config file that I am using at present with gnu. I am aware that it mentions testing with 5,.4 and later gcc.... so guess I need to stop trying with 4.8.5.

Thanks.
 

Attachments

  • my_describe_version.txt
    6.4 KB · Views: 1
  • config_compilers.xml.txt
    2.4 KB · Views: 4
Top