FFI problems?

Julian Seward (Intl Vendor) v-julsew at microsoft.com
Mon Dec 18 07:31:14 EST 2000


| -----Original Message-----
| From: Malcolm Wallace [mailto:Malcolm.Wallace at cs.york.ac.uk]
| Sent: Monday, December 18, 2000 12:22 PM
| To: glasgow-haskell-bugs at haskell.org
| Subject: FFI problems?
| 
| 
| I just tried to compile this:
| 
| > module Fib where
| > foreign export fib :: Int -> Int
| > fib 0 = 1
| > fib 1 = 1
| > fib n = fib (n-1) + fib (n-2)
| 
| using GHC 4.08 under Linux,
| 
| > $ ghc -c Fib.hs -fglasgow-exts
| >
| > panic! (the `impossible' happened):
| > 	tcLookupGlobalValue: <THIS>.PrelIOBase.returnIO{-0B,s-}
| > 
| > Please report it as a compiler bug to 
| glasgow-haskell-bugs at haskell.org.
| 
| Can someone check whether this has been fixed in more recent versions
| of the compiler?

I think it was fixed in 4.08.1.  In any case 4.08 has a nasty bug
in the NCG register allocator; you should move to 4.08.1 if you
haven't already.

J




More information about the Glasgow-haskell-bugs mailing list