RE: installing ghc without already having ghc

On 11 April 2005 16:25, Jessica Brennan [staff] wrote:
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
Which step of the bootstrap is this? It looks like the configure script has failed to detect the version of GHC installed on your system. Cheers, Simon

Which step of the bootstrap is this? It looks like the configure script has failed to detect the version of GHC installed on your system.
cd H/ghc && make boot && make
in section 10.2.1 of the build guide.
Actually I just double checked and I don't get those lines of the error
when doing cross-compiling.
Sorry grabbed the first set of errors I saw. It is the same minus those
test messages for the cross-compiling:
------------------------------------------------------------------------
==fptools== gmake all -r;
in /devel/build/NetBSD/ghc/ghc-6.4-host/ghc/compiler
------------------------------------------------------------------------
/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 unix -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