GHC-6.4.1 on FreeBSD-amd64 port progress
Simon Marlow
simonmar at microsoft.com
Wed Oct 19 05:07:00 EDT 2005
On 18 October 2005 20:26, Wilhelm B. Kloke wrote:
> Simon Marlow <simonmar at microsoft.com> schrieb:
>>
>> At this point you can either do 'make install stage=1', or you can
>> just use the compiler you built to build a clean GHC in another
>> tree, i.e. with ./configure
>> --with-ghc=/path/to/bootstrap/ghc/compiler/ghc-inplace.
>
> Now I am getting the following really strange error message:
>
> ==fptools== gmake all -wr;
> in /data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/ghc/compiler
>
------------------------------------------------------------------------
> /data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/ghc/compiler/ghc-inplace
> -H16m -O -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/nativeGen -istage1/ghci -Istage1 -DGHCI -package
> template-haskell -package readline -DUSE_READLINE -cpp -fglasgow-exts
> -fno-generics -Rghc-timing -I. -IcodeGen -InativeGen -Iparser
> -package unix -ignore-package lang -recomp -Rghc-timing -H16M
> '-#include "hschooks.h"' -i../lib/compat -ignore-package Cabal -H80m
> -c prelude/PrimOp.lhs -o stage1/prelude/PrimOp.o -ohi
> stage1/prelude/PrimOp.hi
>
> prelude/PrimOp.lhs:104:0: parse error (possibly incorrect indentation)
> <<ghc: 30809992 bytes, 2 GCs, 129776/129776 avg/max bytes residency
> (1 samples), 60M in use, 0.00 INIT (0.00 elapsed), 0.08 MUT (0.10
> elapsed), 0.01 GC (0.02 elapsed) :ghc>>
> gmake[2]: *** [stage1/prelude/PrimOp.o] Fehler 1
> gmake[1]: *** [install] Fehler 1
> gmake[1]: Leaving directory
> `/data/home/wb/Haskell/fptools-amd64/ghc-6.4.1/ghc'
> gmake: *** [install] Fehler 1
>
> I checked that PrimOp.lhs is identical with the versions in
> -i386amd64 and -amd64, so the error message text is certainly
> misleading.
PrimOp.lhs includes a bunch of files that are auto-generated from
primops.txt. In ghc/compiler you should have a bunch of files called
primop-*-incl, which are generated by the genprimopcode program in
ghc/utils/genprimopcode. If these files are empty or corrupt, just
remove them and re-build.
Are you building GHC in a fresh tree now? I'd recommend doing that.
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list