Skip to content

ghc-toolchain and configure disagree on whether windres exists

Summary

Please read the guidance in [https://gitlab.haskell.org/ghc/ghc/-/wikis/report-a-bug] and write a brief description of the issue.

Steps to reproduce

  1. clone ghc
  2. ./boot && ./configure
  3. see the following:
For more information on how to configure your GHC build, see
   https://gitlab.haskell.org/ghc/ghc/-/wikis/building/hadrian

configure: WARNING:
There are some differences between the toolchain configured by "configure" (hadrian/cfg/default.target) and the toolchain configured by the "ghc-toolchain" program (hadrian/cfg/default.target.ghc-toolchain).

39c39
< , tgtWindres = Just Program { prgPath =  "/usr/bin/windres" , prgFlags = [] }
---
> , tgtWindres = Nothing

Don't worry! This won't affect your ghc in any way.
However, in a near future, we will move to configuring toolchains with "ghc-toolchain" by default, so you might have discovered a future bug.
In light of it, if you've spotted this difference, please report a GHC bug at https://www.haskell.org/ghc/reportabug

currently narrowing down what triggered the difference..

Expected behavior

no diff between toolchain and configure

Environment

  • GHC version used: HEAD (host has The Glorious Glasgow Haskell Compilation System, version 9.6.4)

Optional:

  • Operating System: Gentoo GNU/Linux
  • System Architecture: x86-64
Edited by Arsen Arsenović
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information