newbie: building ghc
mark.greenbank at gmail.com
Thu Mar 16 13:22:45 EST 2006
Thanks for the help.
I've installed a ghc compiler on my Linux box in order to cross-compile and
I'm getting the following error. Any ideas?
/usr/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
-ignore-package lang -recomp -Rghc-timing -O -H16M '-#include "hschooks.h"'
-i../lib/compat -ignore-package Cabal -c codeGen/SMRep.lhs -o
stage1/codeGen/SMRep.o -ohi stage1/codeGen/SMRep.hi
codeGen/SMRep.lhs:283:45: Not in scope: `sIZEOF_StgArrWords_NoHdr'
codeGen/SMRep.lhs:286:45: Not in scope: `sIZEOF_StgMutArrPtrs_NoHdr'
<<ghc: 36354068 bytes, 11 GCs, 1230306/2368276 avg/max bytes residency (2
samples), 17M in use, 0.00 INIT (0.00 elapsed), 0.11 MUT (0.15 elapsed),
0.11 GC (0.10 elapsed) :ghc>>
make: *** [stage1/codeGen/SMRep.o] Error 1
make: *** [all] Error 1
On 3/15/06, Duncan Coutts <duncan.coutts at worc.ox.ac.uk> wrote:
> On Wed, 2006-03-15 at 17:22 -0500, Mark Greenbank wrote:
> > Hi,
> > Sorry for the newbie question ... I'm trying to build the compiler and
> > I'm getting the following error:
> > [root at quark ghc-6.4.1]# ./configure --prefix=/usr/pkg
> > checking build system type... i386-pc-solaris2.10
> > checking host system type... i386-pc-solaris2.10
> > checking target system type... i386-pc-solaris2.10
> > Canonicalised to: i386-unknown-solaris2
> > checking for path to top of build tree... /usr/pkg/src/ghc-6.4.1
> > checking for ghc... no
> > checking for nhc... no
> > checking for nhc98... no
> > checking for hbc... no
> > configure: error: GHC is required unless bootstrapping from .hc files.
> > Does this somehow mean that I need the compiler in order to build the
> > compiler?
> Generally yes.
> You should start with a binary version of ghc and if you like you can
> then use that to rebuild from source (or to build a newer version).
> This is how it works with most of the source based distros (eg Gentoo,
> FreeBSD). Another possibility is to boot from .hc files but if there is
> a binary available for your platform then that's the easiest method.
> I see you're using Solaris on x86. I recall someone on this list having
> got it bootstrapped before. If no one does have a build available then
> you'll need to follow these porting instructions:
> It should be possible to make it work since there are builds for Solaris
> on sparc and for other OSs on x86 and x86_64.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Glasgow-haskell-users