building ghc needs ghci?
Roman Leshchinskiy
rl at cse.unsw.edu.au
Wed Mar 17 08:49:12 EDT 2010
On 17/03/2010, at 23:40, Matthias Kilian wrote:
> On Wed, Mar 17, 2010 at 11:25:30AM +1100, Roman Leshchinskiy wrote:
>>> I've a patch which removes DPH from ghc-head, and a merge which
>>> removes it from ghc-6.12, and I could successfully build
>>
>> Unfortunately, we can't remove DPH from the boot packages yet.
>> However, as I suggested in my previous email, we could probably
>> not build it if the compiler is built without support for ghci
>> and/or TH. Could you perhaps look into this?
>
> Sure. However, IIRC the problem was that the compiler initially
> used for bootstrapping stage1 didn't contain ghci; the new build
> *was* configured for ghci, but yet failed. This means that I have
> to check wether the bootstrapping compiler supports ghci or not.
> But I'll rerun the build tests. Maybe the build of DPH should be
> deferred after the stage2 ghc and ghci have been built, if that's
> feasible for you.
DPH is already built by stage 2. You were getting errors from the stage 2 compiler which didn't support ghci. Here is the error message from your original posting:
> "inplace/bin/ghc-stage2" -H32m -O -package-name dph-seq-0.4.0 -hide-all-packages -i -ilibraries/dph/dph-seq/../dph-common -ilibraries/dph/dph-seq/dist-install/build -ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/dist-install/build -Ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/. -optP-include -optPlibraries/dph/dph-seq/dist-install/build/autogen/cabal_macros.h -package array-0.3.0.0 -package base-4.2.0.0 -package dph-base-0.4.0 -package dph-prim-seq-0.4.0 -package ghc-6.13.20100314 -package ghc-prim-0.2.0.0 -package random-1.0.0.2 -package template-haskell-2.4.0.0 -Odph -funbox-strict-fields -haddock -fcpr-off -fdph-this -package-name dph-seq -XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash -XUnboxedTuples -XTypeOperators -O -fgenerics -fasm -fno-warn-deprecated-flags -Wwarn -odir libraries/dph/dph-seq/dist-install/build -hidir libraries/dph/dph-seq/dist-install/build -stubdir libraries/dph/dph-seq/dist-install/build -hisuf hi -osuf o -hcsuf hc -c libraries/dph/dph-seq/../dph-common/Data/Array/Parallel/Lifted/Unboxed.hs -o libraries/dph/dph-seq/dist-install/build/Data/Array/Parallel/Lifted/Unboxed.o
> "inplace/bin/ghc-stage2" -H32m -O -package-name dph-seq-0.4.0 -hide-all-packages -i -ilibraries/dph/dph-seq/../dph-common -ilibraries/dph/dph-seq/dist-install/build -ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/dist-install/build -Ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/. -optP-include -optPlibraries/dph/dph-seq/dist-install/build/autogen/cabal_macros.h -package array-0.3.0.0 -package base-4.2.0.0 -package dph-base-0.4.0 -package dph-prim-seq-0.4.0 -package ghc-6.13.20100314 -package ghc-prim-0.2.0.0 -package random-1.0.0.2 -package template-haskell-2.4.0.0 -Odph -funbox-strict-fields -haddock -fcpr-off -fdph-this -package-name dph-seq -XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash -XUnboxedTuples -XTypeOperators -O -fgenerics -fasm -fno-warn-deprecated-flags -Wwarn -odir libraries/dph/dph-seq/dist-install/build -hidir libraries/dph/dph-seq/dist-install/build -stubdir libraries/dph/dph-seq/dist-install/build -hisuf hi -osuf o -hcsuf hc -c libraries/dph/dph-seq/../dph-common/Data/Array/Parallel/Lifted/Selector.hs -o libraries/dph/dph-seq/dist-install/build/Data/Array/Parallel/Lifted/Selector.o
> "inplace/bin/ghc-stage2" -H32m -O -package-name dph-seq-0.4.0 -hide-all-packages -i -ilibraries/dph/dph-seq/../dph-common -ilibraries/dph/dph-seq/dist-install/build -ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/dist-install/build -Ilibraries/dph/dph-seq/dist-install/build/autogen -Ilibraries/dph/dph-seq/. -optP-include -optPlibraries/dph/dph-seq/dist-install/build/autogen/cabal_macros.h -package array-0.3.0.0 -package base-4.2.0.0 -package dph-base-0.4.0 -package dph-prim-seq-0.4.0 -package ghc-6.13.20100314 -package ghc-prim-0.2.0.0 -package random-1.0.0.2 -package template-haskell-2.4.0.0 -Odph -funbox-strict-fields -haddock -fcpr-off -fdph-this -package-name dph-seq -XTypeFamilies -XGADTs -XRankNTypes -XBangPatterns -XMagicHash -XUnboxedTuples -XTypeOperators -O -fgenerics -fasm -fno-warn-deprecated-flags -Wwarn -odir libraries/dph/dph-seq/dist-install/build -hidir libraries/dph/dph-seq/dist-install/build -stubdir libraries/dph/dph-seq/dist-install/build -hisuf hi -osuf o -hcsuf hc -c libraries/dph/dph-seq/../dph-common/Data/Array/Parallel/Lifted/PArray.hs -o libraries/dph/dph-seq/dist-install/build/Data/Array/Parallel/Lifted/PArray.o
> ghc-stage2: panic! (the 'impossible' happened)
> (GHC version 6.13.20100314 for x86_64-unknown-openbsd):
> Cant do annotations without GHCi
> {59:20-31}ghc-6.13.20100314:SpecConstr.NoSpecConstr{d rap}
Roman
More information about the Cvs-ghc
mailing list