Re: stg_ap_v_ret porting crash: solved?

2003-09-10 Thread Matt Chapman
On Thu, Sep 11, 2003 at 02:06:57AM +0100, Ian Lynagh wrote:
> 
> Bootstrapping IA64 from x86 (with numerous patches from CVS) looks like
> it is working fine, although I am getting
> 
> ghc-6.0.1(9371): unaligned access to 0x41e6177a, ip=0x40dd46c1
> 
> when compiling even hello world with optimisation. The result seems to
> work fine though. Is this expected? Or maybe I missed a patch?

Hmm, no, I don't get any unaligned accesses.  My tree is a few months old though,
I will update and check.

Matt

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


Re: stg_ap_v_ret porting crash: solved?

2003-09-10 Thread Donald Bruce Stewart
igloo:
> On Wed, Sep 10, 2003 at 08:31:40AM +1000, Donald Bruce Stewart wrote:
> > 
> > Following the new guide, and the new distrib/hc-build, with the
> > fix to .hc file generation on the host that Simon sorted out yesterday.
> > 
> > This generated a working sparc binary. That compiler in turn is
> > recompiling the libraries and generating new .hi files.
> 
> Looks like it's working here too  :-)

The sparc isn't entirely well-behaved. The unregisterised
compiler seems fine, but the first go at building a registerised
GHC built a stage1 compiler that "couldn't allocate memory".

However, I was being ambitious and had turned on everything:
nativeGen, ghci, regs, tail calls etc. I'm being more cautious
second time around.

I'm having a go at alpha (osf3) too, I'll let you know.

As an aside: I'll post bin-dists when registersied builds work.

-- Don
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: stg_ap_v_ret porting crash: solved?

2003-09-10 Thread Ian Lynagh
On Wed, Sep 10, 2003 at 08:31:40AM +1000, Donald Bruce Stewart wrote:
> 
> Following the new guide, and the new distrib/hc-build, with the
> fix to .hc file generation on the host that Simon sorted out yesterday.
> 
> This generated a working sparc binary. That compiler in turn is
> recompiling the libraries and generating new .hi files.

Looks like it's working here too  :-)

Bootstrapping IA64 from x86 (with numerous patches from CVS) looks like
it is working fine, although I am getting

ghc-6.0.1(9371): unaligned access to 0x41e6177a, ip=0x40dd46c1

when compiling even hello world with optimisation. The result seems to
work fine though. Is this expected? Or maybe I missed a patch?
[Added Matt Chapman to the CC list]


Things aren't so easy with alpha as gcc rejects the -mieee flag when GHC
calls gcc for -cpp'ing. I fear a nasty hacky wrapper may be in order.


Ian

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


RE: Syntax extensions (was: RE: The Future of Haskell discussion at the Haskell Workshop)

2003-09-10 Thread Simon Marlow
[ moved to ghc-users ] 

> On Wednesday 10 September 2003 07:22 am, Hal Daume III wrote:
> > I agree with Malcolm, with the possible addition of:
> >
> >   keep -fglasgow-exts as it is (or, even, perhaps continue 
> making it the
> > "add all extensions keyword).  also have -fffi, -farrows, -fth, etc.
> > but also have, -fnoth and -fnoffi.  that way, if a lot of 
> us have code
> > that uses all the extensions other than TH and have lots of 
> code that
> > looks like (foo$bar), we can just to -fglasgow-exts -fnoth.
> >
> > seems to be a win-win.
> 
> I agree; I want a catch-all flag, but I also want to 
> flexibility to be able 
> to pick and choose.  Both -f and -fno is 
> the way to go IMHO.

Ok, I've added -fth and -fimplicit-params (and the appropriate -fno-
forms).  The -fglasgow-exts flag will continue to imply these for the
time being, so nothing should break.

Cheers,
Simon
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: stg_ap_v_ret porting crash: solved?

2003-09-10 Thread Simon Marlow
 
>   $ uname -msr
>   OpenBSD 3.3 sparc
> 
>   $ cat > test.hs 
>   import System.Info
>   main = print System.Info.arch >> print System.Info.os
> 
>   $ 
> /usr/obj/ports/ghc-6.0.1/ghc-6.0.1/ghc/compiler/ghc-inplace test.hs
> 
>   $ ./a.out 
>   "sparc"
>   "openbsd"

Congrats :-)  Would you like to add this port to the relevant section of
the Building Guide?

Cheers,
Simon
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users