Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with isBuiltByBootstrapFilesCompiler after upgrading to latest #2062

Closed
oscar-izval opened this issue Sep 18, 2023 · 2 comments
Closed
Labels
bug Something isn't working wontfix

Comments

@oscar-izval
Copy link

Describe the bug

I'm in the middle of bumping GHC from 9.4.5 to 9.4.7, and figured I need to update haskell.nix due to this error: error: attribute 'ghc947' missing. Tracked down the PR that added support for this version, #2031, and since it's recent enough, I went for nix flake lock --update-input haskell-nix. After doing this, which updated the nixpkgs input, I'm getting the following error:

       error: assertion '((lib).all isBuiltByBootstrapFilesCompiler (with prevStage; [ (autoconf) (automake) 
(bash) (binutils-unwrapped) (bison) (brotli) (cmake) (cpio) (curl) (cyrus_sasl) (db) (ed) (expat) (flex)
(gettext) (gmp) (groff) (icu) (libedit) (libffi) (libiconv) (libidn2) (libkrb5) (libssh2) (libtool) (libunistring) 
(libxml2) (m4) (ncurses) (nghttp2) (ninja) (openldap) (openssh) (openssl) (patchutils) (pbzx) (perl) 
((pkg-config).pkg-config) (python3) (python3Minimal) (scons) (serf) (sqlite) (subversion) (texinfo) 
(unzip) (which) (xz) (zlib) (zstd) ]))' failed

       at /nix/store/75yg5df22m25b8pk2qmw843ydnbl0rsk-source/pkgs/stdenv/darwin/default.nix:545:5:

          544|
          545|     assert lib.all isBuiltByBootstrapFilesCompiler (with prevStage; [
             |     ^
          546|       autoconf automake bash binutils-unwrapped bison brotli cmake cpio curl cyrus_sasl db

After doing some git blameing, I got to this PR in the nixpkgs repo: NixOS/nixpkgs#240433, which seems to have added an extra check since we last updated haskell.nix. This is preventing us from moving forward with the update, so the question is:

  • How can I provide versions of these packages that pass the assertion? or
  • How can I ignore this error?

System info

  • Build system: x86_64-darwin
  • GHC version: ghc945 -> ghc947
  • Haskell.nix version (or commit) used: ef09c9687d2f66bd8f5e226acaaf3f85af9b24cc

Steps To Reproduce

I'm working on limited context here, since I'm not the one who set this up, but I guess it all comes down to bumping haskell.nix from 78a275df052dc0c26a5f54ed833a0ecadd147e87, our current version, to whatever the latest is when you are reading this.

Expected behavior

I'd expect that after the update, haskell.nix would simply be able to get the ghc947 attribute.

Additional context

I'd be more than happy to provide any extra info needed to get this fixed.

@oscar-izval oscar-izval added the bug Something isn't working label Sep 18, 2023
@hamishmack
Copy link
Collaborator

I've not seen this before. Can you please run with --show-trace on the nix command line to give more context for the error?

What nixpkgs commit are you using (probably one of the inputs.nixpkgs in the flake.nix file)?

Perhaps try using one of the nixpkgs commits we run our tests with:

inputs.nixpkgs.follows = "haskellNix/nixpkgs-2305";

or

inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";

Then run nix flake lock --update-input nixpkgs to update the flake.lock file.

From the error I wonder if an overlay is replacing on of the listed pkgs. It could be a haskell.nix one, but it might also be something in your project (if you have any).

Copy link

stale bot commented Jan 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 19, 2024
@stale stale bot closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix
Projects
None yet
Development

No branches or pull requests

2 participants