3 Replies Latest reply on Feb 18, 2017 9:06 AM by empiredave

    [Linux] AMDGPU-Pro - kernel 4.7




      I have an issue installing AMDGPU-Pro driver (version 16.30.3-315407) on a Linux Mint 18 with kernel 4.7 and Radeon R9 290.

      It's failing during build of DKMS module - see below


      Install script output:

      Loading new amdgpu-pro-16.30.3-315407 DKMS files...

      First Installation: checking all kernels...

      Building only for 4.7.0-040700-generic

      Building for architecture amd64

      Building initial module for 4.7.0-040700-generic

      Error! Bad return status for module build on kernel: 4.7.0-040700-generic (amd64)

      Consult /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/make.log for more information.

      Content of "/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/make.log" logfile

      DKMS make.log for amdgpu-pro-16.30.3-315407 for kernel 4.7.0-040700-generic (amd64)

      Út srp  9 17:32:17 CEST 2016

      make: Vstupuje se do adresáře „/usr/src/linux-headers-4.7.0-040700-generic“

        LD      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/built-in.o

        LD      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/built-in.o

        CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o

      In file included from /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../backport/backport.h:9:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h: In function ‘kcl_ttm_bo_reserve’:

      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:88:9: error: too many arguments to function ‘ttm_bo_reserve’

        return ttm_bo_reserve(bo, interruptible, no_wait, false, ticket);


      In file included from /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,

                       from /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../backport/backport.h:9,

                       from <command-line>:0:

      include/drm/ttm/ttm_bo_driver.h:858:19: note: declared here

      static inline int ttm_bo_reserve(struct ttm_buffer_object *bo,


      scripts/Makefile.build:289: návod pro cíl „/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o“ selhal

      make[2]: *** [/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o] Chyba 1

      scripts/Makefile.build:440: návod pro cíl „/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu“ selhal

      make[1]: *** [/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu] Chyba 2

      Makefile:1463: návod pro cíl „_module_/var/lib/dkms/amdgpu-pro/16.30.3-315407/build“ selhal

      make: *** [_module_/var/lib/dkms/amdgpu-pro/16.30.3-315407/build] Chyba 2

      make: Opouští se adresář „/usr/src/linux-headers-4.7.0-040700-generic“

      Is there any possibility to install AMDGPU-Pro driver with successfully builded DKMS module on linux kernel 4.7?

        • Re: [Linux] AMDGPU-Pro - kernel 4.7

          it is more than just 4.7  I tried 4.6  all the way down to 4.4



          Linux aio 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux





          DKMS make.log for amdgpu-pro-16.30.3-315407 for kernel 4.2.8-040208-generic (x86_64)

          Sunday 28 August  08:37:59 AEST 2016

          make: Entering directory '/usr/src/linux-headers-4.2.8-040208-generic'

            LD      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/built-in.o

            LD      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/built-in.o

            CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o

          <command-line>:0:18: error: invalid digit "8" in octal constant

          /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/../backport/include/kcl/kcl_drm.h:68:55: note: in expansion of macro ‘UBUNTU_BUILD_NUM’

             && LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) && (UBUNTU_BUILD_NUM < 36)) \


          scripts/Makefile.build:258: recipe for target '/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o' failed

          make[2]: *** [/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o] Error 1

          scripts/Makefile.build:403: recipe for target '/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu' failed

          make[1]: *** [/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu] Error 2

          Makefile:1386: recipe for target '_module_/var/lib/dkms/amdgpu-pro/16.30.3-315407/build' failed

          make: *** [_module_/var/lib/dkms/amdgpu-pro/16.30.3-315407/build] Error 2

          make: Leaving directory '/usr/src/linux-headers-4.2.8-040208-generic'

          • Re: [Linux] AMDGPU-Pro - kernel 4.7

            The current DKMS package (and, more to the point, the source code it contains) targets the 4.4 kernel in Ubuntu 16.04. I would expect it to install on a stock Mint 18 install (which has a similar 4.4 kernel, doesn't it ?) although I have not tried that myself. We are implementing the Kernel Compatibility Layer code now which includes code paths for older and newer kernels so subsequent amdgpu-pro releases should install successfully on a broader range of kernels.


            Unless you need OpenCL/Vulkan if you are using a 4.7 kernel then one option would be updating your userspace drivers (with eg. Padoka ppa) and running an all-open stack. Alternatively there are some tweaked versions of the amdgpu-pro stack which can run on an upstream 4.7 driver.


            Let me know what your goals/priorities are and I'll try to point you in the best direction.