Opened 8 years ago

Last modified 3 years ago

#670 new bug

External Core is broken

Reported by: KirstenChevalier Owned by: tim
Priority: normal Milestone:
Component: External Core Version: 6.8.2
Keywords: Cc: ndmitchell@…, chevalier@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: GHC rejects valid program Difficulty: Moderate (less than a day)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

$ ghc -fext-core Main.hs
$ ghc -fglasgow-exts Main.hcr
ghc-6.5: panic! (the `impossible' happened, GHC version 6.5):
	tcIfaceGlobal (local): not found:
    Main.main{v rrl}
    []

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.

Main.hs consists of:
main = putStr "Hello world!"

I'll fix this myself if I still have commit access; I just want to have a record of it.

Attachments (1)

update-ghc-version-mentioned-in-the-user-guide_.dpatch (15.8 KB) - added by michalt 3 years ago.
Update the GHC version mentioned in the user guide.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 7 years ago by simonmar

  • Component changed from Compiler (Parser) to External Core

comment:2 Changed 7 years ago by igloo

  • Milestone set to 6.6.1

6.6 and HEAD both give:

<no location info>:
    1: Parse error
:
  main :: base:GHC.IOBase.IO base:GHC.Base.Z0T =
    base:System.IO.putStr
    (base:GHC.Base.unpac

comment:3 Changed 7 years ago by igloo

  • Milestone changed from 6.6.1 to 6.8

Aaron Tomb and Tim Chevalier are working on this for 6.8.

comment:4 Changed 6 years ago by simonmar

  • Milestone changed from 6.8 branch to 6.10 branch

Optimistically hoping that we might get external core working in 6.10.

comment:5 Changed 6 years ago by tim

Optimism is always good. I'll see how Aaron is doing on this.
-Tim

comment:6 Changed 6 years ago by guest

  • Cc ndmitchell@… added

comment:7 Changed 6 years ago by tim

  • Cc chevalier@… added
  • Owner changed from krc to tim
  • Status changed from new to assigned
  • Version changed from 6.4.1 to 6.8.2

Here's the state of things: The output path (printing out External Core) should work in the HEAD. I am currently trying to verify that and to update the ext-core documentation.

The input path (reading in External Core) is a difficult problem. Aaron and I are both punting on it, for the immediate future. I would be happy to go into the deep reasons why this is hard, but I think you may know already, and am not sure how important this is to anyone.

I am going to update the GHC manual to reflect that the input path isn't working and there are no immediate plans to fix it.

  • Tim

comment:8 Changed 6 years ago by simonmar

  • Architecture changed from Multiple to Unknown/Multiple

comment:9 Changed 6 years ago by simonmar

  • Operating System changed from Multiple to Unknown/Multiple

comment:10 Changed 5 years ago by igloo

  • Milestone changed from 6.10 branch to 6.12 branch

comment:11 Changed 4 years ago by simonmar

  • Difficulty changed from Moderate (1 day) to Moderate (less than a day)

comment:12 Changed 4 years ago by igloo

  • Milestone changed from 6.12 branch to 6.12.3

comment:13 Changed 4 years ago by igloo

  • Milestone changed from 6.12.3 to _|_
  • Priority changed from low to normal
  • Type of failure set to None/Unknown

Changed 3 years ago by michalt

Update the GHC version mentioned in the user guide.

comment:14 Changed 3 years ago by zzo38

  • Type of failure changed from None/Unknown to GHC rejects valid program

I want to be able to replace the entire front-end, so it could help if you can load external core files produced by the replaced front-end program

Note: See TracTickets for help on using tickets.