[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 970821: new compilers on SCD Crays



> Well, the latest is that this fix seemed to work on ouray (I'm
> currently testing it, so it's not set in stone yet that it works), but
> not on antero.  Here's the error message I get:
>
>         c89 -c -O -I.  -DNDEBUG ncx.c
> CC-28 c89: ERROR File = ncx.c, Line = 3482
>   The expression used must have a constant value.
>
>                 word xbuf[nelems];
>                           ^
>
> CC-28 c89: ERROR File = ncx.c, Line = 3668
>   The expression used must have a constant value.
>
>                 word xbuf[nelems];
>                           ^
>
> 2 errors detected in the compilation of "ncx.c".
> Make: "c89 -c -O -I.  -DNDEBUG ncx.c": Error code 1
> cmd-2436 make: Stop.
>
> To fix this, I used "cc" instead of "c89" which worked.  I don't know
> what this means, but the netcdf INSTALL file tells me I should
> be using c89 for the C compiler.
>
> I'll just keep chugging along and keep you posted.
>
> Mary

The feature in use is indeed a cray extension and not legal STDC.
Since this is in middle of cray specific code, it shouldn't be a
problem.

My personal recommendation is to use "cc" rather than "c89" on
this platform.

-glenn