#631: deriving show fails in ghci/ppc
----------------------------------+-----------------------------------------
Reporter: [EMAIL PROTECTED] | 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:
{{{
[EMAIL PROTECTED]:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> f
Segmentation fault
[EMAIL PROTECTED]:~$ 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@haskell.org,
or http://www.sourceforge.net/projects/ghc/
[EMAIL PROTECTED]:~$
}}}
and on a sparc:
{{{
[EMAIL PROTECTED]:~$ ghci bug.hs
[...]
Compiling Main ( bug.hs, interpreted )
Ok, modules loaded: Main.
*Main> f
Bus error
[EMAIL PROTECTED]:~$ 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@haskell.org,
or http://www.sourceforge.net/projects/ghc/
[EMAIL PROTECTED]:~$
}}}
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@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs