NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.59k stars 13.74k forks source link

Build failure: evdi #344058

Open Kupac opened 1 week ago

Kupac commented 1 week ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. Create nixos configuration with boot.kernelPackages = pkgs.linuxPackages_6_1;
  2. Include option: services.xserver.videoDrivers = [ "displaylink" "modesetting" ];
  3. nixos-rebuild build

    Build log

(truncated build log)

...
build/source/module/evdi_fb.c: In function 'evdifb_create':
/build/source/module/evdi_fb.c:408:23: error: 'struct drm_fb_helper' has no member named 'info'
  408 |         efbdev->helper.info = info;
      |                       ^
/build/source/module/evdi_fb.c: In function 'evdi_fbdev_destroy':
/build/source/module/evdi_fb.c:468:27: error: 'struct drm_fb_helper' has no member named 'info'
  468 |         if (efbdev->helper.info) {
      |                           ^
/build/source/module/evdi_fb.c:469:38: error: 'struct drm_fb_helper' has no member named 'info'
  469 |                 info = efbdev->helper.info;
      |                                      ^
/build/source/module/evdi_fb.c: In function 'evdi_fbdev_unplug':
/build/source/module/evdi_fb.c:560:27: error: 'struct drm_fb_helper' has no member named 'info'
  560 |         if (efbdev->helper.info) {
      |                           ^
/build/source/module/evdi_fb.c:563:38: error: 'struct drm_fb_helper' has no member named 'info'
  563 |                 info = efbdev->helper.info;

...

make[2]: *** [/nix/store/yyp3x1hyllmm490b43h4zqyrbyzxc28v-linux-6.1.111-dev/lib/modules/6.1.111/source/Makefile:2009: /build/source/module] Error 2
make[1]: *** [Makefile:87: module] Error 2
make[1]: Leaving directory '/build/source/module'
make: *** [Makefile:13: module] Error 2

Additional context

Without pinning kernel version to 6.1 it's all good (kernel 6.6)

Notify maintainers

@abbradar

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.102, NixOS, 24.11 (Vicuna), 24.11.20240921.9357f4f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.7`
 - nixpkgs: `/nix/store/y6205wq8hxvpqvl8l9d1n9xah01kg0lq-source`

Add a :+1: reaction to issues you find important.

ghpzin commented 1 week ago

Hydra: https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.linuxKernel.packages.linux_6_1.evdi.x86_64-linux

Started after update to 1.14.6 and looking at changes: https://github.com/DisplayLink/evdi/compare/v1.14.5...v1.14.6 This should be the one: https://github.com/DisplayLink/evdi/pull/467

Looking at branch list here: https://github.com/torvalds/linux/commit/9877d8f6bc374912b08dfe862cddbb78b395a5ef it does not appear to be included in 6.1, even in current 6.1.111: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/drm/drm_fb_helper.h?h=v6.1.111&id=e526b12bf9169887f8cfe5afed2b10e56bdca4c3#n132 So it seems to be an upstream evdi issue.