The binary package of ghc-5.02.2 for sparc-sun-solaris2.7 seems to have
a small problem on my Solaris 2.6 machine. The compiler works fine
on most source modules, but it has trouble with one using the FFI.
A previous version of the compiler (4.08.2) worked fine on the same
module, and 5.02.2 on ix86-Linux works fine also. Here is the error
message I get:
$ ghc -fglasgow-exts -package lang -c -o Floats.o Floats.hs
In file included from /export/home/malcolm/lib/ghc-5.02.2/include/Stg.h:206,
from /tmp/ghc21103.hc:1:
/export/home/malcolm/lib/ghc-5.02.2/include/PrimOps.h:976:
parse error before `sigset_t'
The module is this:
{-# OPTIONS -fglasgow-exts -#include "ghc_floats.h" -fvia-C #-}
module Floats
( floatToInt
, doubleToInt0
, doubleToInt1
) where
foreign import floatToInt :: Float -> Int
foreign import doubleToInt0 :: Double -> Int
foreign import doubleToInt1 :: Double -> Int
Do I need to change any of the OPTIONS in the pragma to get this
to work? Also, might it be relevant that the default version of gcc
installed is the rather ancient 2.7.2?
Regards,
Malcolm
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs