RE: ghc with -prof cannot find standard headers

1999-01-14 Thread Simon Marlow
> I most probably forgot something, but neither the manual nor the > installation documentation nor ghc itself could help me. > > When I compile with the `-prof' option switched on, ghc > cannot find the > standard .hi files any more. I tried the 4.00 intel linux binaries and > the 3.02 and 2.10

GHC 4.01 FFI bugs

1999-01-14 Thread Manuel M. T. Chakravarty
First of all, let me say that I like the new FFI (as outlined in `A Primitive Foreign Function Interface') very much :-) I really hope that this eventually makes it into the Haskell standard - although, there are still some things to smooth out. Unfortunately, the implementation in GHC 4.01 is

GHC 4.01 FFI another bug

1999-01-14 Thread Manuel M. T. Chakravarty
If I link import Addr (Addr, nullAddr) foreign import ccall "foo" foo :: Int -> Addr -> IO () main = foo (id 32) nullAddr with void foo (int x, char *y) { printf ("foo: x = %d; y = %xl\n", x, (long) y); } I get foo: x = 134516888; y = 0l It is the combination of there bei

ghc with -prof cannot find standard headers

1999-01-14 Thread fis
Hi, I most probably forgot something, but neither the manual nor the installation documentation nor ghc itself could help me. When I compile with the `-prof' option switched on, ghc cannot find the standard .hi files any more. I tried the 4.00 intel linux binaries and the 3.02 and 2.10 spar