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

nvidia building failure for linux 5 #57062

Closed
SchrodingerZhu opened this issue Mar 8, 2019 · 23 comments
Closed

nvidia building failure for linux 5 #57062

SchrodingerZhu opened this issue Mar 8, 2019 · 23 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@SchrodingerZhu
Copy link

/build/kernel/nvidia/os-interface.c: In function 'os_get_current_time':
/build/kernel/nvidia/os-interface.c:432:5: error: implicit declaration of function 'do_gettimeofday'; did you mean 'efi_gettimeofday'? [-Werror=implicit-function-declaration]
     do_gettimeofday(&tm);
     ^~~~~~~~~~~~~~~
     efi_gettimeofday
  CC [M]  /build/kernel/nvidia/nv-kthread-q.o
  CC [M]  /build/kernel/nvidia/nv-kthread-q-selftest.o
  CC [M]  /build/kernel/nvidia/nv-memdbg.o
  CC [M]  /build/kernel/nvidia/nv-ibmnpu.o
  CC [M]  /build/kernel/nvidia/nv-report-err.o
  CC [M]  /build/kernel/nvidia/nv-rsync.o
  CC [M]  /build/kernel/nvidia/nv-msi.o
  CC [M]  /build/kernel/nvidia/nv_uvm_interface.o
  CC [M]  /build/kernel/nvidia/nvlink_linux.o
  CC [M]  /build/kernel/nvidia/linux_nvswitch.o
  CC [M]  /build/kernel/nvidia-uvm/uvm8_turing.o
  CC [M]  /build/kernel/nvidia-uvm/uvm8_turing_mmu.o
cc1: some warnings being treated as errors
make[3]: *** [/nix/store/1zs02axvl269z99r1c3wc0mbvw2y2dj7-linux-5.0-rc8-dev/lib/modules/5.0.0-rc8/source/scripts/Makefile.build:277: /build/kernel/nvidia/os-interface.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/kernel/nvidia/nvlink_linux.c: In function 'nvlink_sleep':
/build/kernel/nvidia/nvlink_linux.c:555:5: error: implicit declaration of function 'do_gettimeofday'; did you mean 'efi_gettimeofday'? [-Werror=implicit-function-declaration]
     do_gettimeofday(&tm_aux);
     ^~~~~~~~~~~~~~~
     efi_gettimeofday
cc1: some warnings being treated as errors
make[3]: *** [/nix/store/1zs02axvl269z99r1c3wc0mbvw2y2dj7-linux-5.0-rc8-dev/lib/modules/5.0.0-rc8/source/scripts/Makefile.build:276: /build/kernel/nvidia/nvlink_linux.o] Error 1

@eadwu
Copy link
Member

eadwu commented Mar 8, 2019

Fixed in master with the 390.116 release, though it hasn't been backported.

@srid
Copy link
Contributor

srid commented Mar 12, 2019

It is failing on nixos-unstable (has 415.27) as well.

@eadwu
Copy link
Member

eadwu commented Mar 12, 2019

Should still be fixed in master, although with the 418.43 release.

@SchrodingerZhu
Copy link
Author

Is there a way to install 418.43 now? I really need an upgrade now. @eadwu

@eadwu
Copy link
Member

eadwu commented Mar 13, 2019

Either switch to a channel that has the commit or see here [1].

[1] #51768 (comment)

@SchrodingerZhu
Copy link
Author

checked. 418.43 in nixos-unstable-small works well.

@matthew-piziak
Copy link
Contributor

I know how to switch to unstable for specific packages, but not for services. I'm assuming that what I need to update is services.xserver.videoDrivers = [ "nvidia" "intel" ];. But I only know how to get unstable-pkgs = import <unstable> {};. How do I get unstable-services?

@eadwu
Copy link
Member

eadwu commented Mar 20, 2019

The services used your channel should be fine since I believe there hasn't really been any major changes [1].

[1] https://github.com/NixOS/nixpkgs/commits/master/nixos/modules/hardware/video

@matthew-piziak
Copy link
Contributor

Yeah, I moved to 18.09 and now I'm just getting this.

[vo/gpu/x11] X11 error: BadValue (integer parameter out of range for operation)
[vo/gpu/x11] Type: 0, display: 0x7f8af443c700, resourceid: 0, serial: 6a
[vo/gpu/x11] Error code: 2, request code: 9a, minor code: 3
[vo/gpu] Could not create GLX context!
[vo/gpu/x11] X11 error: BadValue (integer parameter out of range for operation)
[vo/gpu/x11] Type: 0, display: 0x7f8af44e87f0, resourceid: 0, serial: 6a
[vo/gpu/x11] Error code: 2, request code: 9a, minor code: 3
[vo/gpu] Could not create GLX context!
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO.

@eadwu
Copy link
Member

eadwu commented Mar 20, 2019

Where are you seeing the errors? While vdpau still works for hardware acceleration, I believe NVDEC is the recommended way by NVIDIA.

@matthew-piziak
Copy link
Contributor

@eadwu Rebooted and they're gone. Classic.

A novice was trying to fix a broken Lisp machine by turning the power off and on.

Knight, seeing what the student was doing, spoke sternly: “You cannot fix a machine by just power-cycling it with no understanding of what is going wrong.”

Knight turned the machine off and on.

The machine worked.

@matthew-piziak
Copy link
Contributor

matthew-piziak commented Mar 20, 2019

These were showing up in mpv after upgrading to 18.09 from 18.03.

@unode
Copy link
Member

unode commented Apr 14, 2019

Seeing the do_gettimeofday error also in 19.03 when using kernelPackages = pkgs.linuxPackages_latest; (which pulls nvidia-x11-415.27).

@eadwu
Copy link
Member

eadwu commented Apr 14, 2019

See #57062 (comment).

@shosti
Copy link
Contributor

shosti commented Apr 18, 2019

Are there plans to backport the 418 driver to 19.03? (I'm not sure what the stability policy is around nvidia drivers...)

@eadwu
Copy link
Member

eadwu commented Apr 19, 2019

See #19955 (comment), normally I send a backport request since I don't keep track of the branches.

@shosti
Copy link
Contributor

shosti commented Apr 19, 2019

If I’m reading correctly, 418 is the long-lived version so it should be in the release branch (i.e. 19.03)?

@nek0
Copy link
Contributor

nek0 commented May 16, 2019

There is also an issue for me building nvidiaLegacy390 with the current linux_latest kernel...

@haslersn
Copy link
Contributor

Is this still up to date?

@nek0
Copy link
Contributor

nek0 commented Dec 21, 2019

@haslersn yes

@stale
Copy link

stale bot commented Jun 18, 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 18, 2020
@vcunat
Copy link
Member

vcunat commented Jun 18, 2020

This has long been solved. 5.0 kernels are gone and nvidia builds fine up to 5.6. But nvidia will probably always lag behind a bit, e.g. currently it won't build with 5.7: #90459

@vcunat vcunat closed this as completed Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

9 participants