Skip to content

Building GHC 9.4.5 from source fails because of deprecated Hadrian flag #6180

@isomorpheme

Description

@isomorpheme

General summary/comments (optional)

Stack calls Hadrian with -c here, but that option has been deprecated (which in this case means not much less than "removed") for a while: https://gitlab.haskell.org/ghc/ghc/-/issues/20167

Building GHC currently requires running ./boot && ./configure before calling Hadrian.

Steps to reproduce

  1. Create a Stack project on LTS 21.0 with stack new.
  2. stack build --compiler=ghc-git-a213d3676550a0e4d542172de539c0cfa2662431-quickest (that commit is the one tagged as ghc-9.4.5-release in the GHC repo).

Expected

GHC built from source successfully.

Actual

Stack builds Hadrian successfully, but then:

shake: hadrian --configure has been deprecated (see #20167). Please run ./boot; ./configure manually

Usage: hadrian [options] [target] ...

Standard options:
# ... snip ...
Extra options:
  -c, --configure             Deprecated: Run the boot and configure scripts.
# ... snip ...

Received ExitFailure 1 when running
Raw command: /tmp/with-repo1432778/cloned/hadrian/build-stack -c -j8 --flavour=quickest binary-dist
Run from: /tmp/with-repo1432778/cloned

Stack version

In my project's nix-shell:

stack --version
2.9.1 x86_64 hpack-0.35.2

But I've also tried with Stack installed from GHCup:

stack --version
Version 2.11.1, Git revision c1167a6abc3f4978ccded5ba0246a57387da0e2f x86_64 hpack-0.35.2

Method of installation

  • Via GHCup
  • Other: Via Nix

Platform

Linux x86_64, Ubuntu.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions