logo       

Re: [GHC] #631: deriving show fails in ghci/ppc: msg#00052

lang.haskell.glasgow.bugs

Subject: Re: [GHC] #631: deriving show fails in ghci/ppc

#631: deriving show fails in ghci/ppc
----------------------------------+-----------------------------------------
Reporter: trentbuck@xxxxxxxxx | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.4.1
Severity: major | Resolution:
Keywords: | Os: Linux
Difficulty: Unknown | Architecture: powerpc
----------------------------------+-----------------------------------------
Comment (by simonpj):

[I'm adding this comment on behalf of Ian, who couldn't for some reason.]

On Thu, Mar 02, 2006 at 12:28:48PM +0000, Simon Marlow wrote:
{{{
> Ian Lynagh wrote:
>
> >Currently I have this for most arches:
> >
> > echo "GhcUnregisterised=YES" >> mk/build.mk
> > echo "SplitObjs=NO" >> mk/build.mk
> >
> >I'll add
> >
> > echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
> >
> >Is there anything else you'd recommend?
>
> Does GHCi work on an unregisterised build? If it does, I'm pleasantly
> surprised :-) If not, you probably want GhcWithInterpreter=NO too.
}}}
It doesn't seem to entirely not work, e.g. things like
{{{
map Char.ord "foo"
}}}
are fine, but it also doesn't entirely work, e.g. bug #631.

With
{{{
echo "GhcUnregisterised=YES" >> mk/build.mk
echo "GhcWithNativeCodeGen=NO" >> mk/build.mk
echo "SplitObjs=NO" >> mk/build.mk
}}}
on a powerpc:
{{{
igloo@bruckner:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> f
Segmentation fault
igloo@bruckner:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> map Char.ord "foo"
[102,111,111]
*Main> print (D 'a')
<interactive>: internal error: scavenge_one: strange object 32137
Please report this as a bug to glasgow-haskell-bugs@xxxxxxxxxxx,
or http://www.sourceforge.net/projects/ghc/
igloo@bruckner:~$
}}}
and on a sparc:
{{{
igloo@vore:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> f
Bus error
igloo@vore:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> map Char.ord "foo"
[102,111,111]
*Main> print (D 'a')
<interactive>: internal error: scavenge_one: strange object 33216
Please report this as a bug to glasgow-haskell-bugs@xxxxxxxxxxx,
or http://www.sourceforge.net/projects/ghc/
igloo@vore:~$
}}}

I haven't tried on x86/amd64 with the above build.mk. Is this something
you'll look into fixing, or should I just drop ghci too?


Thanks
Ian

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/631>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise