GHC confused by hi-boot files

2004-09-17 Thread George Russell
With both ghc6.2 and 6.2.20040915 on Linux, ghc --make cannot compile the attached files and produces a confusing error message. # ghc --make View.hs Chasing modules from: View.hs Compiling ViewType ( ./ViewType.hs, ./ViewType.o ) Compiling VersionGraphClient ( ./VersionGraphClient.hs,

Template Haskell and boot files

2004-09-17 Thread George Russell
Hello GHC bug fixers, I just sent a program which ghc --make couldn't compile but individual ghc -c commands could. Now I have just tried to work around this, using Template Haskell to use a data rather than newtype declaration for ghc6.2 Unfortunately the new code has the opposite problem! It

-fwarn-unused-imports confused by hi-boot files

2004-09-16 Thread George Russell
# ghc -fwarn-unused-imports C.hs C.hs:1: Warning: Module `A' is imported, but nothing from it is used (except perhaps instances visible in `A') However if I comment out the import of A I get ./B.hi-boot:3: tcLookup: `A.A' is not in scope In the type synonym declaration

Re: Text.ParserCombinators.Parsec requires -package text.

2004-09-08 Thread George Russell
Axel Simon wrote (snipped): But if I have two layers over gtk 1.2 and 2.0 and both use the hierarchical module system and are therefore marked as auto you would have the same problem of linking in two versions of gtk which doesn't work. Did I miss something? I presume that Simon meant that only

Re: Text.ParserCombinators.Parsec requires -package text.

2004-09-07 Thread George Russell
Simon Peyton-Jones wrote: It's documented behaviour. * import Text.ParserCombinators.Parsec will work without any -package flags, if any installed package has a module Text.ParserCombinators.Parsec. It's very tiresome adding -package flags all the time. * The link step needs -package flags,

Re: Text.ParserCombinators.Parsec requires -package text.

2004-09-07 Thread George Russell
Alastair Reid wrote (snipped): Why is it necessary to provide -package options at all? ghc-pkg knows about all the packages in your system so it could just implicitly add -package $x for every package when compiling or linking. My current need at least is to disable the lang, text, data packages

Text.ParserCombinators.Parsec requires -package text.

