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

GHC962 fails to build using pkgsStatic #250833

Closed
FPtje opened this issue Aug 22, 2023 · 2 comments
Closed

GHC962 fails to build using pkgsStatic #250833

FPtje opened this issue Aug 22, 2023 · 2 comments
Labels
0.kind: bug Something is broken

Comments

@FPtje
Copy link
Contributor

FPtje commented Aug 22, 2023

Describe the bug

  • On nixpkgs-unstable revision 0b07d49
  • Build pkgsStatic.haskell.packages.ghc962.ghc
  • Find that this fails on both X86_64-linux and ARM64-linux.

Build logs, note that the ARM build and one of the x86_64-linux builds are on revision d2b5232. I only re-did one build with the latest nixpkgs to save some time.
https://gist.github.com/FPtje/c894b10abd08d3af77ee80a3d0d67540

Found while building this flake: https://github.com/FPtje/GLuaFixer/tree/fp/update-flake-lock

Expected behavior

A successful build. GHC 9.4 has been doing swimmingly, at least on previous revisions.

Notify maintainers

I think @nh2 would be a good person to ask for advice on next steps. I'm not familiar with the static build internals of Nix, nor the build specifics of GHC in Nix. Is this a Nixpkgs issue, or a GHC issue?

I found this related issue, which has a similar error message about a file not being produced: https://gitlab.haskell.org/ghc/ghc/-/issues/21807, which seemed to be more of an issue of using the build system.

Metadata

❱ nix run nixpkgs#nix-info -- -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.38, NixOS, 23.11 (Tapir), 23.11.20230713.e74e684`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(falco): `""`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@FPtje FPtje added the 0.kind: bug Something is broken label Aug 22, 2023
@bgamari
Copy link
Contributor

bgamari commented Dec 19, 2023

Indeed it seems likely that this is a Hadrian (the GHC build system) bug (particularly in its binary distribution preparation logic). Unfortunately, I've found it very hard to debug, or even reproduce outside of nixpkgs.

@FPtje
Copy link
Contributor Author

FPtje commented Jun 9, 2024

This appears to be a duplicate of #208959

Closing

@FPtje FPtje closed this as completed Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants