-
Notifications
You must be signed in to change notification settings - Fork 850
Closed
Description
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
- Create a Stack project on LTS 21.0 with
stack new. stack build --compiler=ghc-git-a213d3676550a0e4d542172de539c0cfa2662431-quickest(that commit is the one tagged asghc-9.4.5-releasein 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