fail to build ghc in github action

chaowen guo chaowen.guo1 at gmail.com
Sun Mar 23 10:37:26 UTC 2025


i fork the ghc repo from github and use the following workflow

on: push

jobs:
    build:
        runs-on: ubuntu-24.04
        steps:
        - uses: actions/checkout at main
        - run: |
              git submodule update --init --recursive
              sudo apt install -y --no-install-recommends alex happy
              python3 boot
              ./configure
              hadrian/build

Warning: Specifying an absolute path to the project file is deprecated. Use
1178
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1179>--project-dir
to set the project's directory.
1179
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1180>Config
file path source is default config file.
1180
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1181>Config
file not found: /home/runner/.config/cabal/config
1181
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1182>Writing
default configuration to /home/runner/.config/cabal/config
1182
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1183>Configuration
is affected by the following files:
1183
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1184>-
cabal.project
1184
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1185>Warning:
The package list for 'hackage.haskell.org' does not exist. Run 'cabal
1185
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1186>update'
to download it.
1186
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1187>Warning:
There is no index-state for 'hackage.haskell.org' exactly at the
1187
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1188>requested
timestamp (2025-01-27T17:45:32Z). Also, there are no index-states
1188
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1189>before
the one requested, so the repository 'hackage.haskell.org' will be
1189
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1190>empty.

1190
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1191>Resolving
dependencies...
1191
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1192>Error:
[Cabal-7107]
1192
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1193>Could
not resolve dependencies:
1193
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1194>[__0]
trying: hadrian-0.1.0.0 (user goal)
1194
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1195>[__1]
trying: hadrian:+selftest
1195
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1196>[__2]
unknown package: QuickCheck (dependency of hadrian +selftest)
1196
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1197>[__2]
fail (backjumping, conflict set: QuickCheck, hadrian, hadrian:selftest)
1197
<https://github.com/chaowenguo1/ghc/actions/runs/14017990071/job/39246149896#step:3:1198>After
searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: hadrian, hadrian:selftest,
QuickCheck
i have no idea what happen. please help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20250323/9ff31a06/attachment.html>


More information about the ghc-devs mailing list