2004-09-06 Thread George Russell
With ghc ParsecTest.hs -o pt you get a link-time failure, because it looks as if the base package Text.ParserCombinators.Parsec depends somehow on the package text. module Main where import Text.ParserCombinators.Parsec ch = char 'C' main = do seq ch (return

Re: Text.ParserCombinators.Parsec requires -package text.

2004-09-06 Thread George Russell
Ross Paterson wrote: On Mon, Sep 06, 2004 at 12:10:09PM +0200, George Russell wrote: With ghc ParsecTest.hs -o pt you get a link-time failure, because it looks as if the base package Text.ParserCombinators.Parsec depends somehow on the package text. Try -package parsec OK, I have

-fwarn-misc

2004-08-31 Thread George Russell
According to http://www.haskell.org/ghc/docs/latest/html/users_guide/options-sanity.html there is a GHC option -fwarn-misc. But ghc-6.2.1 doesn't seem to have it. ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED]

Template Haskell, Haddock, -fwarn-missing-signatures don't mix

2004-08-31 Thread George Russell
Not so much a bug this as a whinge: # ghc -c TH2.hs -fwarn-missing-signatures -fglasgow-exts Loading package base ... linking ... done. Loading package haskell98 ... linking ... done. Loading package haskell-src ... linking ... done. TH2.hs:6: Warning: Definition but no type signature for `a'

-fwarn-unused-binds misses a use

2004-08-31 Thread George Russell
# ghc Unused.hs -fwarn-unused-binds -fglasgow-exts Unused.hs:10: Warning: Defined but not used: Dummy module Unused(Foo(..),ff) where class Foo (v :: (* - *) - *) where f :: v a - Int ff :: Foo v = v a - Int ff (_ :: (v :: (* - *) - *) a) = (f (error bar :: v Dummy)) data Dummy x = Dummy

ghc-6.2.1 incorrectly reporting duplicate instance declarations

2004-04-08 Thread George Russell
When I have a collection of files to compile and (1) I use --make to compile them together; (2) they are recursive it works the first time, but when I try to compile them the second time I get messages about bogus duplicate instance declarations, for example: Skipping GlobalRegistry (

Possible instances problem with ghc-6.2.1

2004-03-26 Thread George Russell
With ghc-6.2.1 compiled from source tar -xzf instances2.tar.gz cd instances2 gmake produces the message: AttributesType.hs:15: Could not deduce (Show value) from the context (AttributeValue (Radio value), HasConfigRadioButton value,

Mysterious error from ghc6.2

2004-03-11 Thread George Russell
# ghc -c FunnyError.hs FunnyError.hs:7: Couldn't match `Bool' against `[Char]' Expected type: Bool Inferred type: [Char] In the definition of `b': b x Foo = () In the definition for method `b' FunnyError.hs:9: tcLookup: `FunnyError.$dmb' is not in scope In the

Package with no dependencies causes GHC to mislay standard prelude

2004-02-27 Thread George Russell
Unpacking the attached bundle and running the following with ghc=GHC6.2 (Linux, compiled from the ghc-6.2 tag), produces the following: # cd packagesbug /home/ger/test/packagesbug # CompileBug /home/ger/test/packagesbug/package1 Chasing modules from: CompileFlags.hs Compiling CompileFlags (

ghc-pkg makes unnecessary assumptions on Solaris

2004-01-29 Thread George Russell
How do you install ghc so that ghc-pkg doesn't use the Solaris linker, but instead the GNU linker which is called (here) gnu-ld? Obviously it doesn't want to use the Solaris linker since that doesn't have the --whole-archive option ghc-pkg needs. ___

Re: hGetBuf (or something related) broken for 6.2 with sockets

2003-12-19 Thread George Russell
Simon Marlow wrote (snipped): BTW George: there are plenty of 6.1.xxx snapshots available - these are the 6.2 prereleases. There are, but no recent ones. What I would like to have had is a 6.2-epsilon version, not 6.1 and a bit. We don't snapshot along the STABLE branch at the moment; no

hGetBuf (or something related) broken for 6.2 with sockets

2003-12-18 Thread George Russell
I have just installed ghc6.2 on Linux. (I had to compile it from source because the binaries insist on a glibc version we don't have.) The attached module contains two functions (serverMain) and (clientMain). clientMain opens a connection (to localhost) and sends some data along it, then executes

Instances which worked in ghc6.0.1 don't work for developmentsnapshot 6.3.20031201

2003-12-11 Thread George Russell
For ghc6.0.1 on Linux # ghc Test1.hs -c -fglasgow-exts -fallow-undecidable-instances -fallow-overlapping-instances # ghc Test2.hs -c -fglasgow-exts -fallow-undecidable-instances -fallow-overlapping-instances works. But for ghc6.3.20031201 the second compilation produces the message:

Template Haskell panic

2003-12-10 Thread George Russell
The attached file causes a panic when compiled with ghc6.0 on Linux. # ghc -fglasgow-exts TH.hs -c ghc-6.0.1: panic! (the `impossible' happened, GHC version 6.0.1): nameModule newLen0 {- v a35 -} Please report it as a compiler bug to [EMAIL PROTECTED], or

Problems with Template Haskell

2003-12-05 Thread George Russell
Template Haskell seems to be type-checking some quasi-quotes, even when they are not going to be used. This is of course a terrible nuisance, since it means it can't be used to work around interface incompatibilities between libraries for different versions of GHC (such as the recent change in

Re: Problems with Template Haskell

2003-12-05 Thread George Russell
Simon Peyton-Jones wrote (snipped): Still, in your cpp-like application, I guess your story is that the condition might evaluate to True only if the system configuration was such that bar was in scope. If the condition evaluates to False, then bar really might not be available. OK, in TH

Incompatibilities between RPM .tar.gz versions of ghc-6.0.1

2003-11-10 Thread George Russell
It seems as if the RPM and .tar.gz versions of ghc-6.0.1 are binary incompatible. That is, a library built for one will not necessarily work on the other. For example, libHSbase.a defines the symbol GHCziRead_lvl18_closure in the .tar.gz version, which can be externally called; however in the

LD_LIBRARY_PATH, ghc and Solaris

2003-10-16 Thread George Russell
It looks like I am going to have to hack the shell script that calls ghc, because it needs to set LD_LIBRARY_PATH so that the executables can find libreadline. Would it be possible to have an option to ./configure that set a library path to be used by these scripts?

hClose non-terminating

2003-10-10 Thread George Russell
I have a problem with a handle for which hClose does not terminate. Unfortunately it's too much work for me to narrow it down now, but perhaps it can be worked out from these facts? (1) it's a socket connection. (2) it has BlockBuffering (Just 4096) set. (3) it is possible that another thread is

Re: peekCString stack overflow

2003-10-02 Thread George Russell
Actually what I really need is peekCStringLen. This function can surely avoid stack overflow by building up the result from right to left? I think for peekCString the solution might be to get the length using the C function strlen (which is more optimised than a Haskell alternative) and then call

peekCString stack overflow

2003-10-01 Thread George Russell
The following program gives me a stack overflow for a file big.tex 15 bytes long. -- Cut here -- module Main where import Foreign.C.String import Foreign.Ptr import qualified GHC.IO main = do (ptr,len) - GHC.IO.slurpFile big.tex peekCStringLen (castPtr ptr,len) return ()

Segmentation fault with GHCi 6.0

2003-08-27 Thread George Russell
What is going on here? Is it already fixed in 6.1? # uname -a Linux denebola 2.4.19-4GB #2 Mon Mar 31 10:57:24 CEST 2003 i686 unknown # ghc DynExcep.hs -c -fglasgow-exts # ghci ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.0, for Haskell 98. /

GHC running out of memory, surprisingly.

2003-06-16 Thread George Russell
Yes, I know functional languages are memory hogs, but really! The following is on linux # ghci ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.0, for Hask / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :?

Strange ghci :def failure

2003-06-07 Thread George Russell
What is wrong here? / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 6.0, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ... linking ... done. Prelude :def code (\ - do { let

ghc --make and missing interface files

2003-06-04 Thread George Russell
Hello all, I have a file BinaryIO. This used to import a module HGetCharHack to work around an annoying problem with ghc5.04 which meant that hGetChar was blocking unexpectedly. However I see that this problem has now been fixed in ghc6 (ta very much, Simon) so I deleted the files

Can't install ghc-6.0 on Solaris

2003-06-03 Thread George Russell
# uname -a SunOS leo 5.8 Generic_108528-18 sun4u sparc SUNW,Sun-Fire-280R # ./ghci ./ghci: /nfs/moussor/hdaume/lib/ghc-6.0/ghc-6.0: not found Also the install process failed as follows: ./mkdirhier /usr/local/pub-bkb/ghc/ghc-6.0/share/ghc-6.0/html if test -d share/html ; then cp -r share/html/*

ghc installation on Linux doesn't like CDPATH

2003-06-03 Thread George Russell
The cd command on Linux considerately prints out the name of the new directory, which it gets from the CDPATH. This has the unfortunate side-effect of breaking gmake install for ghc6.0, which uses some shell hackery of the form something like: for i in `(cd share ; find .)` where i's first value

Posix.getFileStatus

2003-02-28 Thread George Russell
(1) I think Posix.getFileStatus should respond to a file which isn't there with something rather more helpful than system error. For example, a No such file or directory message. (2) The logical way of spotting whether a file is actually there is the queryFile function, documented for example

Re: ghc5.04.1 deriving Read/Show broken

2002-09-17 Thread George Russell
Manuel M T Chakravarty wrote: [snip] Luckily, there is a workaround (discovered by Tom Moertel on #haskell). If you include field names in the data definition for which you derive Show and Read, it seems to work fine. [snip] Thanks. I may try this, if I get time.

Division by 0 exits ghci

2002-09-17 Thread George Russell
On Solaris: # /home/ger/ghc-5.04.1.install/bin/ghci ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 5.04.1, for Haskell 98. / /_\\/ __ / /___| | http://www.haskell.org/ghc/ \/\/ /_/\/|_| Type :? for help. Loading package base ...

Re: Division by 0 exits ghci

2002-09-17 Thread George Russell
In fact the problem is more drastic than I mentioned in my last message; division by 0 doesn't seem to be catchable at all. From this program --- cut here --- import Exception main = do excep - Exception.try (seq (1 `div` 0) (return ())) putStrLn

Re: FFI: passing 6 FD arguments doesn't work

2002-09-09 Thread George Russell
Simon Marlow wrote: This was a bug in GHC's native code generator for SPARC, which sometimes misaligned the stack pointer. This has already been fixed in CVS (HEAD and branch), but it didn't make it into 5.04, see:

FFI: passing 6 FD arguments doesn't work

2002-09-03 Thread George Russell
uname -a: SunOS titania 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-1 ghc --version: The Glorious Glasgow Haskell Compilation System, version 5.04 gcc --version: 2.95.3 With the files in the attached archive unpacked: ghc hw5.c TestHW5.hs -ffi -package posix -o hw5 -Wall ./hw5

Posix.executeFile having problems with unevaluated argumnets

2002-08-28 Thread George Russell
Sorry, I haven't got time to narrow this down to a test case, but here are what I hope are the key factors: (1) We start up applications in a child process (forked with Posix.forkProcess) by calling Posix.executeFile, wrapped in an Exception.catch handler (to detect errors). (2) Both the third

Loading packages into ghci doesn't set options.

2002-07-17 Thread George Russell
For example, with the attached test-package.conf file, we see that -fglasgow-exts in the first case works (because the package is loaded in the beginning), but in the second case it doesn't (because the package is loaded during GHCi). This also applies to -fallow-overlapping-instances and

IOExts.slurpFile fails on zero-length files

2002-05-02 Thread George Russell
Specifically I get *** Exception: invalid argument Action: hGetBuf Handle: {loc=/tmp/d,type=readable,binary=False,buffering=block (8192)} Reason: illegal buffer size 0 whether using 5.03.2 on Solaris or 5.03.20020410 on Linux. ___

Private package files don't work on Linux with ghc5.03.20020204

2002-04-12 Thread George Russell
I have a private package file (attached). However, specifying this via -f to the new ghc-pkg has the following unpleasant consequences: (1) -l only knows about the packages in my private file, not in the GHC one. (2) When I try to add a new package to this file that depends on one of the

Panic loading objects with big strings in Windows

2002-04-11 Thread George Russell
With ghc-5.02.3 on Windows starting with a package containing an object with a large String I get the following message. Note the last line. ___ ___ _ / _ \ /\ /\/ __(_) / /_\// /_/ / / | | GHC Interactive, version 5.02.3, for Haskell 98. / /_\\/ __ / /___| |

panic in ghc5.02.3

2002-04-10 Thread George Russell
(This is on sparc-solaris) # /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc --make resources/GUIValue.hs resources/Colour.hs -fglasgow-exts ghc-5.02.3: chasing modules from: resources/GUIValue.hs,resources/Colour.hs Compiling GUIValue ( resources/GUIValue.hs, resources/GUIValue.o )

Re: panic in ghc5.02.3

2002-04-10 Thread George Russell
George Russell wrote: [snip] Personally I suspect multi-parameter type-classes [snip] I've changed my mind and now think it's because GHC was upset it couldn't find the .hi file for GUIValue.hs in a directory on the import list. (Of course it shouldn't be, it should know where the .hi file

Re: panic in ghc5.02.3

2002-04-10 Thread George Russell
Simon Marlow wrote: George Russell wrote: [snip] Personally I suspect multi-parameter type-classes [snip] I've changed my mind and now think it's because GHC was upset it couldn't find the .hi file for GUIValue.hs in a directory on the import list. (Of course it shouldn't

Does ghc have daemon threads again?

2002-02-01 Thread George Russell
I have a program which comes to the end of the main action, but nevertheless won't go away. Is this a bug? When I give up and interrupt it, I get a message fatal error: resurrectThreads: thread blocked in a strange way; could this be connected?

Dynamic types/multiparameter type classes

2002-01-31 Thread George Russell
Something is rotten in the state of dynamic types and multiparameter type classes. I'd be grateful if you'd fix it soon, this is causing me big difficulties. I'm sorry if this is complicated, but I've already spent two hours narrowing this bug down and the security are about to throw me out of

The Handle returned by connectTo and accept is unbuffered by default.; oh yeah?

2002-01-25 Thread George Russell
According to the GHC libraries manual, 6.2.1: The Handle returned by connectTo and accept is unbuffered by default. However, with such a handle and hPutStrLn, I am getting buffering, even when use IO.hSetBuffering to NoBuffering. When I put in an explicit hFlush after the hPutStrLn it

The signature contexts in a mutually recursive group should all be identical; why?

2001-12-19 Thread George Russell
The attached file doesn't compile (ghc -fglasgow-exts), with the message RecContext.hs:12: Mismatched contexts When matching the contexts of the signatures for g :: forall a b. (Silly a b) = a - b - SillyType a - [String] f :: forall a. SillyType a - [String] The

Confusing GHC error message

2001-11-23 Thread George Russell
(Yes, I know that's not very impressive, but you must all have been wondering what's happened to me.) The attached file, when compiled with ghc5.02.1, -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances produces the error message Haskell.hs:11: Illegal left hand side

Re: whitespace in strings (was ghc misreports the error line)

2001-10-25 Thread George Russell
Malcolm Wallace wrote, answering me: On the contrary I'm glad to see that the Haskell standard is so sensible. I edit Haskell using XEmacs, and I don't want to have to do an octal or hexadecimal dump of my source code to determine whether a string contains a tab, newline, return, line

RE: ghc misreports the error line

2001-10-24 Thread George Russell
Malcolm Wallace wrote: [snip] No he isn't. At least, I can't find anything in the Report which disallows literal newline characters in a string literal. Oh, hold on. The production string - { graphic_|` | space | escape | gap } does seem to disallow newline characters. But it

ghc5.02 can't read its own interface file.

2001-10-17 Thread George Russell
The attached interface file SimpleForm.hi provokes the following error from ghc5.02: MainsimpleFormEx.hs:6: failed to load interface for `SimpleForm': Bad interface file: /home/ger/uni/htk/toolkit/SimpleForm.hi /home/ger/uni/htk/toolkit/SimpleForm.hi:155 Interface file

import with hiding

2001-08-06 Thread George Russell
DaVinciTypes defines the types DaVinciAnswer and the constructor Context. (.hi file attached.) So I would expect import DaVinciTypes hiding (Context) import qualified DaVinciTypes to make DaVinciAnswer in scope, but DaVinciTypes.Context only available when so qualified. This doesn't appear to

ghci panic on unloadObj

2001-06-27 Thread George Russell
ghci -iutil:events -syslib lang -syslib data -syslibconcurrent util/object.o [ lots of stuff skipped ] Events :load GuardedEvents unloadObj: can't find `events/Events.o' to unload ghc-5.00.2: panic! (the `impossible' happened, GHC version 5.00.2): unloadObj: failed Please report it as

ghc panic (this time due to openFile error):

2001-04-24 Thread George Russell
In trying out a particularly large set of files (circa 450) with ghc --make I get ghc-5.00: panic! (the `impossible' happened, GHC version 5.00): resource exhausted Action: openFile Reason: process file table full File: /tmp/ghc14562.hspp Please report it as a compiler bug to [EMAIL

Another bug I think

2001-04-18 Thread George Russell
I'm trying to get UniForM through ghc 5.00 (limping at the moment, as I have to turn on -fasm -Onot to work around bugs previously reported) and I get ghc-5.00: panic! (the `impossible' happened, GHC version 5.00): ERROR: Native code generator can't handle casm Please report it as a

ghc5.00 misreads a comment . . .

2001-04-18 Thread George Russell
This is ghc5.00/Sparc, running with the following command line /usr/local/pub-bkb/ghc/ghc-5.00/bin/ghc -c CVSHigh.hs -package concurrent -package data -package net -package posix -package text -package util -package lang

Mysterious file reference in ghc distribution

2001-04-10 Thread George Russell
I was just trying to compile the new ghc 5.00 on Sparc/Solaris and got this: ==fptools== gmake boot --no-print-directory -r; in /home/ger/ghc-5.00/ghc/lib/std/cbits ../../../../glafp-utils/mkdependC/mkdependC -f .depend

panic in 4.08.2.

2001-02-22 Thread George Russell
Compiling the above Haskell file with ghc4.08.2 (Sparc-Solaris) and the hi files in the attached archive, options: -c -package concurrent -package data -package net -package posix -package text -package util -package lang -fglasgow-exts -fallow-overlapping-instances

Re: panic in 4.08.2.

2001-02-22 Thread George Russell
Makefiles to compile GuardedChannels with -funfolding-interface-threshold0) works. Many thanks for the quick service, George Russell ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: loop when running hsc

2000-11-02 Thread George Russell
Simon Marlow wrote: Ok, we'll need to investigate but this is going to be a tricky one to track down. Is there any way you can try to narrow down the problem? sigh Oh alright then. It's taken me some time but attached is a version narrowed down to just two files. When you've unpacked it, go

Re: Why is variable out of scope?

2000-11-02 Thread George Russell
Simon Peyton-Jones wrote: It's a bug all right, and a bizarre one at that. It's fixed in the before-ghci-branch. I'm not quite certain when it got fixed, mind you! Hmm. Maybe we're going to need 4.08.2. The trouble with all this wondrous new GHC code is that one suspects that it has

Re: Why is variable out of scope?

2000-11-02 Thread George Russell
Simon Peyton-Jones wrote: Send us details about how to get access to your CVS archive, plus instructions on how to build it, and we'll set it up. Well you can read http://www.informatik.uni-bremen.de/~ger/cvs/CVS.html but (touch wood) the following should work (bash is assumed) (1)

Re: Why is variable out of scope?

2000-11-02 Thread George Russell
Simon Marlow wrote: [snip] I stopped trying to compile GHC from CVS ages ago when I was getting unexplained core dumps which apparently could only be fixed by reinstalling gcc/binutils . . . And that's our fault? [snip] I've no idea whose fault it is. I think there are various

loop when running hsc

2000-11-01 Thread George Russell
With ghc-4.08.1, running on Linux with -0 -O2-for-C, I get: loop With ghc-4.08, running on Solaris, with -O -O2-for-C, I get: hsc: no threads to run: infinite loop or deadlock? With ghc-4.08, running on Solaris, with -Onot, the compilation works. For the sources you will need the whole of

Re: False duplicate or overlapping instances message

2000-10-26 Thread George Russell
Marcin 'Qrczak' Kowalczyk wrote: [snip] I am worried if the following scenario is possible: There are two modules. Everything is OK. Now one of them adds an innocent instance. It is perfectly correct in its context, but it happens that it triggers an ambiguity in the second module. Still

False duplicate or overlapping instances message

2000-10-25 Thread George Russell
When I compile the attached file on Linux with 4.08.1: /home/ger/ghc-4.08.1-binary/bin/ghc -c Instances.hs -fglasgow-exts -fallow-overlapping-instances -fallow-undecidable-instances I get the message: Instances.hs:1: Duplicate or overlapping instance declarations for `HasConfig

Re: False duplicate or overlapping instances message

2000-10-25 Thread George Russell
Keith Wansbrough wrote: Instances.hs:1: Duplicate or overlapping instance declarations for `HasConfig (arcTypeConfig value) (arcTypeParms value)' defined at Instances.hs:19 and defined at Instances.hs:11 This is not fair, because while the instances for

Re: False duplicate or overlapping instances message

2000-10-25 Thread George Russell
Keith Wansbrough wrote: You can now see that the two instance declarations overlap: their right hand sides are in fact *identical*. Remember that the typechecker simply matches on the right-hand sides ("heads") of the instance declarations. No they do not overlap, unless there is

Re: Program won't go away!

2000-10-19 Thread George Russell
Marcin 'Qrczak' Kowalczyk wrote: Wed, 18 Oct 2000 16:32:21 +0200, George Russell [EMAIL PROTECTED] pisze: In a standalone GHC program, only the main thread is required to terminate in order for the process to terminate. I have a program (which does some fairly complex things

Re: Program won't go away!

2000-10-19 Thread George Russell
Marcin 'Qrczak' Kowalczyk wrote: On Thu, 19 Oct 2000, George Russell wrote: I don't see what this example has got to do with mine, since it prints "Test completed" in the new process, while waiting in the old one. I suspect that your program does the same thing. I.e. tha

Re: Program won't go away!

2000-10-19 Thread George Russell
I think I've narrowed the problem down a bit further. It looks as if the reason GHC is hanging after the end of the main action is that there's a handle still open to a socket (to another process). If I hClose the handle explicitly before the end of the main action, the hClose action returns

Program won't go away!

2000-10-18 Thread George Russell
In the GHC document, section "GHC-specific concurrency issues", it says: In a standalone GHC program, only the main thread is required to terminate in order for the process to terminate. I have a program (which does some fairly complex things with forking processes, calling sockets etcetera)

Re: Depend: fatal error: stg_update_PAP: strange activation record

2000-09-22 Thread George Russell
"Julian Seward (Intl Vendor)" wrote: Sounds like some kind of rts/code generation bug. We fixed a few in 4.08, so the recently released 4.08.1 might work better. As usual the best thing you can do is send us a test case showing the problem; can you do that? Sadly not because this was at

Re: openFile, process file table full

2000-09-11 Thread George Russell
Simon Marlow wrote: I'm of the opinion that readFile/hGetContents are useful for small programs, Personally I think Haskell would be a better language without them. But maybe it's too late now . . .

Re: Blocking I/O FIFOs

2000-05-26 Thread George Russell
Simon Marlow wrote: Grrr. This works: module Main (main) where import IO import Posix import PosixUtil import Concurrent main = do h - openFile "/tmp/fifo" ReadMode fd - handleToFd h threadWaitRead

Re: Blocking I/O FIFOs

2000-05-10 Thread George Russell
Simon Marlow wrote: I can't repeat this problem; on both Linux/x86 and Solaris/Sparc here the Haskell process will block until another process opens the FIFO for writing, and will return EOF after the writing process closes the FIFO. This appears to be correct according to the POSIX spec.

ghc can't make DrIFT

2000-04-18 Thread George Russell
Er what is going on here? CVS sources from this morning, building with GHC binary release. ==fptools== gmake all --no-print-directory -r; in /usr/local/pub-bkb/ghc/fptools/hslibs/tools/DrIFT

Unhelpful Haskell error messages

2000-04-13 Thread George Russell
I think test9: fatal error: resurrectThreads: thread blocked in a strange way qualifies.

The impossible has happened again

2000-04-11 Thread George Russell
This is with a version of GHC downloaded and compiled in the morning of 31st March. I'm attaching the HtmlFrame.hi/ HtmlFrame.hs; let me know if you want more. The .hi file would have been generated with the same compiler options you see here. /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc -c

Re: ghc/rts/RtsUtils.c

2000-04-11 Thread George Russell
George Russell wrote: George Russell wrote: I'm sure I've had problems with Sun's systime functions before . . . ../driver/ghc-inplace -I../includes -I. -Iparallel -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc

Re: ghc/rts/RtsUtils.c

2000-04-10 Thread George Russell
George Russell wrote: I'm sure I've had problems with Sun's systime functions before . . . ../driver/ghc-inplace -I../includes -I. -Iparallel -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc

Profiling.h in the attic

2000-04-04 Thread George Russell
==fptools== gmake boot --no-print-directory -r; in /usr/local/pub-bkb/ghc/fptools/ghc/includes gmake[2]: *** No rule to make target `Profiling.h', needed by `mkNativeHdr.o'. Stop. gmake[1]: *** [boot] Error 1 gmake: ***

Re: Profiling.h in the attic

2000-04-04 Thread George Russell
Simon Marlow wrote: Yes, I removed Profiling.h from ghc/includes and added it to ghc/rts. You might need to 'make boot' Actually it was gmake boot that was falling over. However I seem to have fixed that by doing "gmake depend" in ghc/includes (the .depend file contained the obsolete

ghc/rts/RtsUtils.c

2000-04-03 Thread George Russell
I'm sure I've had problems with Sun's systime functions before . . . ../driver/ghc-inplace -I../includes -I. -Iparallel -optc-Wall -optc-W -optc-Wstrict-prototypes -optc-Wmissing-prototypes -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return -optc-Wpointer-arith

rename/ParseIface doesn't compile with -O

2000-03-30 Thread George Russell
With GHC compiled from the night-before-last's CVS, compiling last-night's CVS, I get ==fptools== gmake all --no-print-directory -r; in /usr/local/pub-bkb/ghc/fptools/ghc/compiler /usr/local/pub-bkb/ghc/ghc-latest/bin/ghc

Re: system.c doesn't compile

2000-03-30 Thread George Russell
I had this bug on Monday, but it's been fixed. Download the binary release (4.06) and try again with the latest sources.

ghc/lib/cbits/system.c doesn't compile

2000-03-27 Thread George Russell
==fptools== gmake all --no-print-directory -r; in /usr/local/pub-bkb/ghc/fptools/ghc/lib/std/cbits ../../../driver/ghc-inplace -O -I../../../includes -I../../../rts -Wall -static-c system.c -o system.o system.c:71:

Re: ghc/compiler/utils/FastString.lhs won't compile (suspect version skew)

2000-03-23 Thread George Russell
Er, has this bug report been lost? It doesn't seem to have been dealt with . . . George Russell wrote: ==fptools== gmake all --no-print-directory -r; in /usr/local/pub-bkb/ghc/fptools/ghc/compiler /usr/local/pub

Re: ghc/compiler/utils/FastString.lhs won't compile (suspect version skew)

2000-03-23 Thread George Russell
Sven Panne wrote: What GHC version are you using for compilation? Due to some library reorganization you have to build 4.07 with 4.06, most of the 4.07 versions from CVS won't compile the current sources. Ah I see. I was indeed building it from 4.07. I'll try going back to 4.06.

Re: ghc/compiler/utils/FastString.lhs won't compile (suspect version skew)

2000-03-20 Thread George Russell
Oh, I forgot to say. This is compiling the latest (as of the weekend) GHC with GHC compiled from CVS on 10th March.

Re: gmp configure (fwd)

2000-03-16 Thread George Russell
Reuben Thomas wrote: I already came across this, and Sigbjørn sent me a fix, which should soon be in CVS. Just in case it's not, it follows below. I found that I also needed to change rts/gmp/configure.in so that the first call to AC_INIT occurred after the setting of the three variables

Re: gmp configure (fwd)

2000-03-16 Thread George Russell
Simon Marlow wrote: What version of autoconf is this, just out of interest? autoconf --version Autoconf version 2.13 Oh no, don't tell me I've got to install a private copy of yet another bit of software to compile GHC . . .

Re: gmp configure (fwd)

2000-03-16 Thread George Russell
Simon Marlow wrote: It builds fine for me here with autoconf 2.13 on Solaris. Perhaps you have some old configure files lying around in ghc/rts/gmp/*. Try blowing away your gmp subtree and starting again. After deleting the whole of ghc, rerunning autoconf several times (why isn't this done

Re: gmp configure (fwd)

2000-03-15 Thread George Russell
Reuben Thomas wrote: I already came across this, and Sigbjørn sent me a fix, which should soon be in CVS. Just in case it's not, it follows below. I found that I also needed to change rts/gmp/configure.in so that the first call to AC_INIT occurred after the setting of the three variables

threadWaitRead on a closed Fd - - -

2000-03-15 Thread George Russell
causes the entire program to crash. (Not just the thread that is doing the threadWaitRead.) Is this not a little drastic? To run the attached code use ghc -syslib posix -syslib concurrent -cpp ThreadWaitFail.hs -o TWF ./TWF ThreadWaitFail.hs

Re: FastString.lhs:629: parse error on input `#'

2000-03-13 Thread George Russell
Marc van Dongen wrote: Hi again, When trying to build ghc from cvs (cvs update, make clean, etc) I got: ==fptools== make all - --no-print-directory -r; in /newdisk/dongen/cvs/fptools/ghc/compiler

  1   2   >