I've created a ticket for this:

http://hackage.haskell.org/trac/ghc/ticket/3852

Cheers,
        Simon

On 31/01/2010 13:28, Nicolas Martyanoff wrote:

Hi,

By reading Matthias Kilian's scripts (thank you !), I successfully builded GHC
6.12.1.

GHC 6.10.4 didn't build:

   g    Lexer.x
   gmake[2]: g: Command not found
   gmake[2]: [Lexer.hs] Error 127 (ignored)
   RTS -K2m -RTS -agc --strict    Parser.y
   gmake[2]: RTS: Command not found
   gmake[2]: *** [Parser.hs] Error 127
   Failed making boot in genprimopcode: 1
   gmake[1]: *** [boot] Error 1
   gmake: *** [stage1] Error 1

But GHC 6.8.3 did. I then built GHC 6.12.1. The only problem was that the
build process doesn't find the iconv lib when it's installed in /usr/local, so
the lib/include paths have to be specified when running ./configure.

I then installed Cabal 1.9 from darcs, and cabal-install, still from darcs. I
used cabal to install hscolour, xmonad and xmonad-contrib, it worked
perfectly.

I thought it might be good to build GHC 6.12.1 with itself just to be sure
it's working fine before make a dist, but I now get the following error:

"/usr/local/bin/ghc"   -H32m -O  -package-conf libraries/bootstrapping.conf  
-package-name ghc-6.12.1 -hide-all-packages -i -icompiler/nativeGen -icompiler/basicTypes 
-icompiler/cmm -icompiler/codeGen -icompiler/coreSyn -icompiler/cprAnalysis 
-icompiler/deSugar -icompiler/ghci -icompiler/hsSyn -icompiler/iface -icompiler/main 
-icompiler/parser -icompiler/prelude -icompiler/profiling -icompiler/rename 
-icompiler/simplCore -icompiler/simplStg -icompiler/specialise -icompiler/stgSyn 
-icompiler/stranal -icompiler/typecheck -icompiler/types -icompiler/utils 
-icompiler/vectorise -icompiler/stage1/build -icompiler/stage1/build/autogen 
-Icompiler/stage1/build -Icompiler/stage1/build/autogen -Icompiler/stage1 
-Icompiler/../libraries/base/cbits -Icompiler/../libraries/base/include -Icompiler/. 
-Icompiler/parser -Icompiler/utils    -optP-include 
-optPcompiler/stage1/build/autogen/cabal_macros.h -package Cabal-1.9.0 -package 
array-0.3.0.0 -package base-4.2.0.0 -package bin-package-db-
0.0.0.0 -package bytestring-0.9.1.5 -package containers-0.3.0.0 -package 
directory-1.0.1.0 -package filepath-1.1.0.3 -package hpc-0.5.0.4 -package 
old-time-1.0.0.3 -package process-1.0.1.2 -package unix-2.4.0.0  -DSTAGE=1 
-Wall -fno-warn-name-shadowing -fno-warn-orphans -XCPP -XMagicHash 
-XUnboxedTuples -XPatternGuards -XForeignFunctionInterface -XEmptyDataDecls 
-XTypeSynonymInstances -XMultiParamTypeClasses -XFlexibleInstances -XRank2Types 
-XScopedTypeVariables -XDeriveDataTypeable -XRelaxedPolyRec     -odir 
compiler/stage1/build -hidir compiler/stage1/build -stubdir 
compiler/stage1/build -hisuf hi -osuf  o -hcsuf hc -c 
compiler/main/Packages.lhs -o compiler/stage1/build/Packages.o

compiler/main/Packages.lhs:233:63:
     Couldn't match expected type `InstalledPackageInfo_ String'
            against inferred type 
`Cabal-1.8.0.2:Distribution.InstalledPackageInfo.InstalledPackageInfo_
                                     m'
       Expected type: [InstalledPackageInfo_ String]
       Inferred type: 
[Cabal-1.8.0.2:Distribution.InstalledPackageInfo.InstalledPackageInfo_
                         m]
     In the second argument of `map', namely `conf'
     In the first argument of `return', namely
         `(map installedPackageInfoToPackageConfig conf)'
gmake[1]: *** [compiler/stage1/build/Packages.o] Error 1
gmake: *** [all] Error 2

I tried to "ghc-pkg mask" Cabal-1.8.0.2, then Cabal-1.9.0, didn't change
anything.

Does someone know what's going on here, and what can be done to fix it ?

Regards,




_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to