-
Notifications
You must be signed in to change notification settings - Fork 91
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
c language doesn't include gcov #100
Comments
Actually, my workaround doesn't seem to work. Appreciate any thoughts on how to get |
Ah yes, the Are you able to share your project so I can give it a try? |
If you have a Matrix client we can also talk about it in this room: https://matrix.to/#/#devshell:numtide.com |
I can't share my actual project, but I put together a minimal repo that mirrors what I'm doing in a simplified case that you can try.
I don't have a matrix client currently, but I'll look into setting one up and maybe catching you in that room sometime. Thanks for looking into this! |
I banged on it until it works: mayl/gcovDemo#1 Would you mind adding a C dependency like "libz" as well to exercise this out more? And related PR: #102 |
Hey @zimbatm, sorry for the delay on my end for this. Including Reflecting on this some more, I wonder if this is an upstream |
I think it's because gcc is being used in the stdenv too much. The wrapped gcc makes a bunch of assumptions that are not valid outside. That's also why gcov is missing, it's probably not useful for building packages. |
I have a
devshell.toml
like below:When I enter the
nix-shell
I havegcc
available from the nix store, but notgcov
I expect to have
gcov
available because when I runnix-shell -p gcc
both are available:My current workaround is to add "gcc-unwrapped" to the list of packages.
The text was updated successfully, but these errors were encountered: