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

19.03: stable nvidia driver doesn't build with kernel 5.2.x (pkgs.linuxPackages_latest) #67482

Closed
adamtulinius opened this issue Aug 26, 2019 · 3 comments
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: kernel The Linux kernel

Comments

@adamtulinius
Copy link
Member

Describe the bug
I upgraded my local nixpkgs checkout today, and couldn't rebuild my system. Probably due to the kernel being upgraded to 5.2.x.

$ nix build nixpkgs.linuxPackages_latest.nvidia_x11
builder for '/nix/store/zarb4vcjgcp41cz2fakf8galqx50sxbm-nvidia-x11-418.74-5.2.9.drv' failed with exit code 2; last 10 log lines:
  /nix/store/gs2iagylqxayyva54jyiy58x5mplmcls-linux-5.2.9-dev/lib/modules/5.2.9/source/include/linux/mm.h:1080:6: note: previous declaration of 'put_user_pages' was here
   void put_user_pages(struct page **pages, unsigned long npages);
        ^~~~~~~~~~~~~~
  make[3]: *** [/nix/store/gs2iagylqxayyva54jyiy58x5mplmcls-linux-5.2.9-dev/lib/modules/5.2.9/source/scripts/Makefile.build:279: /build/kernel/nvidia-uvm/uvm8_tools.o] Error 1
  make[3]: *** Waiting for unfinished jobs....
  make[2]: *** [/nix/store/gs2iagylqxayyva54jyiy58x5mplmcls-linux-5.2.9-dev/lib/modules/5.2.9/source/Makefile:1597: _module_/build/kernel] Error 2
  make[2]: Leaving directory '/nix/store/gs2iagylqxayyva54jyiy58x5mplmcls-linux-5.2.9-dev/lib/modules/5.2.9/build'
  make[1]: *** [Makefile:179: sub-make] Error 2
  make[1]: Leaving directory '/nix/store/gs2iagylqxayyva54jyiy58x5mplmcls-linux-5.2.9-dev/lib/modules/5.2.9/source'
  make: *** [Makefile:81: modules] Error 2
[0 built (1 failed)]
error: build of '/nix/store/zarb4vcjgcp41cz2fakf8galqx50sxbm-nvidia-x11-418.74-5.2.9.drv' failed

To Reproduce
Set boot.kernelPackages = pkgs.linuxPackages_latest; and rebuild on a system using the non-legacy NVIDIA driver.

Expected behavior
Packages in stable should work with each other.

Additional context
Upgrading to the same version as in #66597 fixes the build problems.

Metadata

$ nix run nixpkgs.nix-info -c nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 5.2.9, NixOS, 19.03.git.3924b34 (Koi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2.2`
 - nixpkgs: `/etc/nixos/nixpkgs`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- linuxPackages_latest.nvidia_x11
# a list of nixos modules affected by the problem
module:
@adamtulinius adamtulinius added the 0.kind: bug Something is broken label Aug 26, 2019
@eadwu
Copy link
Member

eadwu commented Aug 26, 2019

#57062 (comment).

@adamtulinius
Copy link
Member Author

#57062 (comment).

I'm not sure what you're hinting at. I can easily get this working myself, but it's still a bug in 19.03.

If it's fear of backporting a newer driver, it should be doable to only use the newer driver when also using linuxPackages_latest (at least in theory :P), especially since the old one doesn't work at all.

@veprbl veprbl added the 6.topic: kernel The Linux kernel label Aug 27, 2019
@stale
Copy link

stale bot commented Jun 2, 2020

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:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 2, 2020
@eadwu eadwu closed this as completed Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: kernel The Linux kernel
Projects
None yet
Development

No branches or pull requests

3 participants