Opened 9 months ago

Last modified 9 months ago

#16378 patch bug

bkpcabal01 fails with recent Cabal

Reported by: bgamari Owned by:
Priority: highest Milestone: 8.8.1
Component: Compiler Version: 8.6.3
Keywords: Cc: hvr, ezyang
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s): https://gitlab.haskell.org/ghc/ghc/merge_requests/512
Wiki Page:

Description

After bumping Cabal on the ghc-8.8 branch bkpcabal01 fails:

=====> bkpcabal01(normal) 85 of 6807 [0, 0, 0]
cd "backpack/cabal/bkpcabal01/bkpcabal01.run" && $MAKE -s --no-print-directory bkpcabal01 CLEANUP=1  
Wrong exit code for bkpcabal01()(expected 0 , actual 2 )
Stdout ( bkpcabal01 ):
Makefile:9: recipe for target 'bkpcabal01' failed
Stderr ( bkpcabal01 ):
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

Anyone know what is going on here?

Change History (5)

comment:1 Changed 9 months ago by bgamari

A full log from running the test directly:

[~/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01]$ make bkpcabal01
rm -f -r tmp.d inst dist Setup
make -s --no-print-directory clean
'/mnt/work/ghc/ghc-8.8/inplace/bin/ghc-pkg' init tmp.d
'/mnt/work/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
# typecheck p
./Setup -v0 configure --enable-library-vanilla --disable-shared --with-ghc='/mnt/work/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
# build impl
./Setup -v0 configure --enable-library-vanilla --disable-shared --with-ghc='/mnt/work/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
# typecheck q
./Setup -v0 configure --enable-library-vanilla --disable-shared --with-ghc='/mnt/work/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

make: *** [Makefile:25: bkpcabal01] Error 1

[~/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01]$ /mnt/work/ghc/ghc-8.8/inplace/bin/ghc-pkg list --package-db=tmp.d
tmp.d
    z-bkpcabal01-z-impl-0.1.0.0
    z-bkpcabal01-z-p-0.1.0.0

[~/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01]$ /mnt/work/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@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@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"



Last edited 9 months ago by bgamari (previous) (diff)

comment:2 Changed 9 months ago by bgamari

Here is a diff showing two runs of the test up to the point where it fails using GHC 8.4.3 (which passes) and ghc-8.8 (which fails),

  • (a) good vs. (b) bad

    a b  
    1 ++ which /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin/ghc
    2 + TEST_HC=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin/ghc
    3 ++ dirname /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin/ghc
    4 + GHC_PKG=/nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin/ghc-pkg
     1++ which /home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2
     2+ TEST_HC=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2
     3++ dirname /home/ben/ghc/ghc-8.8/inplace/bin/ghc-stage2
     4+ GHC_PKG=/home/ben/ghc/ghc-8.8/inplace/bin/ghc-pkg
    55+ rm -R tmp.d
    6 + /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin/ghc-pkg init tmp.d
    7 + /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
    8 
    9 on the commandline: warning:
    10     unrecognised warning flag: -Werror=compat
     6+ /home/ben/ghc/ghc-8.8/inplace/bin/ghc-pkg init tmp.d
     7+ /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
    118+ cp p/P.hs.in1 p/P.hs
    129+ cp q/Q.hs.in1 q/Q.hs
    13 + ./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
    14 
    15 on the commandline: warning:
    16     unrecognised warning flag: -Werror=compat
     10+ ./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
    1711+ ./Setup -v0 build
    1812+ ./Setup -v0 copy
    1913+ ./Setup -v0 register
    20 + ./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
    21 
    22 on the commandline: warning:
    23     unrecognised warning flag: -Werror=compat
     14+ ./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
    2415+ ./Setup -v0 build
    2516+ ./Setup -v0 copy
    2617+ ./Setup -v0 register
    27 + ./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
     18+ ./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
     19Error:
     20    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
     21planned package bkpcabal01-0.1.0.0 is broken due to missing package p-0.1+FBOSaiWyMx9DR2UZVI6wQJ
    2822
    29 on the commandline: warning:
    30     unrecognised warning flag: -Werror=compat
    31 + /nix/store/y6vdn971gmxziv4ryqqbaf1iy814i2z1-ghc-build-environment/bin/ghc-pkg dump --package-db tmp.d
    32 name: z-bkpcabal01-z-impl
    33 version: 0.1.0.0
    34 package-name: bkpcabal01
    35 lib-name: impl
    36 id: impl-0.1
    37 key: impl-0.1
    38 license: BSD-3-Clause
    39 maintainer: ezyang@cs.stanford.edu
    40 author: Edward Z. Yang
    41 abi: a7d521e071cf58b6a6aa186f8681aa41
    42 exposed-modules:
    43     H I
    44 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
    45 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
    46 dynamic-library-dirs: /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64-linux-ghc-8.4.3
    47 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
    48 hs-libraries: HSimpl-0.1
    49 depends:
    50     base-4.11.1.0
    51 abi-depends: base-4.11.1.0=9da3f387598d41928f3ebf8097acf9b3
    52 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
    53 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
     23+ /home/ben/ghc/ghc-8.8/inplace/bin/ghc-pkg dump --package-db tmp.d
     24name:                 z-bkpcabal01-z-impl
     25version:              0.1.0.0
     26package-name:         bkpcabal01
     27lib-name:             impl
     28id:                   impl-0.1
     29key:                  impl-0.1
     30license:              BSD-3-Clause
     31maintainer:           ezyang@cs.stanford.edu
     32author:               Edward Z. Yang
     33abi:                  60c029e13f182ee101522cce908d8781
     34exposed-modules:      H I
     35import-dirs:
     36    /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64-linux-ghc-8.7.20190305/impl-0.1
     37library-dirs:
     38    /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64-linux-ghc-8.7.20190305/impl-0.1
     39dynamic-library-dirs:
     40    /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64-linux-ghc-8.7.20190305
     41data-dir:
     42    /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/x86_64-linux-ghc-8.7.20190305/impl-0.1
     43hs-libraries:         HSimpl-0.1
     44depends:              base-4.12.0.0
     45haddock-interfaces:
     46    /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
     47haddock-html:
     48    /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
    5449pkgroot: "/mnt/work/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01"
    5550---
    56 name: z-bkpcabal01-z-p
    57 version: 0.1.0.0
    58 package-name: bkpcabal01
    59 lib-name: p
    60 id: p-0.1
    61 instantiated-with: H=<H>
    62 key: p-0.1
    63 license: BSD-3-Clause
    64 maintainer: ezyang@cs.stanford.edu
    65 author: Edward Z. Yang
    66 abi: 7f90760373fbe773631ab356be622147
    67 indefinite: True
    68 exposed-modules:
    69     P
    70 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
    71 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
    72 depends:
    73     base-4.11.1.0
    74 abi-depends: base-4.11.1.0=9da3f387598d41928f3ebf8097acf9b3
    75 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
    76 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
     51name:               z-bkpcabal01-z-p
     52version:            0.1.0.0
     53package-name:       bkpcabal01
     54lib-name:           p
     55id:                 p-0.1
     56instantiated-with:  H=<H>
     57key:                p-0.1
     58license:            BSD-3-Clause
     59maintainer:         ezyang@cs.stanford.edu
     60author:             Edward Z. Yang
     61abi:                7fb495b5fcc553191970ae3cce6444ea
     62indefinite:         True
     63exposed-modules:    P
     64import-dirs:
     65    /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/lib/x86_64-linux-ghc-8.7.20190305/p-0.1
     66data-dir:
     67    /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst/share/x86_64-linux-ghc-8.7.20190305/p-0.1
     68depends:            base-4.12.0.0
     69haddock-interfaces:
     70    /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
     71haddock-html:
     72    /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
    7773pkgroot: "/mnt/work/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01"
    7874

This was generated using the following script:

#!/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

Last edited 9 months ago by bgamari (previous) (diff)

comment:3 Changed 9 months ago by bgamari

Adding -v2 to the failing Setup configure invocation reveals these differences:

  • (a) good vs. (b) bad

    a b  
    11.
    22.
    33.
    4 + ./Setup -v2 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                                                                               
     4+ ./Setup -v2 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
    55Using Parsec parser
    66Configuring library 'q' for bkpcabal01-0.1.0.0..
    7 Dependency base -any: using base-4.11.1.0
     7Dependency base -any: using base-4.12.0.0
    88Dependency impl -any: using bkpcabal01-0.1.0.0
    99Dependency p -any: using bkpcabal01-0.1.0.0
    10 
    11 on the commandline: warning:
    12     unrecognised warning flag: -Werror=compat
    1310Source component graph:
    1411    component lib:q
    15         dependency lib:p
    1612        dependency lib:impl
     13        dependency lib:p
    1714Configured component graph:
    1815    component q-0.1
    1916        include impl-0.1 (H)
     17        include base-4.12.0.0
    2018        include p-0.1
    21         include base-4.11.1.0
    2219Linked component graph:
    2320    unit q-0.1[I=<I>]
    2421        include impl-0.1 (H)
     22        include base-4.12.0.0
    2523        include p-0.1[H=impl-0.1:H]
    26         include base-4.11.1.0
    2724        Q=q-0.1[I=<I>]:Q
    2825Ready component graph:
    2926    indefinite q-0.1
    3027        depends impl-0.1
    31         depends p-0.1
    32         depends base-4.11.1.0
    33 Using Cabal-2.2.0.1 compiled by ghc-8.4
    34 Using compiler: ghc-8.4.3
    35 Using install prefix:
    36 /home/ben/ghc/ghc-8.8/testsuite/tests/backpack/cabal/bkpcabal01/inst
     28        depends base-4.12.0.0
     29        depends p-0.1+FBOSaiWyMx9DR2UZVI6wQJ
     30CallStack (from HasCallStack):
     31  dieNoWrap, called at libraries/Cabal/Cabal/Distribution/Utils/LogProgress.hs:61:9 in Cabal-2.5.0.0:Distribution.Utils.LogProgress
     32Error:
     33    The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
     34planned package bkpcabal01-0.1.0.0 is broken due to missing package p-0.1+FBOSaiWyMx9DR2UZVI6wQJ
     35
    3736.
    3837.
    3938.

Not particularly illuminating.

comment:4 Changed 9 months ago by ezyang

bkpcabal01 test is wrong. Detailed explanation and patch coming.

comment:5 Changed 9 months ago by ezyang

Differential Rev(s): https://gitlab.haskell.org/ghc/ghc/merge_requests/512
Status: newpatch

I don't currently have a working ghc build (my checkout is borked) but I'll try to test it locally tomorrow. Give it a try. https://gitlab.haskell.org/ghc/ghc/merge_requests/512

Note: See TracTickets for help on using tickets.