Re: ghc linking errors

2001-05-09 Thread Marcin 'Qrczak' Kowalczyk
Wed, 9 May 2001 13:26:42 -0700 (PDT), Thomas Hallock <[EMAIL PROTECTED]> pisze: > _Main_main_closure > ___init_Main This is because your module has a different name then Main. > __udivdi3 > __umoddi3 > __cmpdi2 > __fixunsdfdi > __floatdidf These symbols should be found in libgcc.a. I don't kno

Flushing buffers on ctrl-C

2001-05-09 Thread Alastair Reid
Would it be possible to flush open file buffers on ctrl-C? I realise I could do this with hSetBuffering though with some performance cost. I also appreciate that it could be a little tricky to implement (or, maybe, really simple?) - but it would be really useful. -- Alastair Reid[EMAI

Re: ghci-5.00: the `impossible' happened

2001-05-09 Thread Manuel M. T. Chakravarty
Armin Groesslinger <[EMAIL PROTECTED]> wrote, > --- > module Main where > > import CForeign > > foreign import "puts" puts :: CString -> IO () > > main :: IO () > main = return () > --- > > to ghci-5.00 (with ghci -package lang -fglasgow-exts Main.hs >

Re: ghc linking errors

2001-05-09 Thread Manuel M. T. Chakravarty
Thomas Hallock <[EMAIL PROTECTED]> wrote, > I get these crazy link errors whenever ghc tried to > link its object files: > > > [localhost:Documents/minimax/hs] root# ghc simple.hs > /usr/bin/ld: Undefined symbols: > _Main_main_closure > ___init_Main > __udivdi3 > __umoddi3 > __cmpdi2 > __fixuns

Re: ghc linking errors

2001-05-09 Thread Michael Weber
* Thomas Hallock <[EMAIL PROTECTED]> [2001-05-09T13:26-0700]: > I get these crazy link errors whenever ghc tried to > link its object files: > > > [localhost:Documents/minimax/hs] root# ghc simple.hs > /usr/bin/ld: Undefined symbols: > _Main_main_closure > ___init_Main > __udivdi3 > __umoddi3 >

Typo in type error message

2001-05-09 Thread Alastair Reid
s/comprension/comprehension/ in the last line of this error message Couldn't match `[Char]' against `Char' Expected type: [[Char]] Inferred type: FilePath in a `list comprension' pattern binding: f Here's the offending line: grep comprension compiler/*/*.lhs compile

ghci-5.00: the `impossible' happened

2001-05-09 Thread Armin Groesslinger
Hello, feeding the program --- module Main where import CForeign foreign import "puts" puts :: CString -> IO () main :: IO () main = return () --- to ghci-5.00 (with ghci -package lang -fglasgow-exts Main.hs on x86/Linux) gives the following error: Co

ghc linking errors

2001-05-09 Thread Thomas Hallock
I get these crazy link errors whenever ghc tried to link its object files: [localhost:Documents/minimax/hs] root# ghc simple.hs /usr/bin/ld: Undefined symbols: _Main_main_closure ___init_Main __udivdi3 __umoddi3 __cmpdi2 __fixunsdfdi __floatdidf what gives? Thanks, Thomas Hallock ___

Re: No luck installing on SuSE 7.1

2001-05-09 Thread William Chesters
William Chesters writes: >However the toy exe I build terminates with an "Illegal > instruction" signal (whether or not I use -via-C), and the same quite > quickly happens to ghci if I play around. If I copy the toy exe onto > a Mandrake (~ RedHat) 6.0 machine I get the same. (If I copy

No luck installing on SuSE 7.1

2001-05-09 Thread William Chesters
Hi, I'm trying to get GHC 5.00 installed on my SuSE 7.1 box. I have tried (a) the binary distribution, (b) the source distribution, (c) a CVS snapshot. The binary distribution ghc-5.00-i386-unknown-linux.tar.bz2 does to some extent work if I either install libreadline.so.3 manually or just s