-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Introduce DWARF-enabled Haskell package set #51987
Comments
Ahh, here we are: let
withDwarf = haskellPackages: haskellPackages.override {
overrides = self: super: {
mkDerivation = xs: super.mkDerivation (xs //
{ configureFlags = (xs.configureFlags or "") + "--ghc-options=-g --disable-executable-stripping --disable-library-stripping"; }
);
};
}; |
Have you looked at separate-debug-info.sh? https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/separate-debug-info.sh It would put debug info into a separate output. That would avoid the additional package set. |
Will that work easily for GHC? I noticed that on https://ghc.haskell.org/trac/ghc/wiki/DWARF#OpenIssues it says:
which sounds to me like it won't work straight away. |
Yeah it will probably require modifications to some things but IMO a separate output makes more sense in this case than a separate package set. |
That's a fair point. |
I'm all for what we can get as soon as possible. If we can get the separate output easily, let's do it. If it's a lot of work and we need to do more compiling until we get there, let's do that instead. |
I think that needs an extra space, like |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Issue description
While
haskell.lib.enableDWARFDebugging
now exists, in practice it's not very useful since stack unwinding rarely succeeds unless all libraries in the process's image have unwind information. I think what we really want is a whole package set:haskell.packages.ghc864.withDwarf
.I thought implementing this would be straightforward; unfortunately it seems I was wrong. My attempt was:
Unfortunately this gives rise to
The text was updated successfully, but these errors were encountered: