RE: installing ghc without already having ghc

On 08 April 2005 17:20, Jessica Brennan wrote:
On Fri, 8 Apr 2005, Tim Smith wrote:
On 2005 Apr 07, Jessica Brennan [staff]
wrote: I am trying to install ghc-6.4 on netbsd20. I read through the install instructions, however they say you need a working copy of ghc already.
I'd probably look here first:
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/lang/ghc/README.html
I expect that package should work for you; even if it doesn't, you should be able to use the work done there as a good starting point.
Thanks with that binary I was able to build the program that I needed, though I still wasn't able to build ghc from the source.
Anything we can help with? Cheers, Simon

Anything we can help with?
I was able to get a binary for netbsd20 working. However with building it
I get a few errors. So I tried doing the cross compiling an unregistered
version, but I get the same errors in the same spot.
-----------------------------------------------------------------------
==fptools== gmake all -wr;
in /devel/build/NetBSD/ghc/ghc-6.4/ghc/compiler
------------------------------------------------------------------------
test: unknownunknown: bad number
test: unknownunknown: bad number
test: unknownunknown: bad number
test: unknownunknown: bad number
test: unknownunknown: bad number
test: unknownunknown: bad number
test: unknownunknown: bad number
/usr/local/bin/ghc -H16m -O -H32m -istage1/utils -istage1/basicTypes
-istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename
-istage1/typecheck -istage1/deSugar -istage1/coreSyn
-istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn
-istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling
-istage1/parser -istage1/cprAnalysis -istage1/compMan
-istage1/ndpFlatten -istage1/iface -istage1/cmm -Istage1
-DOMIT_NATIVE_CODEGEN -cpp -fglasgow-exts -fno-generics -Rghc-timing -I.
-IcodeGen -InativeGen -Iparser -package posix -fvia-C -recomp -Rghc-timing
-O -fasm -H16M '-#include "hschooks.h"' -i../lib/compat -c
utils/PrimPacked.lhs -o stage1/utils/PrimPacked.o -ohi
stage1/utils/PrimPacked.hi
utils/PrimPacked.lhs:244:
Warning: foreign declaration uses deprecated non-standard syntax
utils/PrimPacked.lhs:248:
Warning: foreign declaration uses deprecated non-standard syntax
utils/PrimPacked.lhs:251:
Warning: foreign declaration uses deprecated non-standard syntax
utils/PrimPacked.lhs:254:
Warning: foreign declaration uses deprecated non-standard syntax
utils/PrimPacked.lhs:257:
Warning: foreign declaration uses deprecated non-standard syntax
ghc-6.2.1: panic! (the `impossible' happened, GHC version 6.2.1):
This compiler was built without a native code generator
Use -fvia-C instead
Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
<
participants (2)
-
Jessica Brennan [staff]
-
Simon Marlow