You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
haskell: Windows toolchain fails to load @@rules_cc+//cc:cc_toolchain.bzl #8969
Every windows_x86_64 evidence run that resolves the Haskell toolchain fails during loading, before any test runs. Seen in evidence run 42309468960 (main 15e2d14, scope = the #8733 msvc real_result targets, --//cc/toolchains:compiler=msvc):
File ".../+haskell+rules_haskell/haskell/cc_toolchain_config.bzl", line 123, column 27, in <toplevel>
Error in rule: at index 0 of provides, got element of type NoneType, want Provider
ERROR: error loading package '@@+haskell+dx_ghc_windows_x86_64//': cannot load '@@rules_cc+//cc:cc_toolchain.bzl': no such file
Where
haskell/toolchain/repos.bzl:315-317 (_MINGW_CC_LOADS): loads @rules_cc//cc:cc_toolchain.bzl. rules_cc 0.2.27 has no such file; the rule lives in @rules_cc//cc/toolchains:cc_toolchain.bzl.
@rules_haskell//haskell:cc_toolchain_config.bzl:123 (pinned commit 826018312e, and still the same on upstream master): provides = [CcToolchainConfigInfo] uses the native global, which is None under Bazel 9.
Only the windows cell sets mingw_cc = True (haskell/toolchain/pins.bzl:132). On other hosts the repo is an incompatible stub, which is why Linux and macOS CI never load these lines.
Fix
Load cc_toolchain from @rules_cc//cc/toolchains:cc_toolchain.bzl in _MINGW_CC_LOADS.
Add patches/rules_haskell/cc_toolchain_config_info.patch, which loads CcToolchainConfigInfo from @rules_cc//cc/toolchains:cc_toolchain_config_info.bzl. File it upstream as well.
Add a Linux-loadable regression target that uses the same load lines.
Activity
TrapsterDK commentedon Nov 7, 2026
Windows msvc evidence run for the Haskell mingw load fix (PR #8976): 42323331884. Upstream rules_haskell issue tweag/rules_haskell#2483 and PR tweag/rules_haskell#2484.
Assisted by Claude.