[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Accepted ghc 7.8.20140710-1 (source all amd64)



Joey Hess wrote:
> I am trying the gold bootstrapping script on abel now.
> I suppose it will take a while.

That script successfully built the stage2 compiler, and only eventually failed
building haddock:

/home/joeyh/tmp/ghc-7.8.3/compiler/stage2/build/libHSghc-7.8.3-ghc7.8.3.so: error: undefined reference to 'arm_atomic_spin_lock'
/home/joeyh/tmp/ghc-7.8.3/compiler/stage2/build/libHSghc-7.8.3-ghc7.8.3.so: error: undefined reference to 'arm_atomic_spin_unlock'

Those are guarded by a defined(arm_HOST_ARCH_PRE_ARMv6) so it should
be easy to fix.

Despite this failure, ghc seems to basically work. It can build hello world.

More impressively, ghci really works! So TH should work too.. On arm!

(sid_armel-dchroot)joeyh@abel:~/tmp/ghc-7.8.3$ inplace/bin/ghc-stage2 --interactive
GHCi, version 7.8.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :m Data.List
Prelude Data.List> sort "joey"
"ejoy"
Prelude> data Type a = Nothing
Prelude> :i Type
type role Type phantom
data Type a = Nothing
        -- Defined at <interactive>:2:1

So looks like https://ghc.haskell.org/trac/ghc/ticket/7794 is really fixed too.

Now I'm trying to use this compiler to build the ghc package.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


Reply to: