[MITgcm-support] (no subject)

Amitabh Mitra amitabhmitra1 at rediffmail.com
Thu May 11 05:18:28 EDT 2006


  
Dear Sir,

   My system administrator installed the gcc 

compiler in SGI Origin. Its path is given below.
------------------------------------------------
SGI_2100 6% which gcc
/usr/freeware/bin/gcc

---------------------------------------------------------------

 I made the following changes in my optfile which

is attached with this mail. Earlier for CPP it was

  CPP='/lib/cpp -P' 

which was working and I changed it as

  CPP='/usr/freeware/bin/gcc -E -traditional' 

Now when I give the command for creating the Makefile.

the following error is displayed.

--------------------------------------------------------------


SGI_2100 5% sh ../../../tools/genmake2   -of ../../../tools/build_options/prabhat1


GENMAKE :

A program for GENerating MAKEfiles for the MITgcm project.  For a
quick list of options, use "genmake -h" or for more detail see:

  http://mitgcm.org/devel_HOWTO/

===  Processing options files and arguments  ===
  getting local config information:  none found
Warning:  ROOTDIR was not specified but there appears to be a copy of MITgcm at
"../../.." so we'll try it.
  getting OPTFILE information:
    using OPTFILE="../../../tools/build_options/prabhat1"
  getting AD_OPTFILE information:
    using AD_OPTFILE="../../../tools/adjoint_options/adjoint_default"

Error: C pre-processor "/usr/freeware/bin/gcc -E -traditional" failed the test c
ase: please specify using:

  1) within the options file ("CPP=...") as specified by "-of=OPTFILE"
  2) the "./genmake_local" file
  3) with the CPP environment variable

-----------------------------------------------------------

 I think something is wrong with the optfile and I have to 

specify the path of C preprocessor correctly.

Please help.

Thanking You,

Amitabh Mitra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20060511/89bac3fd/attachment.htm>
-------------- next part --------------
#!/bin/bash
#
#  $Header: /u/gcmpack/MITgcm/tools/build_options/irix64_ip27_f77+mpi,v 1.1 2004/02/21 14:41:09 dimitri Exp $
#

S64='$(TOOLSDIR)/set64bitConst.sh'
MAKEDEPEND=makedepend
CPP='/usr/freeware/bin/gcc -E -traditional'

DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_SGI -DWORDLENGTH=4'
FC='f90'
FFLAGS='-n32 -extend_source -bytereclen'
FOPTIM='-O3 -OPT:Olimit=0:roundoff=3:div_split=ON:alias=typed'
LIBS='-lmpi'
INCLUDEDIRS='/usr/include'



More information about the MITgcm-support mailing list