[MITgcm-support] (no subject)

Ed Hill ed at eh3.com
Thu May 11 14:59:39 EDT 2006


On Thu, 2006-05-11 at 09:18 +0000, Amitabh Mitra wrote:
>   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.


Hi Amitabh,

I think the fix for the above problem is pretty easy.  Unlike most cpp
implementations, the gcc compiler wants to read input always from a
file, not from stdin.  So please try:

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

where the very last "-" tells gcc to use stdin instead of a file.  It
works on my machine and it should (hopefully!) work for your SGI Origin,
too.

Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS 54-1424;  77 Massachusetts Ave.
             Cambridge, MA 02139-4307
emails:  eh3 at mit.edu                ed at eh3.com
URLs:    http://web.mit.edu/eh3/    http://eh3.com/
phone:   617-253-0098
fax:     617-253-4464





More information about the MITgcm-support mailing list