I'm able to reproduce this with a stage1 build (built using
ghc-5.02.3), but not a stage2 build. Looks as if
parser/ParserCore.y is tickling a bug in 5.02.3 - try
regenerating parser/ParserCore.hs with Happy, but
stay away from the -c option - e.g.,

   foo$ happy -g parser/ParserCore.y

followed by a re-make in ghc/compiler. That "solves"
the problem for me.

--sigbjorn

----- Original Message -----
From: "Kirsten Chevalier" <[EMAIL PROTECTED]>
To: "Sigbjorn Finne" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 17:26
Subject: Re: External Core front-end in GHC 5.03


> On Wed, May 08, 2002 at 07:18:17AM -0700, Sigbjorn Finne wrote:
> > Hi,
> >
> > I'm unable to reproduce this here (with a 2002-05-07 HEAD build.)
> > Make sure no interface files from earlier GHC builds are in scope;
> > the -dshow-passes output you give hints that this _might_ be the cause.
> >
>
> I'm still having the same problem -- I tried the newest version of GHC
from
> CVS (as of today), as well as the April 11 snapshot (ghc-5.03.20020410). I
> don't think that any older interface files are in scope -- at least, there
are
> none in the same directory as the program being compiled. Any other ideas?
>
> Thanks,
> Kirsten
> (my original message is below)
>
> > ----- Original Message -----
> > From: "Kirsten Chevalier" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, May 03, 2002 15:39
> > Subject: External Core front-end in GHC 5.03
> >
> >
> > > Hi,
> > > I just downloaded and built the latest version of GHC from the CVS
> > repository
> > > yesterday and tried to use it to compile an external Core file, which
> > caused
> > > the compiler to crash:
> > >
> > > $ ghc -fext-core -fno-code hello.hs
> > > $ ghc hello.hcr
> > > Segmentation fault
> > >
> > > I know that the external Core feature is still a work in progress, but
is
> > > there something I should be doing differently or is it totally broken?
> > Here
> > > are the relevant details:
> > >
> > > $ uname -a
> > > Linux puma 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown
> > >
> > > $ gcc -v
> > > Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> > > gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
> > >
> > > and the results of compiling with -v:
> > > $ ghc -v hello.hcr
> > > Glasgow Haskell Compiler, Version 5.03, for Haskell 98, compiled by
GHC
> > version 5.02.1
> > > Using package config file:
> >
/home/crete/lumberjacks3/krc/ghc/fptools-build/ghc/driver/package.conf.inpla
> > ce
> > >
> > > ==================== Packages ====================
> > > <package stuff snipped>
> > >
> > > Hsc static
> >
flags: -static -fignore-interface-pragmas -fomit-interface-pragmas -fdo-lamb
> > da-eta-expansion -flet-no-escape
> > > *** Checking old interface for hs = Just "hello.hcr", hspp = Just
> > "hello.hcr":
> > > *** Renamer:
> > > Segmentation fault
> > >
> > > The program I'm trying to compile is just:
> > >
> > > main = putStr "Hello world!"
> > >
> > > Thanks,
> > > Kirsten
> > >
>
> --
> Kirsten Chevalier * [EMAIL PROTECTED] * Often in error, never in
doubt
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to