Skip to content

Linux 4.14 breakage tracking issue #31640

Closed

Description

@orivej

Here is the list of packages that broke after the switch to 4.14 (bfe9c92), which was reverted back to 4.9 in eb85eb5. Probably the two legacy packages may be restricted to older kernels, and the others should be fixed.

Activity

  1. added a commit that references this issue on Nov 14, 2017
  2. NeQuissimus commented on Nov 14, 2017

    @NeQuissimus
    Member

    I need help in #31037, that should take care of VirtualBox

  3. added
    1.severity: blocker
    6.topic: kernel
    6.topic: nixos
    9.needs: community feedback
    9.needs: package (update)
    on Nov 14, 2017
  4. NeQuissimus commented on Nov 14, 2017

    @NeQuissimus
    Member

    I have been trying to get amdgpu-pro fixed for a little while now but I think it does require an update from AMD's side for kernel 4.14.x

    Or it's because I don't know make too well, the build errors out like so:

      CC [M]  /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkfd/kfd_crat.o
      CC [M]  /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkfd/kfd_rdma.o
      CC [M]  /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkfd/kfd_peerdirect.o
      CC [M]  /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkfd/kfd_ipc.o
      CC [M]  /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkfd/kfd_debugfs.o
      LD [M]  /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkfd/amdkfd.o
    make[2]: *** [/nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/Makefile:1503: _module_/tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261] Error 2
    make[1]: *** [Makefile:146: sub-make] Error 2
    make: *** [Makefile:24: __sub-make] Error 2
    make: Leaving directory '/nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/build'
    note: keeping build directory ‘/tmp/nix-build-amdgpu-pro-17.40-4.14.drv-1’
    builder for ‘/nix/store/z5q0c0q0gqd02skgxh94wgiccpx3jsc8-amdgpu-pro-17.40-4.14.drv’ failed with exit code 2
    error: build of ‘/nix/store/z5q0c0q0gqd02skgxh94wgiccpx3jsc8-amdgpu-pro-17.40-4.14.drv’ failed
    
  5. orivej commented on Nov 14, 2017

    @orivej
    ContributorAuthor

    Re. make you have posted Error 2, a secondary error. The actual cause of the failure is Error 1 somewhere above.

  6. MP2E commented on Nov 14, 2017

    @MP2E

    Working on mwprocapture now, it compiles on my local tree but doesn't work yet, as vfs_write and vfs_read are no longer exported

    Also, with PR #31148 nvidia_x11 builds and works successfully with kernel 4.14.0, on my end

  7. NeQuissimus commented on Nov 14, 2017

    @NeQuissimus
    Member

    @orivej Ah, I had to scroll WAY up :)
    It looks bad (to the untrained eye :D)...

    /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of 'drm_universal_plane_init'
          formats, format_count, type, name);
                                 ^~~~
    In file included from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_crtc.h:45:0,
                     from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drmP.h:69,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:6,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:
    /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_plane.h:548:5: note: expected 'const uint64_t * {aka const long long unsigned int *}' but argument is of type 'enum drm_plane_type'
     int drm_universal_plane_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:0:
    /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of 'drm_universal_plane_init'
          formats, format_count, type, name);
                                       ^~~~
    In file included from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_crtc.h:45:0,
                     from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drmP.h:69,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:6,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:
    /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_plane.h:548:5: note: expected 'enum drm_plane_type' but argument is of type 'const char *'
     int drm_universal_plane_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:0:
    /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:270:10: error: too few arguments to function 'drm_universal_plane_init'
       return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
              ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_crtc.h:45:0,
                     from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drmP.h:69,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:6,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:
    /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_plane.h:548:5: note: declared here
     int drm_universal_plane_init(struct drm_device *dev,
         ^~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:0:
    /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h: In function 'kcl_drm_calc_vbltimestamp_from_scanoutpos':
    /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:332:9: error: too many arguments to function 'drm_calc_vbltimestamp_from_scanoutpos'
      return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drmP.h:83:0,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/include/kcl/kcl_drm.h:6,
                     from /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.c:1:
    /nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/include/drm/drm_vblank.h:173:6: note: declared here
     bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    make[4]: *** [/nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/scripts/Makefile.build:314: /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl/kcl_drm.o] Error 1
    make[3]: *** [/nix/store/prk1nwg5s1619jbrpp67v5jr3xpv7347-linux-4.14-dev/lib/modules/4.14.0/source/scripts/Makefile.build:573: /tmp/nix-build-amdgpu-pro-17.40-4.14.drv-0/amdgpu-pro-17.40-492261/root/usr/src/amdgpu-17.40-492261/amd/amdkcl] Error 2
    

    All this "too many arguments", "too few arguments" sound like an API mismatch to me..

  8. NeQuissimus commented on Nov 14, 2017

    @NeQuissimus
    Member

    Maybe we should just undo declaring 4.14 the new default for the moment, so we unblock the channel?!

    It's pretty late where I am, somebody please do so? :) thx!

  9. MP2E commented on Nov 14, 2017

    @MP2E

    Fixed mwprocapture as of ce8dea6 !

    (Linking fully works, and I recorded video/did a quick test stream)

    @NeQuissimus no problem, I will set the attribute back to version 4.9 and it can be set back when the dust settles a bit!

  10. orivej commented on Nov 14, 2017

    @orivej
    ContributorAuthor
  11. 36 remaining items

  12. self-assigned this
    on Feb 13, 2018
  13. added
    9.needs: changelog
    and removed
    9.needs: community feedback
    9.needs: package (update)
    on Feb 21, 2018
  14. added a commit that references this issue on Feb 21, 2018
  15. vcunat commented on Feb 22, 2018

    @vcunat
    Member

    Yes, we keep all kernels supported upstream, i.e. six longterm branches now from which two are to be dropped soon. 4.14 is default in master now.

  16. adisbladis commented on Feb 22, 2018

    @adisbladis
    Member

    It should be ok to change default to 4.14 as long as 4.9 and 4.4 are still around

    4.14 is supported until January 2019 and 4.4 until February 2022 so I see no reason we should drop these. :)

  17. removed their assignment
    on Feb 23, 2018
  18. modified the milestones: 18.03, 18.09 on Apr 17, 2018
  19. Ekleog commented on Oct 10, 2018

    @Ekleog
    Member

    (triage) 4.14 is currently the default on 18.03, so I assume it has been for quite a while. If no issue has been reported… maybe this issue should be closed?

  20. fpletz commented on Oct 11, 2018

    @fpletz
    Member

    Yeah, we can close this. Just checked the remaining issues: the amdgpu PR was merged and the Intel 3D issues were fixed upstream.

  21. vcunat commented on Oct 11, 2018

    @vcunat
    Member

    amdgpu-pro bump was merged. It doesn't build now with 4.14, but that's probably just a minor libelf issue. On the whole it seems like it has few users if any.

  22. vcunat commented on Oct 11, 2018

    @vcunat
    Member

    Hmm, no, the obvious fix isn't enough:

    --- a/pkgs/os-specific/linux/amdgpu-pro/default.nix
    +++ b/pkgs/os-specific/linux/amdgpu-pro/default.nix
    @@ -164,7 +164,7 @@ in stdenv.mkDerivation rec {
         done
       '';
     
    -  buildInputs = [
    +  nativeBuildInputs = kernel.moduleBuildDependencies ++ [
         patchelf
         perl
       ];

    It fixes the ORC problem but fails later on some incompatibilities – it's apparently too new kernel (or libdrm or something) for that driver version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.severity: blocker6.topic: kernel6.topic: nixos9.needs: changelog

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions