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

problems building CAM 3.0 on Mac OS X with Absoft compiler

Hi,

I'm trying without success to build CAM 3.0 on my laptop (Mac OS X, powerpc G4), with an AbSoft compiler (Pro Fortran 9.2 - using a trial version for now). I have NetCDF 3.6.2.

To configure I do the following:

setenv CAM_ROOT /Users/heidar/CAModel/cam1
setenv CAM_CFGDIR $CAM_ROOT/models/atm/cam/bld
setenv INC_NETCDF /Users/heidar/netcdf/netcdf-3.6.2-universal_binary/include
setenv LIB_NETCDF /Users/heidar/netcdf/netcdf-3.6.2-universal_binary/lib
setenv USER_FC f95

/Users/heidar/CAModel/cam1/models/atm/cam/bld/configure -test


Which results in...

creating /Users/heidar/CAModel/cam-build/Filepath
creating /Users/heidar/CAModel/cam-build/params.h
creating /Users/heidar/CAModel/cam-build/misc.h
creating /Users/heidar/CAModel/cam-build/preproc.h
creating /Users/heidar/CAModel/cam-build/Makefile
creating /Users/heidar/CAModel/cam-build/config_cache.xml
Looking for a valid GNU make... using gnumake
Testing for Fortran 90 compatible compiler... **** FAILED ****
Issued the command:
gnumake test_fc 2>&1

The output was:
cat: Srcfiles: No such file or directory
Makefile:1030: /Users/heidar/CAModel/cam-build/Depends: No such file or directory
/Users/heidar/CAModel/cam1/models/atm/cam/bld/mkSrcfiles > /Users/heidar/CAModel/cam-build/Srcfiles
/Users/heidar/CAModel/cam1/models/atm/cam/bld/mkDepends Filepath Srcfiles > /Users/heidar/CAModel/cam-build/Depends
f95 -o test_fc test_fc.o
ERROR: File not found: test_fc.o
gnumake: *** [test_fc] Error 1


But the compiler works if I just do f95 test_fc -o test_fc.o

If I skip the test and do gnumake >&! make.out, then make.out contains this:

cat: Srcfiles: No such file or directory
Makefile:1030: /Users/heidar/CAModel/cam-build/Depends: No such file or directory
/Users/heidar/CAModel/cam1/models/atm/cam/bld/mkSrcfiles > /Users/heidar/CAModel/cam-build/Srcfiles
/Users/heidar/CAModel/cam1/models/atm/cam/bld/mkDepends Filepath Srcfiles > /Users/heidar/CAModel/c
am-build/Depends
cd /Users/heidar/CAModel/cam1/models/utils/esmf;
echo "Build the ESMF library.";
echo "ESMF is NOT supported by the CCSM project, but by the ESMF core team in NCAR/SCD";

echo "See http://www.esmf.ucar.edu";
gnumake -j 1 BOPT=O ESMF_BUILD=/Users/heidar/CAModel/cam-build/esmf ESMF_DIR=/Users/heid
ar/CAModel/cam1/models/utils/esmf ESMF_ARCH=;
Build the ESMF library.
ESMF is NOT supported by the CCSM project, but by the ESMF core team in NCAR/SCD
See http://www.esmf.ucar.edu
makefile:15: /Users/heidar/CAModel/cam1/models/utils/esmf/build//base: No such file or directory
gnumake[1]: *** No rule to make target `/Users/heidar/CAModel/cam1/models/utils/esmf/build//base'.
Stop.
gnumake: *** [/Users/heidar/CAModel/cam-build/esmf/lib/libO//libesmf.a] Error 2


If I'm right I have to do
setenv ESMF_ARCH Darwin_absoft
before I do gnumake, and if I do that, it runs longer until it ends with:

f95 -c -o mpishorthand.o /Users/heidar/CAModel/cam1/models/atm/cam/src/control/mpishorthand.F
/Users/heidar/CAModel/cam1/models/atm/cam/src/control/mpishorthand.F:1: error: misc.h: No such file
or directory
Preprocessing failed.
This demonstration copy of Absoft Fortran 95 expires 11/21/07.
gnumake: *** [mpishorthand.o] Error 1


Can anyone please tell me what I'm doing wrong?

Cheers.
 
Top