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

"installed package ghc-9.8.1 is broken due to missing package semaphore-compat-1.0.0-inplace" when trying to use GHC 9.8 with weeder #2153

Open
ocharles opened this issue Jan 31, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ocharles
Copy link
Contributor

ocharles commented Jan 31, 2024

Describe the bug

The following PR attempts to update the Nix shell for Weeder to use GHC 9.8: ocharles/weeder#143

This fails with:

       > Error:
       >     The following packages are broken because other packages they depend on are missing. These broken packages must be rebuilt before they can be used.
       > installed package ghc-9.8.1 is broken due to missing package semaphore-compat-1.0.0-inplace
       >

I'm not sure what to do to fix this.

Steps To Reproduce

Run nix build --print-build-logs in a clone of ocharles/weeder#143

Expected behavior

Weeder is built with GHC 9.8

@ocharles ocharles added the bug Something isn't working label Jan 31, 2024
@michaelpj
Copy link
Collaborator

I think semaphore-compat is a new boot package in 9.8, so maybe we need to adjust something in here?

config.nonReinstallablePkgs =

@ocharles
Copy link
Contributor Author

For Weeder, the following appears to solve this:

          modules = [
            {
              reinstallableLibGhc = false;
              nonReinstallablePkgs = [
                "rts" "ghc-prim" "integer-gmp" "integer-simple" "base"
                "deepseq" "array" "ghc-boot-th" "pretty" "template-haskell"
                "ghc-bignum" "system-cxx-std-lib" "ghc" "binary" "bytestring" "containers" 
                "directory" "exceptions" "filepath" "hpc" "process" "semaphore-compat" "stm" 
                "time" "transformers" "unix" "mtl"
              ];
            }

Copy link

stale bot commented Jun 14, 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 Jun 14, 2024
@ocharles
Copy link
Contributor Author

I think this is all good for weeder now

@stale stale bot removed the wontfix label Jun 14, 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
Projects
None yet
Development

No branches or pull requests

2 participants