Skip to content

Stack invokes the wrong Hadrian build script when building GHC from source #5528

@fwcd

Description

@fwcd

General summary

Building a recent version of GHC from source by specifying compiler: ghc-git-COMMIT-FLAVOUR in a stack.yaml (as described here) fails with the following error:

Building GHC from source with `quick` flavour. It can take a long time (more than one hour)...
Did not find executable at specified path: /tmp/with-repo468829/cloned/hadrian/build.stack.sh

Steps to reproduce

For example:

  1. Create stack.yaml with
compiler: ghc-git-7bc7eea3897dcb8a87fdb0921f451b9bc77309f6-quickest

(This is the newest GHC commit at the time of writing)

  1. Run stack build

Expected

The script hadrian/build-stack should be invoked.

Actual

The script hadrian/build.stack.sh was invoked (apparently the script has been renamed).

Stack version

$ stack --version
Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0

Method of installation

Official binary

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions