[GHC] #11326: bindist built in docker won't install

#11326: bindist built in docker won't install
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 8.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
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

#11326: bindist built in docker won't install
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by bgamari):
For the record, this commit bumped `Cabal` from
`679812d2b679af952a7c9ab45a9a3a3476874a07` to
`072e4728079e6caf521339e3934e1279aa09e83d`. Thankfully there aren't too
many commits between these points.
What looks particularly suspicious is the `Cabal` commit
{{{
commit f907f1a6b4241ab4b75eaafa2ffb9031de8f008a
Author: Edward Z. Yang

#11326: bindist built in docker won't install -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * cc: ezyang (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11326#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11326: bindist built in docker won't install -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Installing GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * failure: None/Unknown => Installing GHC failed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11326#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11326: bindist built in docker won't install -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Installing GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): This commit in question canonicalizes the Cabal file path and saves it in `LocalBuildInfo` in an effort to fix [https://github.com/haskell/cabal/issues/2994|#2994]. Perhaps `ghc-cabal` should be working around this by relativizing the Cabal file path in `LocalBuildInfo`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11326#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11326: bindist built in docker won't install -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Installing GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by ezyang): I reverted it: https://github.com/haskell/cabal/commit/bf4d05efa79a41a819e3d9278d5e9e1e5a05... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11326#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11326: bindist built in docker won't install
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.0.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Installing GHC | Unknown/Multiple
failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Alan Zimmerman

#11326: bindist built in docker won't install -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Installing GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by alanz): * status: new => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11326#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11326: bindist built in docker won't install -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Installing GHC | Unknown/Multiple failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by alanz): * status: merge => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11326#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC