8 Replies Latest reply on May 20, 2018 11:30 PM by tv4fun

    Compiling amdgpu 17.50 fails with recent kernels

    tkalfaoglu

      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'

        • Re: Compiling amdgpu 17.50 fails with recent kernels
          amdmatt

          This would be expected behaviour, Fedora is not a supported distribution according to the release notes.

          Compatible Operating Systems

            • RedHat Enterprise Linux 7.3 (64-bit version)
            • RedHat Enterprise Linux 6.9 (64-bit version)
            • CentOS 7.3 (64-bit version)
            • CentOS 6.9 (64-bit version)
            • Ubuntu 16.04.3 (64-bit version)
            • SLED/SLES 12 SP2 (64-bit version)

          AMDGPU-PRO Driver for Linux® Release Notes

            • Re: Compiling amdgpu 17.50 fails with recent kernels
              znorrt

              Hi,

              I had also an issue compiling amdgpu module (for "new" 4.13 kernel) during last kernel update.

              (I use ubuntu 16.04.3. with amdgpu 17.40 installed for my rx580)

              I have to boot on the old 4.10 kernel instead of the new 4.13 kernel which can't be installed correctly (so grub don"t propose it)

              (I can post the logs if wanted)

              I tried to build manually the amdgpu module with no succes (sudo dkms build -m amdgpu -v 17.40-492261 -k 4.13.0-26-generic)

              If someone has an idea to repair this issue it would be appreciated, thanks by advance !

              Tell me if i have to open another specific discussion for my case.

              • Re: Compiling amdgpu 17.50 fails with recent kernels
                rafaelrs

                I also had issue with compiling for higher kernel in CentOS 7.4 (natively it haves kernel 3.10 only), but it's version below 4.10. It's kernel installed from elrepo, kernel-lt (long-term). Below log of process:

                 

                [root@localhost ~]# uname -r

                4.4.116-1.el7.elrepo.x86_64

                [root@localhost ~]# LANG=C dkms autoinstall

                 

                Kernel preparation unnecessary for this kernel.  Skipping...

                 

                Running the pre_build script:

                 

                Building module:

                cleaning build area...

                make -j4 KERNELRELEASE=4.4.116-1.el7.elrepo.x86_64 -j4 -C /lib/modules/4.4.116-1.el7.elrepo.x86_64/build M=/var/lib/dkms/amdgpu/17.50-511655.el7/build...(bad exit status: 2)

                Error! Bad return status for module build on kernel: 4.4.116-1.el7.elrepo.x86_64 (x86_64)

                Consult /var/lib/dkms/amdgpu/17.50-511655.el7/build/make.log for more information.

                [root@localhost ~]# cat /var/lib/dkms/amdgpu/17.50-511655.el7/build/make.log

                DKMS make.log for amdgpu-17.50-511655.el7 for kernel 4.4.116-1.el7.elrepo.x86_64 (x86_64)

                Mon Feb 19 19:49:07 MSK 2018

                make: Entering directory `/usr/src/kernels/4.4.116-1.el7.elrepo.x86_64'

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

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

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

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

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

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

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

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

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

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

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

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

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

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

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

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

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

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

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

                make[2]: *** [/var/lib/dkms/amdgpu/17.50-511655.el7/build/ttm/ttm_memory.o] Error 1

                make[1]: *** [/var/lib/dkms/amdgpu/17.50-511655.el7/build/ttm] Error 2

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

                In file included from <command-line>:0:0:

                ././include/linux/kconfig.h:55:1: fatal error: /usr/src/kernels/4.4.116-1.el7.elrepo.x86_64/include/drm/drm_backport.h: No such file or directory

                #endif /* __LINUX_KCONFIG_H */

                ^

                compilation terminated.

                make[2]: *** [/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkfd/kfd_module.o] Error 1

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

                make[2]: *** [/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkfd/kfd_device.o] Error 1

                make[2]: *** [/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkfd/kfd_chardev.o] Error 1

                make[2]: *** [/var/lib/dkms/amdgpu/17.50-511655.el7/build/amd/amdkfd/kfd_topology.o] Error 1

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

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

                make: Leaving directory `/usr/src/kernels/4.4.116-1.el7.elrepo.x86_64'

                [root@localhost ~]#

                 

                 

                How to fix that?

                Also will be glad to hear when we will see newer amdgpu-pro driver, when driver for mining will be updated and is there fix for non working RX 550 Lexa PRO in Linux?

              • Re: Compiling amdgpu 17.50 fails with recent kernels
                tkalfaoglu

                Yep, now the kernel has gone mainstream. I hope the update to 17.50 is ready?

                 

                  Running scriptlet: kernel-core-4.15.7-300.fc27.x86_64                                                                                      15/15

                Error! Bad return status for module build on kernel: 4.15.7-300.fc27.x86_64 (x86_64)

                Consult /var/lib/dkms/amdgpu/17.50-511655.el7/build/make.log for more information.

                • Re: Compiling amdgpu 17.50 fails with recent kernels
                  tv4fun

                  Can we get some idea when we can expect a driver update? It's been nearly 5 months since this issue was opened and the drivers are still out of date. This is really poor product support.