Hey,
OK, I got a lot further.
ghc build stage1 succeeds, stage2 fails with:
Time.hsc: In function '_hsc2hs_test45':
Time.hsc:266:20: error: storage size of 'test_array' isn't constant
But if I understand correctly, that is not so bad because stage1 is
already the cross compiler that I need (linux->android), correct?
Ok, so I try to use it. I got to inplace/bin and do
./ghc-stage1 Main.hs
where the contents of Main.hs are:
putStrLn "Hello, World!"
Then I get this error message:
Glasgow Haskell Compiler, Version 7.7.20121213, stage 1 booted by GHC
version 7.4.2
Using binary package database:
/home/ls/src/ghc-7.7.20121213/inplace/lib/package.conf.d/package.cache
wired-in package ghc-prim mapped to ghc-prim-0.3.1.0-inplace
wired-in package integer-simple mapped to integer-simple-0.1.1.0-inplace
wired-in package base mapped to base-4.7.0.0-inplace
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-2.9.0.0-inplace
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags:
wired-in package ghc-prim mapped to ghc-prim-0.3.1.0-inplace
wired-in package integer-simple mapped to integer-simple-0.1.1.0-inplace
wired-in package base mapped to base-4.7.0.0-inplace
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-2.9.0.0-inplace
wired-in package dph-seq not found.
wired-in package dph-par not found.
*** Chasing dependencies:
Chasing modules from: *Main.hs
Main.hs:1:1:
Could not find module `Prelude'
There are files missing in the `base' package,
try running 'ghc-pkg check'.
Locations searched:
Prelude.hs
Prelude.lhs
/home/ls/src/ghc-7.7.20121213/libraries/base/dist-install/build/Prelude.hi
*** Deleting temp files:
Deleting:
*** Deleting temp dirs:
Deleting:
Indeed,
/home/ls/src/ghc-7.7.20121213/libraries/base/dist-install/build/Prelude.hi
does not exist.
Do I have stage2 to get working?
Thanks!
Nathan
_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc