Skip to content

Update README.md to mention GHC-9.6 linker error #129

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ You can contribute to these to help static Haskell executables:
nix-build --expr '(import ./survey/default.nix {}).haskellPackages.YOURPACKAGE.overrideAttrs (old: { configureFlags = (old.configureFlags or []) ++ ["-v" "--ghc-options=-v"]; })'
```
Look for `*** Linker:` in the GHC output.
* I get the following linker error with GHC >= 9.6
```
(.text+0x996): undefined reference to `elf_end'
/nix/store/g99d3dxbfxmnivq4snks3sr0f87fzf2h-elfutils-0.192/lib/libdw.a(linux-pid-attach.o): in function `pid_detach':
```
Try with GHC-9.4, see: https://github.com/cdepillabout/example-static-haskell-nix/blob/master/nix/overlay.nix#L11
* Can I build Stack projects with resolvers that are too old to be supported by Stack >= 2?
* No. For that you need need to use an old `static-haskell-nix` version: The one before [this PR](https://github.com/nh2/static-haskell-nix/pull/98) was merged.
* I get some other error. Can I just file an issue and have you help me with it?
Expand Down