Skip to content

Toolchain differences reported by "configure" on macOS

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

$ git clone ghc
$ git clone https://github.com/alpmestan/ghc.nix
$ nix develop ghc.nix
ghc.nix ~ cd ghc
ghc.nix ~ ./boot && ./configure

Configures successfully, but this warning appears:

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).

22c22
< { ccLinkProgram = Program { prgPath =  "/nix/store/p72lcp92djj8xpdjm27rjrrxznjjgvyi-clang-wrapper-11.1.0/bin/cc" , prgFlags = ["--target=arm64-apple-darwin"] }
---
> { ccLinkProgram = Program { prgPath =  "/nix/store/p72lcp92djj8xpdjm27rjrrxznjjgvyi-clang-wrapper-11.1.0/bin/cc" , prgFlags = ["--target=arm64-apple-darwin","-L/opt/homebrew/opt/llvm@13/lib"] }

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

Expected behavior

What do you expect the reproducer described above to do?

Not emit the warning.

Environment

  • GHC version used: 9.11.20240518

Optional:

  • Operating System: macOS Sonoma 14.4.1
  • System Architecture: aarch64
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information