Duncan Coutts | 3 Mar 2005 23:17
Picon
Picon
Favicon

ghc-6.4 -M does not respect {-# OPTIONS -fglasgow-exts #-} pragma

Hi,

In ghc 6.4 using -M mode it appears to be stricter when parsing the
files looking for dependencies. In particular importing things with '#'
suffixes eg:

import GHC.Really.Really.Internal.Dont.Touch (unsafeNastyThing#)

did not require the -fglasgow-exts option. In ghc 6.4 it does require
this (which is not unreasonable).

However then it does not look at the {-# OPTIONS -fglasgow-exts #-}
pragma at the top of the file.

I'll go fix my build system to always supply -fglasgow-exts when
calculating dependencies.

Duncan
SourceForge.net | 4 Mar 2005 00:50
Picon
Favicon

[ ghc-Bugs-1035575 ] Parallel array comprehension related crash

Bugs item #1035575, was opened at 2004-09-27 16:33
Message generated for change (Comment added) made by chak
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1035575&group_id=8032

Category: Compiler
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 4
Submitted By: Einar Karttunen (ekarttun)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parallel array comprehension related crash

Initial Comment:
The following code panics with both 6.2 and the Debian
ghc-cvs snapshot. The problem appears to be in
the comprehension.

{-# OPTIONS -fparr -fglasgow-exts #-}
module Main (main) where

import GHC.PArr

ary = let arr1 = toP [1..10]
	  arr2 = toP [1..10]
	  f = [: i1 + i2 | i1 <- arr1 | i2 <- arr2 :]
	  in f !: 1

main = print ary
(Continue reading)

SourceForge.net | 4 Mar 2005 11:03
Picon
Favicon

[ ghc-Bugs-1156554 ] GHCi: No instance for (Show (IO ()))

Bugs item #1156554, was opened at 2005-03-04 10:03
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1156554&group_id=8032

Category: GHCi
Group: 6.4
Status: Open
Resolution: None
Priority: 4
Submitted By: Simon Marlow (simonmar)
Assigned to: Nobody/Anonymous (nobody)
Summary: GHCi: No instance for (Show (IO ()))

Initial Comment:
>From Wolfgang Thaller:

This behaviour (from today's stable branch) is slightly
confusing:

> Prelude> print id
>
> Top level:
>     No instance for (Show (IO ()))
>       arising from use of `print' at Top level
>     Probable fix: add an instance declaration for
(Show (IO ()))
>     In a 'do' expression: print it
>
> <interactive>:1:0:
(Continue reading)

Jens Petersen | 3 Mar 2005 06:10
Picon

adjustor creation not supported on x86_64

Hi,

I built and installed wxhaskell-0.9 with ghc-6.2.2 on x86_64.
When I link a sample program and try to run it however,
I get:

wxhaskell-0.9/samples/wx% ./a.out
a.out: internal error: adjustor creation not supported on this platform
     Please report this as a bug to glasgow-haskell-bugs <at> haskell.org,
     or http://www.sourceforge.net/projects/ghc/

Jens
Simon Marlow | 4 Mar 2005 11:49
Picon
Favicon

RE: ghc-6.4 -M does not respect {-# OPTIONS -fglasgow-exts #-} pragma

On 03 March 2005 22:18, Duncan Coutts wrote:

> In ghc 6.4 using -M mode it appears to be stricter when parsing the
> files looking for dependencies. In particular importing things with
> '#' suffixes eg:
> 
> import GHC.Really.Really.Internal.Dont.Touch (unsafeNastyThing#)
> 
> did not require the -fglasgow-exts option. In ghc 6.4 it does require
> this (which is not unreasonable).
> 
> However then it does not look at the {-# OPTIONS -fglasgow-exts #-}
> pragma at the top of the file.
> 
> I'll go fix my build system to always supply -fglasgow-exts when
> calculating dependencies.

Strange... it works for me.  ghc -M now uses the same machinery as
--make when calculating the dependency graph, so {-# OPTIONS #-} should
work as normal.

Can you send us the source file that fails?

Cheers,
	Simon
SourceForge.net | 4 Mar 2005 12:17
Picon
Favicon

[ ghc-Bugs-1153674 ] #line pragmas not respected inside nested comments

Bugs item #1153674, was opened at 2005-02-28 18:09
Message generated for change (Comment added) made by simonmar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1153674&group_id=8032

Category: Compiler (Parser)
>Group: 6.4
Status: Open
Resolution: None
>Priority: 3
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Simon Marlow (simonmar)
>Summary: #line pragmas not respected inside nested comments

Initial Comment:
If one tries to compile a .hs file, with the -cpp
option and the file contains
C-style comments (/* comment */), then the linenumbers
GHC reports
are wrong. 

Minimal file exhibiting the error:

---
{-
/*
 * Copyright (c) 2005 Jesper Louis Andersen
<jlouis <at> mongers.org>
 *
 * Permission to use, copy, modify, and distribute this
(Continue reading)

SourceForge.net | 4 Mar 2005 12:21
Picon
Favicon

[ ghc-Bugs-1156596 ] Simplifier doesn't preserve bottoms sometimes

Bugs item #1156596, was opened at 2005-03-04 11:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1156596&group_id=8032

Category: Compiler
Group: 6.4
Status: Open
Resolution: None
Priority: 4
Submitted By: Simon Marlow (simonmar)
Assigned to: Simon Peyton Jones (simonpj)
Summary: Simplifier doesn't preserve bottoms sometimes

Initial Comment:
Here's a test due to Iavor Diatchki
[iavor.diatchki <at> gmail.com]:

>> test2  :: Bool
>> test2   = stops (bot ())
>>   where
>>   stops  :: Int# -> Bool
>>   stops _ = True

ghc 6.4 gives the value True for test2.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1156596&group_id=8032
(Continue reading)

SourceForge.net | 4 Mar 2005 12:22
Picon
Favicon

[ ghc-Bugs-1122207 ] EVACUATED object entered!

Bugs item #1122207, was opened at 2005-02-14 08:11
Message generated for change (Comment added) made by simonmar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1122207&group_id=8032

Category: None
Group: 6.2.2
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Manpreet Singh (manpreet)
Assigned to: Nobody/Anonymous (nobody)
Summary: EVACUATED object entered!

Initial Comment:
 darcs.exe: internal error: EVACUATED object entered!
Please report this as a bug to
glasgow-haskell-bugs <at> haskell.org,
http://www.sourceforge.net/projects/ghc/

----------------------------------------------------------------------

>Comment By: Simon Marlow (simonmar)
Date: 2005-03-04 11:22

Message:
Logged In: YES 
user_id=48280

No chance to reproduce.
(Continue reading)

SourceForge.net | 4 Mar 2005 12:31
Picon
Favicon

[ ghc-Bugs-1153674 ] #line pragmas not respected inside nested comments

Bugs item #1153674, was opened at 2005-02-28 18:09
Message generated for change (Comment added) made by malcolmwallace
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1153674&group_id=8032

Category: Compiler (Parser)
Group: 6.4
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Simon Marlow (simonmar)
Summary: #line pragmas not respected inside nested comments

Initial Comment:
If one tries to compile a .hs file, with the -cpp
option and the file contains
C-style comments (/* comment */), then the linenumbers
GHC reports
are wrong. 

Minimal file exhibiting the error:

---
{-
/*
 * Copyright (c) 2005 Jesper Louis Andersen
<jlouis <at> mongers.org>
 *
 * Permission to use, copy, modify, and distribute this
(Continue reading)

Duncan Coutts | 4 Mar 2005 15:36
Picon
Picon
Favicon

RE: ghc-6.4 -M does not respect {-# OPTIONS -fglasgow-exts #-} pragma

On Fri, 2005-03-04 at 10:49 +0000, Simon Marlow wrote:
> > However then it does not look at the {-# OPTIONS -fglasgow-exts #-}
> > pragma at the top of the file.

> Strange... it works for me.  ghc -M now uses the same machinery as
> --make when calculating the dependency graph, so {-# OPTIONS #-} should
> work as normal.
> 
> Can you send us the source file that fails?

Ah, you're quite right. The reason the option is not recognised is
because there is a comment on the same line:

{-# OPTIONS -fglasgow-exts #-}  --due to use of unsafeCoerce#

When I strip off the comment it works.

I didn't notice it was not working previously since the Makefile
specifies -fglasgow-exts when compiling the file (but not when
calculating deps).

Duncan

Gmane