AnsweredAssumed Answered

Compiling amdgpu 17.50 fails with recent kernels

Question asked by tkalfaoglu on Jan 9, 2018
Latest reply on May 18, 2018 by tv4fun

When I try to install the amdgpu 17.50, it gives an error at the dkms building level, and the log file shows these..

What shall I do?  This is Fedora 27...

 

DKMS make.log for amdgpu-17.50-511655.el7 for kernel 4.14.11-300.fc27.x86_64 (x86_64)

Tue Jan  9 22:55:08 +03 2018

make: Entering directory '/usr/src/kernels/4.14.11-300.fc27.x86_64'

  AR      /var/lib/dkms/amdgpu/17.50-511655.el7/build/built-in.o

  AR      /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/built-in.o

  AR      /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/built-in.o

  CC [M]  /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_drv.o

  CC [M]  /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.o

In file included from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.c:1:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:284:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’

      formats, format_count, type, name);

                             ^~~~

In file included from ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.c:1:

./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 /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.c:1:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:284:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’

      formats, format_count, type, name);

                                   ^~~~

In file included from ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.c:1:

./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 /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.c:1:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:283: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 ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.c:1:

./include/drm/drm_plane.h:548:5: note: declared here

int drm_universal_plane_init(struct drm_device *dev,

     ^~~~~~~~~~~~~~~~~~~~~~~~

In file included from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9:0,

                 from <command-line>:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:284:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’

      formats, format_count, type, name);

                             ^~~~

In file included from ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9,

                 from <command-line>:0:

./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 /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9:0,

                 from <command-line>:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:284:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’

      formats, format_count, type, name);

                                   ^~~~

In file included from ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9,

                 from <command-line>:0:

./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 /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9:0,

                 from <command-line>:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:283: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 ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9,

                 from <command-line>:0:

./include/drm/drm_plane.h:548:5: note: declared here

int drm_universal_plane_init(struct drm_device *dev,

     ^~~~~~~~~~~~~~~~~~~~~~~~

make[2]: *** [scripts/Makefile.build:314: /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl/kcl_drm.o] Error 1

make[1]: *** [scripts/Makefile.build:573: /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkcl] Error 2

make[1]: *** Waiting for unfinished jobs....

  CC [M]  /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_device.o

/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_drv.c: At top level:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_drv.c:829:3: error: ‘struct drm_driver’ has no member named ‘set_busid’

  .set_busid = drm_pci_set_busid,

   ^~~~~~~~~

/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_drv.c:829:15: error: ‘drm_pci_set_busid’ undeclared here (not in a function); did you mean ‘drm_irq_busid’?

  .set_busid = drm_pci_set_busid,

               ^~~~~~~~~~~~~~~~~

               drm_irq_busid

make[2]: *** [scripts/Makefile.build:314: /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_drv.o] Error 1

make[2]: *** Waiting for unfinished jobs....

In file included from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9:0,

                 from <command-line>:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:284:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’

      formats, format_count, type, name);

                             ^~~~

In file included from ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9,

                 from <command-line>:0:

./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 /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9:0,

                 from <command-line>:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:284:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’

      formats, format_count, type, name);

                                   ^~~~

In file included from ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9,

                 from <command-line>:0:

./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 /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9:0,

                 from <command-line>:0:

/var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:283: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 ./include/drm/drm_crtc.h:45:0,

                 from ./include/drm/drmP.h:69,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/include/kcl/kcl_drm.h:6,

                 from /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/../include/../backport/backport.h:9,

                 from <command-line>:0:

./include/drm/drm_plane.h:548:5: note: declared here

int drm_universal_plane_init(struct drm_device *dev,

     ^~~~~~~~~~~~~~~~~~~~~~~~

make[2]: *** [scripts/Makefile.build:314: /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu/amdgpu_device.o] Error 1

make[1]: *** [scripts/Makefile.build:573: /var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdgpu] Error 2

make: *** [Makefile:1511: _module_/var/lib/dkms/amdgpu/17.50-511655.el7/build] Error 2

make: Leaving directory '/usr/src/kernels/4.14.11-300.fc27.x86_64'

Outcomes