-
Notifications
You must be signed in to change notification settings - Fork 247
Neither the Haskell package set or the Nixpkgs package set contain the tool: genprimopcode:genprimopcode (build tool dependency). #1809
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
Comments
I think you might be trying to rebuild one of GHCs packages. We might need to expose genprimops from GHC as well. |
Same as #1808 I think. Try out my workaround |
Ah! We are reinstalling lib:ghc. 😵💫🥴 |
Packages that depend on ghc trigger a rebuild and in turn trigger this bug. Changing the package to depend on ghc-lib fixes this. It's mildly annoying because plugins like |
This is also likely related to the following error when compiling some package:
|
We're getting the same when trying to bump to 9.4.3, but for
|
Once you fix alex and happy by providing them as packages in nix the next problem will be genprimopcode. The underlying problem is that haskell.nix doesn't put ghc into the packagedb for some reason. This is what is causing all of us to rebuild ghc. It also breaks a whole lot of other things! Like all plugins. reinstallableLibGhc has something to do with writing out the packagedb. So I disabled it. After some fiddling, it all seems to work correctly. No other workarounds required, it doesn't rebuild ghc, since it is now in the packagedb. And plugins work!
I don't know the downside of this setup. Note that normally those last 3 entries aren't in nonReinstallablePkgs in haskell.nix, but are required. |
Thank you @abarbu for digging into this! Edit: nonReinstallablePkgs needs to be a closed package set. It specifies which packages are to be taken verbatim from the GHC installation. The downside is: you can't upgrade any of those packages in the nonReinstallablePkgs set. |
We recently removed |
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. |
We are still affected by this, or some variant of it, as we're unable to get HLS to build from |
@dhess #1809 (comment) worked for me, have you tried that? I haven't tried this on HLS yet (because there are other reasons we can't get to 9.4), but the following worked to get weeder working:
|
@ocharles I haven't had the heart to pull out the |
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. |
I'm not entirely sure what's pulling this in yet, but this is what I get when I try and upgrade work to 9.4.3.
The text was updated successfully, but these errors were encountered: