Somebody claiming to be Nathan Hüsken wrote:
ghc build stage1 succeeds, stage2 fails with:
IIRC, stage2 does not work with cross-compiling.
Time.hsc: In function '_hsc2hs_test45': Time.hsc:266:20: error: storage size of 'test_array' isn't constant
Which Time.hsc?
But if I understand correctly, that is not so bad because stage1 is already the cross compiler that I need (linux->android), correct?
Almost. You need stage1 and the stage1 libraries.
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!"
I believe that this should work. I usually symlink to ghc and put the dir in PATH, but that shouldn't change anything.
wired-in package base mapped to base-4.7.0.0-inplace
Looks like it thinks base got built.
wired-in package base mapped to base-4.7.0.0-inplace 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
Hmm. Perhaps the libraries did *not* in fact build properly. What happens when you try to build by itself?
Indeed, /home/ls/src/ghc-7.7.20121213/libraries/base/dist-install/build/Prelude.hi does not exist.
-- Stephen Paul Weber, @singpolyma See <http://singpolyma.net> for how I prefer to be contacted edition right joseph _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc