Skip to content

bindist built in docker won't install

Building with https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Linux#Docker as follows

git checkout e4cc19de4bdbccea589d41717e31d63b088a8990
git submodule update
./configure
CPUS=5 ./validate

Thereafter

tar xvf ~/mysrc/git.haskell.org/ghc/bindistprep/ghc-7.11.20151229-x86_64-unknown-linux.tar.bz2
cd ghc-7.11.20151229
./configure
make install

Fails with

"utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/ghc-prim dist-install "strip" '' '/opt/ghc/7.11.20151229' '/opt/ghc/7.11.20151229/lib/ghc-7.11.20151229' '/opt/ghc/7.11.20151229/share/doc/ghc/html/libraries' 'v  dyn'  
ghc-cabal: /home/ghc/libraries/ghc-prim/ghc-prim.cabal: does not exist

The path /home/ghc/libraries/ghc-prim/ghc-prim.cabal is the absolute path to the file in the docker file system, i.e. it is the location when the tar was constructed.

Bisection log

alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git checkout 5bb7fecb09f828ea41e5b5a295ea159fa405dcc5
M	libraries/Cabal
M	libraries/primitive
M	libraries/unix
M	utils/haddock
Note: checking out '5bb7fecb09f828ea41e5b5a295ea159fa405dcc5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 5bb7fec... Export some useful GHC API functions.
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git submodule update
Submodule path 'libraries/Cabal': checked out '679812d2b679af952a7c9ab45a9a3a3476874a07'
Submodule path 'libraries/primitive': checked out '83d3d23d2fa1583ecd1b59464cc889924e1b5fff'
Submodule path 'utils/haddock': checked out '80f2f9805b61e8cea291bae8ce22db626dc11f21'
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git bisect good
Bisecting: 11 revisions left to test after this (roughly 4 steps)
[c06b46d0313cafe05f8250a660b4481d7c1d298f] Fix #11305.
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git bisect bad
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[fcc76493c8b35001fc1b22738cc64ff9506e278a] Introduce negative patterns for literals (addresses #11303)
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ 
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ 
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ 
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git bisect good
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[e4cc19de4bdbccea589d41717e31d63b088a8990] Update Cabal submodule to latest snapshot
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
[adcbc98f50cd6bb01dfcf4c98ad5fe414f7cc40c] Add regression test for #11303
alanz@alanz-laptop:~/mysrc/git.haskell.org/ghc$ git bisect good
e4cc19de4bdbccea589d41717e31d63b088a8990 is the first bad commit
commit e4cc19de4bdbccea589d41717e31d63b088a8990
Author: Herbert Valerio Riedel <hvr@gnu.org>
Date:   Tue Dec 29 22:19:54 2015 +0100

    Update Cabal submodule to latest snapshot

:040000 040000 9ba8cf17f85a186265761f3f1e4a11c809d0a54f 7cec7703b483a73f07d2414b364e0f3923970b1f M	libraries
Trac metadata
Trac field Value
Version 8.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC bgamari
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information