[GHC] #16378: bkpcabal01 fails with recent Cabal
GHC
ghc-devs at haskell.org
Tue Mar 5 04:08:03 UTC 2019
#16378: bkpcabal01 fails with recent Cabal
-------------------------------------+-------------------------------------
Reporter: bgamari | Owner: (none)
Type: bug | Status: new
Priority: highest | Milestone: 8.8.1
Component: Compiler | Version: 8.6.3
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):
Here is a diff showing two runs of the test up to the point where it fails
using GHC 8.6.3 (which passes) and `ghc-8.8` (which fails),
{{{#!patch
--- good 2019-03-05 04:05:04.165349753 +0000
+++ bad 2019-03-05 04:05:25.995764548 +0000
@@ -1,78 +1,74 @@
-++ which /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc
-+ TEST_HC=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc
-++ dirname /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc
-+ GHC_PKG=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc-pkg
+++ which /home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2
++ TEST_HC=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2
+++ dirname /home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2
++ GHC_PKG=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-pkg
+ rm -R tmp.d
-+ /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin
/ghc-pkg init tmp.d
-+ /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db
-rtsopts -fno-warn-missed-specialisations -fshow-warning-groups
-fdiagnostics-color=never -fno-diagnostics-show-caret -Werror=compat -dno-
debug-output -v0 --make Setup
-
-on the commandline: warning:
- unrecognised warning flag: -Werror=compat
++ /home/ben/ghc/ghc-8.8/inplace/bin/ghc-pkg init tmp.d
++ /home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2 -dcore-lint -dstg-lint
-dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations
-fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-
caret -Werror=compat -dno-debug-output -v0 --make Setup
+ cp p/P.hs.in1 p/P.hs
+ cp q/Q.hs.in1 q/Q.hs
-+ ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc '--ghc-options=-dcore-lint -dstg-lint -dcmm-lint -no-
user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-
groups -fdiagnostics-color=never -fno-diagnostics-show-caret
-Werror=compat -dno-debug-output' --package-db=tmp.d
--prefix=/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
--cid p-0.1 p
-
-on the commandline: warning:
- unrecognised warning flag: -Werror=compat
++ ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2 '--ghc-options=-dcore-
lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-
specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-
diagnostics-show-caret -Werror=compat -dno-debug-output' --package-
db=tmp.d
--prefix=/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
--cid p-0.1 p
+ ./Setup -v0 build
+ ./Setup -v0 copy
+ ./Setup -v0 register
-+ ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc '--ghc-options=-dcore-lint -dstg-lint -dcmm-lint -no-
user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-
groups -fdiagnostics-color=never -fno-diagnostics-show-caret
-Werror=compat -dno-debug-output' --package-db=tmp.d
--prefix=/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
--cid impl-0.1 impl
-
-on the commandline: warning:
- unrecognised warning flag: -Werror=compat
++ ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2 '--ghc-options=-dcore-
lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-
specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-
diagnostics-show-caret -Werror=compat -dno-debug-output' --package-
db=tmp.d
--prefix=/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
--cid impl-0.1 impl
+ ./Setup -v0 build
+ ./Setup -v0 copy
+ ./Setup -v0 register
-+ ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-
environment/bin/ghc '--ghc-options=-dcore-lint -dstg-lint -dcmm-lint -no-
user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-
groups -fdiagnostics-color=never -fno-diagnostics-show-caret
-Werror=compat -dno-debug-output' --package-db=tmp.d
--prefix=/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
--cid q-0.1 q
++ ./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2 '--ghc-options=-dcore-
lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-
specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-
diagnostics-show-caret -Werror=compat -dno-debug-output' --package-
db=tmp.d
--prefix=/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
--cid q-0.1 q
+Error:
+ The following packages are broken because other packages they depend
on are missing. These broken packages must be rebuilt before they can be
used.
+planned package bkpcabal01-0.1.0.0 is broken due to missing package
p-0.1+FBOSaiWyMx9DR2UZVI6wQJ
-on the commandline: warning:
- unrecognised warning flag: -Werror=compat
-+ /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin
/ghc-pkg dump --package-db tmp.d
-name: z-bkpcabal01-z-impl
-version: 0.1.0.0
-package-name: bkpcabal01
-lib-name: impl
-id: impl-0.1
-key: impl-0.1
-license: BSD-3-Clause
-maintainer: ezyang at cs.stanford.edu
-author: Edward Z. Yang
-abi: a7d521e071cf58b6a6aa186f8681aa41
-exposed-modules:
- H I
-import-dirs:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.4.3/impl-0.1
-library-dirs:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.4.3/impl-0.1
-dynamic-library-dirs:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.4.3
-data-dir:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/x86_64
-linux-ghc-8.4.3/impl-0.1
-hs-libraries: HSimpl-0.1
-depends:
- base-4.11.1.0
-abi-depends: base-4.11.1.0=9da3f387598d41928f3ebf8097acf9b3
-haddock-interfaces:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.4.3/impl-0.1/html/bkpcabal01.haddock
-haddock-html:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.4.3/impl-0.1/html
++ /home/ben/ghc/ghc-8.8/inplace/bin/ghc-pkg dump --package-db tmp.d
+name: z-bkpcabal01-z-impl
+version: 0.1.0.0
+package-name: bkpcabal01
+lib-name: impl
+id: impl-0.1
+key: impl-0.1
+license: BSD-3-Clause
+maintainer: ezyang at cs.stanford.edu
+author: Edward Z. Yang
+abi: 60c029e13f182ee101522cce908d8781
+exposed-modules: H I
+import-dirs:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.7.20190305/impl-0.1
+library-dirs:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.7.20190305/impl-0.1
+dynamic-library-dirs:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.7.20190305
+data-dir:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/x86_64
-linux-ghc-8.7.20190305/impl-0.1
+hs-libraries: HSimpl-0.1
+depends: base-4.12.0.0
+haddock-interfaces:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.7.20190305/impl-0.1/html/bkpcabal01.haddock
+haddock-html:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.7.20190305/impl-0.1/html
pkgroot:
"/mnt/work/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01"
---
-name: z-bkpcabal01-z-p
-version: 0.1.0.0
-package-name: bkpcabal01
-lib-name: p
-id: p-0.1
-instantiated-with: H=<H>
-key: p-0.1
-license: BSD-3-Clause
-maintainer: ezyang at cs.stanford.edu
-author: Edward Z. Yang
-abi: 7f90760373fbe773631ab356be622147
-indefinite: True
-exposed-modules:
- P
-import-dirs:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.4.3/p-0.1
-data-dir:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/x86_64
-linux-ghc-8.4.3/p-0.1
-depends:
- base-4.11.1.0
-abi-depends: base-4.11.1.0=9da3f387598d41928f3ebf8097acf9b3
-haddock-interfaces:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.4.3/p-0.1/html/bkpcabal01.haddock
-haddock-html:
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.4.3/p-0.1/html
+name: z-bkpcabal01-z-p
+version: 0.1.0.0
+package-name: bkpcabal01
+lib-name: p
+id: p-0.1
+instantiated-with: H=<H>
+key: p-0.1
+license: BSD-3-Clause
+maintainer: ezyang at cs.stanford.edu
+author: Edward Z. Yang
+abi: 7fb495b5fcc553191970ae3cce6444ea
+indefinite: True
+exposed-modules: P
+import-dirs:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64
-linux-ghc-8.7.20190305/p-0.1
+data-dir:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/x86_64
-linux-ghc-8.7.20190305/p-0.1
+depends: base-4.12.0.0
+haddock-interfaces:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.7.20190305/p-0.1/html/bkpcabal01.haddock
+haddock-html:
+
/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/doc/x86_64
-linux-ghc-8.7.20190305/p-0.1/html
pkgroot:
"/mnt/work/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01"
}}}
This was generated using the following script:
{{{#!bash
#!/usr/bin/env bash
set -x
TEST_HC=$(which $TEST_HC)
GHC_PKG=$(dirname $TEST_HC)/ghc-pkg
rm -R tmp.d
$GHC_PKG init tmp.d
$TEST_HC -dcore-lint -dstg-lint -dcmm-lint -no-user-package-db -rtsopts
-fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-
color=never -fno-diagnostics-show-caret -Werror=compat -dno-debug-output
-v0 --make Setup
cp p/P.hs.in1 p/P.hs
cp q/Q.hs.in1 q/Q.hs
# typecheck p
./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=$TEST_HC --ghc-options='-dcore-lint -dstg-lint -dcmm-lint -no-user-
package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-
groups -fdiagnostics-color=never -fno-diagnostics-show-caret
-Werror=compat -dno-debug-output' --package-db=tmp.d
--prefix='/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst'
--cid "p-0.1" p
./Setup -v0 build
./Setup -v0 copy
./Setup -v0 register
# build impl
./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=$TEST_HC --ghc-options='-dcore-lint -dstg-lint -dcmm-lint -no-user-
package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-
groups -fdiagnostics-color=never -fno-diagnostics-show-caret
-Werror=compat -dno-debug-output' --package-db=tmp.d
--prefix='/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst'
--cid "impl-0.1" impl
./Setup -v0 build
./Setup -v0 copy
./Setup -v0 register
# typecheck q
./Setup -v0 configure --enable-library-vanilla --disable-shared --with-
ghc=$TEST_HC --ghc-options='-dcore-lint -dstg-lint -dcmm-lint -no-user-
package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-
groups -fdiagnostics-color=never -fno-diagnostics-show-caret
-Werror=compat -dno-debug-output' --package-db=tmp.d
--prefix='/home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst'
--cid "q-0.1" q
$GHC_PKG dump --package-db tmp.d
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16378#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list