-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update to nixos-23.05 #116
Conversation
…from the set of working Haskell packages
…o needs to be statified.
…ed because it pulls in krb5
Trying
fails with linker errors regarding libelf.
Then we get
Unclear what
|
Debugging why it still has the elf-related linker error after disabling DWARF: nix-build --no-out-link --expr '(import ./survey/default.nix {}).working.hello.overrideAttrs (old: { configureFlags = (old.configureFlags or []) ++ ["--ghc-options=-v"]; })' |
It picked the one from the line below it due to `let rec` instead of the one from the top-level arguments.
The motivation is that @aherrmann and @jonathanlking want to use Bazel and found that it might it easier to use `.a` files in TH than to try to provide `.so` AND `.a` files of all dependencies.
We overrode the GHC incorrectly, overriding only |
@jonathanlking, @chpatrick and me added support for
but not much more because the Stackage in nixpkgs is targeting GHC 9.2. |
survey/default.nix
Outdated
(ghcPackage: | ||
ghcPackage.override { enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; } | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the rules_haskell use-case this requires
(ghcPackage: | |
ghcPackage.override { enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; } | |
) | |
(ghcPackage: | |
ghcPackage.override { | |
enableRelocatedStaticLibs = useArchiveFilesForTemplateHaskell; | |
enableShared = !useArchiveFilesForTemplateHaskell; | |
} | |
) |
That is because we require a static runtime to load static Haskell libraries for template Haskell.
Otherwise the build fails with errors like these (tested here):
/nix/store/fhr7av2b52a8dz8lii59bvydgx0vw5ap-binutils-2.39/bin/ld: cannot find -lHScolour-2.3.6-ghc9.0.2: No such file or directory
collect2: error: ld returned 1 exit status
`cc_wrapper-python' failed in phase `Linker'. (Exit code: 1)
Those no longer packaged by nixpkgs, and 8.8, so that we can assume >= 8.10.
I pushed some new fixes. Now only 9 packages fail for |
…s-23.05. Only minimal patches are put on top of the `nixos-23.05` branch to support more of Stackage. All have nixpkgs PRs. nix-build --no-link survey/default.nix -A workingStackageExecutables | wc -l 368
I have fixed a few more of the 368 Stackage executables build statically:
The 28 that do not build are:
Compare this to previous numbers. Merging. |
Work on ZuriHac 2023 with @jonathanlking: