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

linuxPackages.nvidia_x11.persistenced: fix build #100991

Merged
merged 1 commit into from Oct 18, 2020

Conversation

@jonringer
Copy link
Contributor

@jonringer jonringer commented Oct 18, 2020

Motivation for this change

Tried doing a nixos-rebuild yesterday, and wasn't able to build nvidia drivers without these changes

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
@jonringer
Copy link
Contributor Author

@jonringer jonringer commented Oct 18, 2020

just ran into this again:

build flags: SHELL=/nix/store/k8p54jg8ipvnfz435mayf5bnqhw4qqap-bash-4.4-p23/bin/bash
/nix/store/k8p54jg8ipvnfz435mayf5bnqhw4qqap-bash-4.4-p23/bin/bash: pkg-config: command not found
   CC           command_server.c
In file included from /nix/store/a2n8nrsf215x01a7fv8l94crdjwf69pa-glibc-2.32-dev/include/bits/libc-header-start.h:33,
                 from /nix/store/a2n8nrsf215x01a7fv8l94crdjwf69pa-glibc-2.32-dev/include/stdlib.h:25,
                 from command_server.c:28:
/nix/store/a2n8nrsf215x01a7fv8l94crdjwf69pa-glibc-2.32-dev/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
In file included from nvidia-persistenced.h:33,
                 from command_server.c:32:
nvpd_rpc.h:9:10: fatal error: rpc/rpc.h: No such file or directory
    9 | #include <rpc/rpc.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:138: _out/Linux_x86_64/command_server.o] Error 1
builder for '/nix/store/b3nqq2njbqnsrkrxm6k9dk6yj8cfwvi2-nvidia-persistenced-455.28.drv' failed with exit code 2
building '/nix/store/xpv0fv2z8daxqzafg23xcm7v378y0crs-xserver-wrapper.drv'...
error: build of '/nix/store/b3nqq2njbqnsrkrxm6k9dk6yj8cfwvi2-nvidia-persistenced-455.28.drv' on 'ssh://build' failed: builder for '/nix/store/b3nqq2njbqnsrkrxm6k9dk6yj8cfwvi2-nvidia-persistenced-455.28.drv' failed with exit code 2
builder for '/nix/store/b3nqq2njbqnsrkrxm6k9dk6yj8cfwvi2-nvidia-persistenced-455.28.drv' failed with exit code 1
cannot build derivation '/nix/store/bh42kafz7dr088nmribq10ghi73ba77b-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/gmnyvqpdmh83nkkzfzhgv1f6bciv9s1b-nixos-system-jon-desktop-21.03.git.396f3407a28.drv': 1 dependencies couldn't be built
error: build of '/nix/store/gmnyvqpdmh83nkkzfzhgv1f6bciv9s1b-nixos-system-jon-desktop-21.03.git.396f3407a28.drv' failed

merging

@jonringer jonringer merged commit f98219c into NixOS:master Oct 18, 2020
16 checks passed
@jonringer jonringer deleted the nvidia-persistenced branch Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant