#3852: Building GHC 6.12.1 with Cabal 1.9.0 installed
---------------------------------+------------------------------------------
    Reporter:  simonmar          |        Owner:                         
        Type:  bug               |       Status:  new                    
    Priority:  high              |    Milestone:  6.12.3                 
   Component:  Build System      |      Version:  6.12.1                 
    Keywords:                    |   Difficulty:  Easy (less than 1 hour)
          Os:  Unknown/Multiple  |     Testcase:                         
Architecture:  Unknown/Multiple  |      Failure:  Building GHC failed    
---------------------------------+------------------------------------------
Changes (by igloo):

  * owner:  duncan =>
  * milestone:  6.12.2 => 6.12.3


Comment:

 Yes, the build problem is a separate issue, but I needed to build it in
 order to reproduce the problem  :-)

 Anyway, I've worked around it by using 6.10.4 instead.

 It looks like what's happening is that `bin-package-db.cabal` says
 {{{
 build-depends: Cabal == 1.8.*
 }}}
 but `compiler/ghc.cabal` just says
 {{{
 build-depends: Cabal
 }}}
 I'm not entirely sure why Cabal doesn't decide to use 1.8.0.3 for ghc, but
 it doesn't:
 {{{
 "/home/ian/bindists/6.10.4/inst/bin/ghc" --with-ghc-
 pkg="/home/ian/bindists/6.10.4/inst/bin/ghc-pkg" --with-gcc="/usr/bin/gcc"
 --configure-option=--with-cc="/usr/bin/gcc"  --flags=stage1 --flags=ncg
 --ghc-options='-#include "cutils.h"' --ghc-option=-DSTAGE=1 --ghc-
 options=' -O' --package-
 db=/home/ian/ghc/6.12-branch/ghc/libraries/bootstrapping.conf --enable-
 shared --with-hscolour="/usr/bin/HsColour" --configure-
 option=CFLAGS="-Wall   " --configure-option=LDFLAGS="  " -- stage1
 compiler
 Configuring ghc-6.12.1.20100327...
 Warning: 'include-dirs: ../libraries/base/cbits' is a relative path
 outside of
 the source tree. This will not work when generating a tarball with
 'sdist'.
 Warning: 'include-dirs: ../libraries/base/include' is a relative path
 outside
 of the source tree. This will not work when generating a tarball with
 'sdist'.
 Warning: This package indirectly depends on multiple versions of the same
 package. This is highly likely to cause a compile failure.
 package bin-package-db-0.0.0.0 requires Cabal-1.8.0.3
 package ghc-6.12.1.20100327 requires Cabal-1.9.0
 }}}

 We could fix this by passing `--constraint "Cabal == 1.8.0.3"` (or
 whatever the right syntax is) whenever we configure a Cabal package (I
 assume that that is a no-op if the package doesn't depend on Cabal?) but
 the same thing could happen with any package we use from the bootstrapping
 compiler.

 I think we should punt on this for now, as building with Cabal HEAD isn't
 something we support anyway.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3852#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to