
Hi, Sorry for the newbie question ... I'm trying to build the compiler and I'm getting the following error: [root@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? Thanks, Mark

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@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: http://haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html#sec-boo... 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. Duncan

Hi DUncan,
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?
Thanks,
Mark
/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'
<
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@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:
http://haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html#sec-boo...
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.
Duncan

On Thu, 2006-03-16 at 13:22 -0500, Mark Greenbank wrote:
Hi DUncan,
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?
You'll have to be very specific about exactly what procedures you're following. Porting ghc to a new platform is a bit tricky and there are many ways it can go wrong, especially if one doesn't exactly follow the recommended procedures. So you're now doing what exactly? Building ghc on your linux box? Is that just an ordinary build (which should work fine) or are you using special config options etc. you're following these instructions? http://haskell.org/ghc/docs/6.4.1/html/building/sec-porting-ghc.html#unregis... What stage are you at? Duncan
participants (2)
-
Duncan Coutts
-
Mark Greenbank