Tina Yu writes:
> Hi,
> 
>       I am trying out the GHC2.10 compiler on iris6 machine.
> My programs receive the following error messages. Can you
> help me to figure out what these mean ? Thank you very much !!
> 
  ...
>
> GNU CPP version 2.7.2.2 [AL 1.1, MM 40] SGI running IRIX 5.x
>
 ...
> /opt/gcc2722/lib/gcc-lib/mips-sgi-irix5.3/2.7.2.2/include/unistd.h:190,
> /usr/include/sgidefs.h:210: parse error before `__int64_t'
> /usr/include/sgidefs.h:210: warning: data definition has no type or

Hi,

I haven't got access to an IRIX box locally at the moment to test
this, but using a 5.3 gcc-2.7.2 build on a machine running 6.x is
likely to be problematic. 

When installed, gcc will fix up some of the OS supplied header files
to bring them into the right `shape', installing the copies inside
$(libexecdir)/gcc-lib/..... These header files are *not*
self-contained, but refer to std OS header files
(cf. unistd.h's use of /usr/include/sgidefs.h above)

In your case, the fixed up 5.3 files include 6.x header files, with
fatal consequences. I'm not aware of any patches that will allow you
to use a 5.3 build under 6.x, but a binary dist of gcc-2.7.2.2 for
irix6 is available from 

  http://reality.sgi.com/ariel/freeware/

Another distribution that I know has worked in conjunction with ghc
is Thomasz Cholewo's irix6.2 gcc-2.7.2.1 tarball, see

   http://ci.uofl.edu/tom/software/

HTH,
--Sigbjorn

Reply via email to