logo       

[ ghc-Bugs-1199529 ] ghc --make panic on fptools/ghc/compiler/Lexer.hs: msg#00054

lang.haskell.glasgow.bugs

Subject: [ ghc-Bugs-1199529 ] ghc --make panic on fptools/ghc/compiler/Lexer.hs

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

Category: Compiler
Group: 6.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghc --make panic on fptools/ghc/compiler/Lexer.hs

Initial Comment:
I am trying to use ghc's lexer in my own project. When
building module that imports Lexer module I am getting
this error:

ghc-6.4: panic! (the `impossible' happened, GHC version
6.4):
expectJust upsweep_mod:old_linkable


My reproduction project(attached) consists of two files:

Main.hs
========>
module Main where



import Lexer



main = putStrLn "hello"
<=========
and Makefile.

You may have to edit Makefile to provide the correct
path to the fptools folder. Running make demonstrates
the error.

I am using ghc-6.4 on gentoo.

Thank you,
Pavel [pavelzolnikov at yahoo dot com]


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

>Comment By: Simon Marlow (simonmar)
Date: 2005-05-12 10:21

Message:
Logged In: YES
user_id=48280

I believe this is an instance of a bug that has already been
fixed. The problem is that modules referred to from the
.hi-boot files in GHC were not automatically being compiled
in. It works with the latest GHC STABLE snapshot, anyway.

Also, I suspect that what you are doing is somewhat fragile:
those parts of GHC weren't really intended to be extracted
and used separately. Have fun, but don't expect it to "just
work"!


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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1199529&group_id=8032


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise