10 Replies Latest reply on Aug 22, 2018 8:46 AM by shawn_kearney

    amdgpu-install 18.10 fails on Centos7.5

    jrv

      On Dell M6800 with Centos 7.5

      $ yum install kernel-devel kernel-headers

      # extract amdgpu-pro-18.10-572953.tar.xz to /tmp

      $ cd /tmp/amdgpu-pro-18.10-572953

      $ ./amdgpu-install

      # ./amdgpu-install

      [amdgpu-pro-local]

      Name=AMD amdgpu Pro local repository

      baseurl=file:///var/opt/amdgpu-pro-local

      enabled=1

      gpgcheck=0

       

      Loaded plugins: fastestmirror, langpacks

      Loading mirror speeds from cached hostfile

      * base: ftp.linux.ncsu.edu

      * epel: mirror.steadfast.net

      * extras: mirror.team-cymru.com

      * nux-dextop: mirror.li.nux.ro

      * updates: mirror.team-cymru.com

      amdgpu-pro-local                                                                         | 2.9 kB  00:00:00    

      Resolving Dependencies

      --> Running transaction check

      ---> Package amdgpu.x86_64 0:18.10-572953.el7 will be installed

      --> Processing Dependency: mesa-amdgpu-libOSMesa = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: llvm-amdgpu-libs = 1:5.0-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: amdgpu-core = 18.10-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: glamor-amdgpu = 1.19.0-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libEGL = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libGLES = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: amdgpu-dkms = 18.10-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-vdpau-drivers = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libwayland-egl = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libglapi = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: libwayland-amdgpu-server = 1.14.0-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libGL = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-filesystem = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libxatracker = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-dri-drivers = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: libwayland-amdgpu-client = 1.14.0-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: libdrm-amdgpu = 1:2.4.89-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: mesa-amdgpu-libgbm = 1:17.3.3-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: ids-amdgpu = 1.0.0-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Processing Dependency: xorg-x11-amdgpu-drv-amdgpu = 1:1.4.0-572953.el7 for package: amdgpu-18.10-572953.el7.x86_64

      --> Running transaction check

      ---> Package amdgpu-core.noarch 0:18.10-572953.el7 will be installed

      ---> Package amdgpu-dkms.noarch 0:18.10-572953.el7 will be installed

      ---> Package glamor-amdgpu.x86_64 0:1.19.0-572953.el7 will be installed

      ---> Package ids-amdgpu.noarch 0:1.0.0-572953.el7 will be installed

      ---> Package libdrm-amdgpu.x86_64 1:2.4.89-572953.el7 will be installed

      ---> Package libwayland-amdgpu-client.x86_64 0:1.14.0-572953.el7 will be installed

      ---> Package libwayland-amdgpu-server.x86_64 0:1.14.0-572953.el7 will be installed

      ---> Package llvm-amdgpu-libs.x86_64 1:5.0-572953.el7 will be installed

      ---> Package mesa-amdgpu-dri-drivers.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-filesystem.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libEGL.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libGL.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libGLES.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libOSMesa.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libgbm.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libglapi.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libwayland-egl.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-libxatracker.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package mesa-amdgpu-vdpau-drivers.x86_64 1:17.3.3-572953.el7 will be installed

      ---> Package xorg-x11-amdgpu-drv-amdgpu.x86_64 1:1.4.0-572953.el7 will be installed

      --> Finished Dependency Resolution

       

      Dependencies Resolved

       

      ================================================================================================================

      Package                            Arch           Version                       Repository                Size

      ================================================================================================================

      Installing:

      amdgpu                             x86_64         18.10-572953.el7              amdgpu-pro-local         2.7 k

      Installing for dependencies:

      amdgpu-core                        noarch         18.10-572953.el7              amdgpu-pro-local         2.4 k

      amdgpu-dkms                        noarch         18.10-572953.el7              amdgpu-pro-local         6.9 M

      glamor-amdgpu                      x86_64         1.19.0-572953.el7             amdgpu-pro-local          80 k

      ids-amdgpu                         noarch         1.0.0-572953.el7              amdgpu-pro-local         3.7 k

      libdrm-amdgpu                      x86_64         1:2.4.89-572953.el7           amdgpu-pro-local          69 k

      libwayland-amdgpu-client           x86_64         1.14.0-572953.el7             amdgpu-pro-local          58 k

      libwayland-amdgpu-server           x86_64         1.14.0-572953.el7             amdgpu-pro-local          79 k

      llvm-amdgpu-libs                   x86_64         1:5.0-572953.el7              amdgpu-pro-local          19 M

      mesa-amdgpu-dri-drivers            x86_64         1:17.3.3-572953.el7           amdgpu-pro-local          47 M

      mesa-amdgpu-filesystem             x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         2.4 k

      mesa-amdgpu-libEGL                 x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         370 k

      mesa-amdgpu-libGL                  x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         597 k

      mesa-amdgpu-libGLES                x86_64         1:17.3.3-572953.el7           amdgpu-pro-local          14 k

      mesa-amdgpu-libOSMesa              x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         7.7 M

      mesa-amdgpu-libgbm                 x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         127 k

      mesa-amdgpu-libglapi               x86_64         1:17.3.3-572953.el7           amdgpu-pro-local          39 k

      mesa-amdgpu-libwayland-egl         x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         6.7 k

      mesa-amdgpu-libxatracker           x86_64         1:17.3.3-572953.el7           amdgpu-pro-local         4.7 M

      mesa-amdgpu-vdpau-drivers          x86_64         1:17.3.3-572953.el7           amdgpu-pro-local          15 M

      xorg-x11-amdgpu-drv-amdgpu         x86_64         1:1.4.0-572953.el7            amdgpu-pro-local         321 k

       

      Transaction Summary

      ================================================================================================================

      Install  1 Package (+20 Dependent packages)

       

      Total download size: 102 M

      Installed size: 102 M

      Is this ok [y/d/N]: y

      Downloading packages:

      ----------------------------------------------------------------------------------------------------------------

      Total                                                                           405 MB/s | 102 MB  00:00:00    

      Running transaction check

      Running transaction test

      Transaction test succeeded

      Running transaction

        Installing : amdgpu-core-18.10-572953.el7.noarch                                                         1/21

        Installing : 1:mesa-amdgpu-libglapi-17.3.3-572953.el7.x86_64                                             2/21

        Installing : libwayland-amdgpu-server-1.14.0-572953.el7.x86_64                                           3/21

        Installing : 1:mesa-amdgpu-filesystem-17.3.3-572953.el7.x86_64                                           4/21

        Installing : ids-amdgpu-1.0.0-572953.el7.noarch                                                          5/21

        Installing : 1:libdrm-amdgpu-2.4.89-572953.el7.x86_64                                                    6/21

        Installing : 1:mesa-amdgpu-libgbm-17.3.3-572953.el7.x86_64                                               7/21

        Installing : glamor-amdgpu-1.19.0-572953.el7.x86_64                                                      8/21

        Installing : libwayland-amdgpu-client-1.14.0-572953.el7.x86_64                                           9/21

        Installing : 1:mesa-amdgpu-libEGL-17.3.3-572953.el7.x86_64                                              10/21

        Installing : 1:xorg-x11-amdgpu-drv-amdgpu-1.4.0-572953.el7.x86_64                                       11/21

        Installing : 1:mesa-amdgpu-dri-drivers-17.3.3-572953.el7.x86_64                                         12/21

        Installing : 1:mesa-amdgpu-libxatracker-17.3.3-572953.el7.x86_64                                        13/21

        Installing : 1:mesa-amdgpu-vdpau-drivers-17.3.3-572953.el7.x86_64                                       14/21

        Installing : 1:mesa-amdgpu-libGLES-17.3.3-572953.el7.x86_64                                             15/21

        Installing : 1:mesa-amdgpu-libGL-17.3.3-572953.el7.x86_64                                               16/21

        Installing : 1:mesa-amdgpu-libOSMesa-17.3.3-572953.el7.x86_64                                           17/21

        Installing : amdgpu-dkms-18.10-572953.el7.noarch                                                        18/21

      Loading new amdgpu-18.10-572953.el7 DKMS files...

      Building for 3.10.0-862.2.3.el7.x86_64

      Building initial module for 3.10.0-862.2.3.el7.x86_64

      Error! Bad return status for module build on kernel: 3.10.0-862.2.3.el7.x86_64 (x86_64)

      Consult /var/lib/dkms/amdgpu/18.10-572953.el7/build/make.log for more information.

      warning: %post(amdgpu-dkms-0:18.10-572953.el7.noarch) scriptlet failed, exit status 10

      Non-fatal POSTIN scriptlet failure in rpm package amdgpu-dkms-18.10-572953.el7.noarch

        Installing : 1:mesa-amdgpu-libwayland-egl-17.3.3-572953.el7.x86_64                                      19/21

        Installing : 1:llvm-amdgpu-libs-5.0-572953.el7.x86_64                                                   20/21

        Installing : amdgpu-18.10-572953.el7.x86_64                                                             21/21

        Verifying  : libwayland-amdgpu-server-1.14.0-572953.el7.x86_64                                           1/21

        Verifying  : 1:mesa-amdgpu-dri-drivers-17.3.3-572953.el7.x86_64                                          2/21

        Verifying  : 1:mesa-amdgpu-libxatracker-17.3.3-572953.el7.x86_64                                         3/21

        Verifying  : amdgpu-dkms-18.10-572953.el7.noarch                                                         4/21

        Verifying  : amdgpu-18.10-572953.el7.x86_64                                                              5/21

        Verifying  : 1:mesa-amdgpu-vdpau-drivers-17.3.3-572953.el7.x86_64                                        6/21

        Verifying  : 1:mesa-amdgpu-filesystem-17.3.3-572953.el7.x86_64                                           7/21

        Verifying  : 1:mesa-amdgpu-libgbm-17.3.3-572953.el7.x86_64                                               8/21

        Verifying  : 1:mesa-amdgpu-libwayland-egl-17.3.3-572953.el7.x86_64                                       9/21

        Verifying  : 1:mesa-amdgpu-libGLES-17.3.3-572953.el7.x86_64                                             10/21

        Verifying  : ids-amdgpu-1.0.0-572953.el7.noarch                                                         11/21

        Verifying  : 1:xorg-x11-amdgpu-drv-amdgpu-1.4.0-572953.el7.x86_64                                       12/21

        Verifying  : 1:llvm-amdgpu-libs-5.0-572953.el7.x86_64                                                   13/21

        Verifying  : glamor-amdgpu-1.19.0-572953.el7.x86_64                                                     14/21

        Verifying  : amdgpu-core-18.10-572953.el7.noarch                                                        15/21

        Verifying  : 1:mesa-amdgpu-libGL-17.3.3-572953.el7.x86_64                                               16/21

        Verifying  : 1:libdrm-amdgpu-2.4.89-572953.el7.x86_64                                                   17/21

        Verifying  : 1:mesa-amdgpu-libglapi-17.3.3-572953.el7.x86_64                                            18/21

        Verifying  : libwayland-amdgpu-client-1.14.0-572953.el7.x86_64                                          19/21

        Verifying  : 1:mesa-amdgpu-libEGL-17.3.3-572953.el7.x86_64                                              20/21

        Verifying  : 1:mesa-amdgpu-libOSMesa-17.3.3-572953.el7.x86_64                                           21/21

       

      Installed:

        amdgpu.x86_64 0:18.10-572953.el7                                                                             

       

      Dependency Installed:

        amdgpu-core.noarch 0:18.10-572953.el7                   amdgpu-dkms.noarch 0:18.10-572953.el7                

        glamor-amdgpu.x86_64 0:1.19.0-572953.el7                ids-amdgpu.noarch 0:1.0.0-572953.el7                 

        libdrm-amdgpu.x86_64 1:2.4.89-572953.el7                libwayland-amdgpu-client.x86_64 0:1.14.0-572953.el7  

        libwayland-amdgpu-server.x86_64 0:1.14.0-572953.el7     llvm-amdgpu-libs.x86_64 1:5.0-572953.el7             

        mesa-amdgpu-dri-drivers.x86_64 1:17.3.3-572953.el7      mesa-amdgpu-filesystem.x86_64 1:17.3.3-572953.el7    

        mesa-amdgpu-libEGL.x86_64 1:17.3.3-572953.el7           mesa-amdgpu-libGL.x86_64 1:17.3.3-572953.el7         

        mesa-amdgpu-libGLES.x86_64 1:17.3.3-572953.el7          mesa-amdgpu-libOSMesa.x86_64 1:17.3.3-572953.el7     

        mesa-amdgpu-libgbm.x86_64 1:17.3.3-572953.el7           mesa-amdgpu-libglapi.x86_64 1:17.3.3-572953.el7      

        mesa-amdgpu-libwayland-egl.x86_64 1:17.3.3-572953.el7   mesa-amdgpu-libxatracker.x86_64 1:17.3.3-572953.el7  

        mesa-amdgpu-vdpau-drivers.x86_64 1:17.3.3-572953.el7    xorg-x11-amdgpu-drv-amdgpu.x86_64 1:1.4.0-572953.el7 

       

      Complete!

      WARNING: amdgpu dkms failed for running kernel

       

      $cat /var/lib/dkms/amdgpu/18.10-572953.el7/build/make.log

      DKMS make.log for amdgpu-18.10-572953.el7 for kernel 3.10.0-862.2.3.el7.x86_64 (x86_64)

      Thu May 17 13:48:47 EDT 2018

      make: Entering directory `/usr/src/kernels/3.10.0-862.2.3.el7.x86_64'

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/built-in.o

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/built-in.o

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkfd/built-in.o

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

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

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/lib/built-in.o

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/lib/chash.o

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/scheduler/built-in.o

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/built-in.o

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/main.o

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

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

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/scheduler/gpu_scheduler.o

        LD      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/built-in.o

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

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/scheduler/backport/backport.h:5:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:8:28: error: conflicting types for ‘kref_read’

      static inline unsigned int kref_read(const struct kref *kref)

                                  ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:5:0,

                       from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7,

                       from <command-line>:0:

      include/linux/kref.h:37:19: note: previous definition of ‘kref_read’ was here

      static inline int kref_read(const struct kref *kref)

                         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:8:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/backport/backport.h:5:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkfd/backport/backport.h:11:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

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

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkfd/backport/backport.h:11:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:107:0: warning: "IS_REACHABLE" redefined [enabled by default]

      #define IS_REACHABLE(option) __or(IS_BUILTIN(option), \

      ^

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

      ././include/linux/kconfig.h:52:0: note: this is the location of the previous definition

      #define IS_REACHABLE(option) (config_enabled(option) || \

      ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:114:1: error: conflicting types for ‘drm_fb_helper_remove_conflicting_framebuffers’

      drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,

      ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:7:0,

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

      include/drm/drm_fb_helper.h:513:1: note: previous definition of ‘drm_fb_helper_remove_conflicting_framebuffers’ was here

      drm_fb_helper_remove_conflicting_framebuffers(struct apertures_struct *a,

      ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_encoder_init’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:253:5: error: too few arguments to function ‘drm_encoder_init’

           encoder_type);

           ^

      In file included from include/drm/drm_modeset_helper_vtables.h:33:0,

                       from include/drm/drm_atomic_helper.h:32,

                       from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:10,

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

      include/drm/drm_encoder.h:178:5: note: declared here

      int drm_encoder_init(struct drm_device *dev,

           ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_crtc_init_with_planes’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:270:6: error: too few arguments to function ‘drm_crtc_init_with_planes’

            cursor, funcs);

            ^

      In file included from include/drm/drmP.h:69:0,

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

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

      include/drm/drm_crtc.h:899:5: note: declared here

      int drm_crtc_init_with_planes(struct drm_device *dev,

           ^

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

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:288:6: error: incompatible type for argument 7 of ‘drm_universal_plane_init’

            formats, format_count, type);

            ^

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

                       from include/drm/drmP.h:69,

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

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

      include/drm/drm_plane.h:548:5: note: expected ‘const uint64_t *’ 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/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:1:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:288:6: error: too few arguments to function ‘drm_universal_plane_init’

            formats, format_count, type);

            ^

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

                       from include/drm/drmP.h:69,

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

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_gem_object_lookup’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:297:3: warning: passing argument 1 of ‘drm_gem_object_lookup’ from incompatible pointer type [enabled by default]

         return drm_gem_object_lookup(dev, filp, handle);

         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:9:0,

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

      include/drm/drm_gem.h:304:24: note: expected ‘struct drm_file *’ but argument is of type ‘struct drm_device *’

      struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);

                              ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:297:3: warning: passing argument 2 of ‘drm_gem_object_lookup’ makes integer from pointer without a cast [enabled by default]

         return drm_gem_object_lookup(dev, filp, handle);

         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:9:0,

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

      include/drm/drm_gem.h:304:24: note: expected ‘u32’ but argument is of type ‘struct drm_file *’

      struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);

                              ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:297:3: error: too many arguments to function ‘drm_gem_object_lookup’

         return drm_gem_object_lookup(dev, filp, handle);

         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:9:0,

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

      include/drm/drm_gem.h:304:24: note: declared here

      struct drm_gem_object *drm_gem_object_lookup(struct drm_file *filp, u32 handle);

                              ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:348:12: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’

                  flags, refcrtc, mode);

                  ^

      In file included from include/drm/drmP.h:83:0,

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

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

      include/drm/drm_vblank.h:173:6: note: declared here

      bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,

            ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: At top level:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:363:8: error: redefinition of ‘struct drm_format_name_buf’

      struct drm_format_name_buf {

              ^

      In file included from include/drm/drmP.h:70:0,

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

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

      include/drm/drm_fourcc.h:55:8: note: originally defined here

      struct drm_format_name_buf {

              ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_old_crtc_state_before_commit’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:418:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’)

        return state->crtcs[drm_crtc_index(crtc)]->state;

                                                 ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_before_commit’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:429:14: error: ‘struct drm_atomic_state’ has no member named ‘crtc_states’

        return state->crtc_states[drm_crtc_index(crtc)];

                    ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_atomic_get_new_crtc_state_after_commit’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:441:43: error: invalid type argument of ‘->’ (have ‘struct __drm_crtcs_state’)

        return state->crtcs[drm_crtc_index(crtc)]->state;

                                                 ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h: At top level:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:464:1: error: redefinition of ‘drm_plane_state_src’

      drm_plane_state_src(const struct drm_plane_state *state)

      ^

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

                       from include/drm/drmP.h:69,

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

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

      include/drm/drm_plane.h:130:1: note: previous definition of ‘drm_plane_state_src’ was here

      drm_plane_state_src(const struct drm_plane_state *state)

      ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:476:1: error: redefinition of ‘drm_plane_state_dest’

      drm_plane_state_dest(const struct drm_plane_state *state)

      ^

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

                       from include/drm/drmP.h:69,

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

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

      include/drm/drm_plane.h:142:1: note: previous definition of ‘drm_plane_state_dest’ was here

      drm_plane_state_dest(const struct drm_plane_state *state)

      ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:487:8: error: redefinition of ‘struct drm_printer’

      struct drm_printer {

              ^

      In file included from include/drm/drm_modes.h:33:0,

                       from include/drm/drm_crtc.h:40,

                       from include/drm/drmP.h:69,

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

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

      include/drm/drm_connector.h:40:8: note: originally defined here

      struct drm_printer;

              ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:492:6: error: conflicting types for ‘__drm_printfn_info’

      void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf);

            ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:77:6: note: previous declaration of ‘__drm_printfn_info’ was here

      void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf);

            ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:493:6: error: conflicting types for ‘drm_printf’

      void drm_printf(struct drm_printer *p, const char *f, ...);

            ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:81:6: note: previous declaration of ‘drm_printf’ was here

      void drm_printf(struct drm_printer *p, const char *f, ...);

            ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:495:34: error: conflicting types for ‘drm_info_printer’

      static inline struct drm_printer drm_info_printer(struct device *dev)

                                        ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:107:34: note: previous definition of ‘drm_info_printer’ was here

      static inline struct drm_printer drm_info_printer(struct device *dev)

                                        ^

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

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:504:6: error: conflicting types for ‘drm_state_dump’

      void drm_state_dump(struct drm_device *dev, struct drm_printer *p);

            ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:8:0,

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

      include/drm/drm_atomic.h:555:6: note: previous declaration of ‘drm_state_dump’ was here

      void drm_state_dump(struct drm_device *dev, struct drm_printer *p);

            ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_get_existing_plane_state’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:248:14: error: ‘struct drm_atomic_state’ has no member named ‘plane_states’

        return state->plane_states[drm_plane_index(plane)];

                    ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: In function ‘drm_atomic_helper_disable_all’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:383:3: error: implicit declaration of function ‘drm_atomic_state_free’ [-Werror=implicit-function-declaration]

         drm_atomic_state_free(state);

         ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: In function ‘drm_is_current_master’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:533:58: error: ‘struct drm_minor’ has no member named ‘master’

        return fpriv->is_master && fpriv->master == fpriv->minor->master;

                                                                ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: At top level:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:539:6: error: conflicting types for ‘__drm_printfn_info’

      void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf)

            ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:77:6: note: previous declaration of ‘__drm_printfn_info’ was here

      void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf);

            ^

      In file included from include/linux/linkage.h:6:0,

                       from include/linux/kernel.h:6,

                       from include/linux/rbtree.h:32,

                       from include/linux/hrtimer.h:18,

                       from /usr/src/kernels/3.10.0-862.2.3.el7.x86_64/include/drm/drm_backport.h:12,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:543:15: error: conflicting types for ‘__drm_printfn_info’

      EXPORT_SYMBOL(__drm_printfn_info);

                     ^

      include/linux/export.h:57:21: note: in definition of macro ‘__EXPORT_SYMBOL’

        extern typeof(sym) sym;     \

                           ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:543:1: note: in expansion of macro ‘EXPORT_SYMBOL’

      EXPORT_SYMBOL(__drm_printfn_info);

      ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:77:6: note: previous declaration of ‘__drm_printfn_info’ was here

      void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf);

            ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:545:6: error: conflicting types for ‘drm_printf’

      void drm_printf(struct drm_printer *p, const char *f, ...)

            ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:81:6: note: previous declaration of ‘drm_printf’ was here

      void drm_printf(struct drm_printer *p, const char *f, ...);

            ^

      In file included from include/linux/linkage.h:6:0,

                       from include/linux/kernel.h:6,

                       from include/linux/rbtree.h:32,

                       from include/linux/hrtimer.h:18,

                       from /usr/src/kernels/3.10.0-862.2.3.el7.x86_64/include/drm/drm_backport.h:12,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:556:15: error: conflicting types for ‘drm_printf’

      EXPORT_SYMBOL(drm_printf);

                     ^

      include/linux/export.h:57:21: note: in definition of macro ‘__EXPORT_SYMBOL’

        extern typeof(sym) sym;     \

                           ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:556:1: note: in expansion of macro ‘EXPORT_SYMBOL’

      EXPORT_SYMBOL(drm_printf);

      ^

      In file included from include/drm/drm_mm.h:49:0,

                       from include/drm/drmP.h:73,

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

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

      include/drm/drm_print.h:81:6: note: previous declaration of ‘drm_printf’ was here

      void drm_printf(struct drm_printer *p, const char *f, ...);

            ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: In function ‘drm_atomic_plane_print_state’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:606:38: error: ‘struct drm_framebuffer’ has no member named ‘pixel_format’

         int i, n = drm_format_num_planes(fb->pixel_format);

                                            ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:610:31: error: ‘struct drm_framebuffer’ has no member named ‘pixel_format’

           kcl_drm_get_format_name(fb->pixel_format, &format_name));

                                     ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: At top level:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:660:6: error: conflicting types for ‘drm_state_dump’

      void drm_state_dump(struct drm_device *dev, struct drm_printer *p)

            ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:8:0,

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

      include/drm/drm_atomic.h:555:6: note: previous declaration of ‘drm_state_dump’ was here

      void drm_state_dump(struct drm_device *dev, struct drm_printer *p);

            ^

      In file included from include/linux/linkage.h:6:0,

                       from include/linux/kernel.h:6,

                       from include/linux/rbtree.h:32,

                       from include/linux/hrtimer.h:18,

                       from /usr/src/kernels/3.10.0-862.2.3.el7.x86_64/include/drm/drm_backport.h:12,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:679:15: error: conflicting types for ‘drm_state_dump’

      EXPORT_SYMBOL(drm_state_dump);

                     ^

      include/linux/export.h:57:21: note: in definition of macro ‘__EXPORT_SYMBOL’

        extern typeof(sym) sym;     \

                           ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:679:1: note: in expansion of macro ‘EXPORT_SYMBOL’

      EXPORT_SYMBOL(drm_state_dump);

      ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_drm.h:8:0,

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

      include/drm/drm_atomic.h:555:6: note: previous declaration of ‘drm_state_dump’ was here

      void drm_state_dump(struct drm_device *dev, struct drm_printer *p);

            ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:637:13: warning: ‘drm_atomic_print_state’ defined but not used [-Wunused-function]

      static void drm_atomic_print_state(const struct drm_atomic_state *state)

                   ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_get_existing_plane_state’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:252:1: warning: control reaches end of non-void function [-Wreturn-type]

      }

      ^

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c: In function ‘drm_is_current_master’:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.c:534:1: warning: control reaches end of non-void function [-Wreturn-type]

      }

      ^

      cc1: some warnings being treated as errors

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

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

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

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/amdgpu_kms.o

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:8:28: error: conflicting types for ‘kref_read’

      static inline unsigned int kref_read(const struct kref *kref)

                                  ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:5:0,

                       from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7,

                       from <command-line>:0:

      include/linux/kref.h:37:19: note: previous definition of ‘kref_read’ was here

      static inline int kref_read(const struct kref *kref)

                         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:8:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:8:28: error: conflicting types for ‘kref_read’

      static inline unsigned int kref_read(const struct kref *kref)

                                  ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:5:0,

                       from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7,

                       from <command-line>:0:

      include/linux/kref.h:37:19: note: previous definition of ‘kref_read’ was here

      static inline int kref_read(const struct kref *kref)

                         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:8:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

        LD [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/lib/amdchash.o

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/amdgpu_atombios.o

      make[2]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/scheduler/gpu_scheduler.o] Error 1

      make[1]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/scheduler] Error 2

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/ttm_tt.o

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

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

        CC [M]  /var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/ttm_bo.o

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

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

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

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:8:28: error: conflicting types for ‘kref_read’

      static inline unsigned int kref_read(const struct kref *kref)

                                  ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_kref.h:5:0,

                       from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:7,

                       from <command-line>:0:

      include/linux/kref.h:37:19: note: previous definition of ‘kref_read’ was here

      static inline int kref_read(const struct kref *kref)

                         ^

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/../include/../backport/backport.h:8:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

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

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

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/backport/backport.h:5:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/backport/backport.h:5:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      make[2]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/amdgpu_kms.o] Error 1

      make[2]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/amdgpu_device.o] Error 1

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

      In file included from /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkfd/backport/backport.h:11:0,

                       from <command-line>:0:

      /var/lib/dkms/amdgpu/18.10-572953.el7/build/include/kcl/kcl_fence.h:7:25: fatal error: linux/fence.h: No such file or directory

      #include <linux/fence.h>

                               ^

      compilation terminated.

      make[2]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdgpu/amdgpu_atombios.o] Error 1

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

      make[2]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/ttm_bo.o] Error 1

      make[2]: *** [/var/lib/dkms/amdgpu/18.10-572953.el7/build/ttm/ttm_tt.o] Error 1

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

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

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

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

      make: Leaving directory `/usr/src/kernels/3.10.0-862.2.3.el7.x86_64'

       

      kcl_fence.h L#7 attempts to unconditionally #include <linux/fence.h>, but that file does not exist. (It's now call dma_fence.h)

      Modifications to /usr/src/amdgpu-18.10-572953.el7/include/kcl/kcl_fence.h do not persist across amdgpu-uninstall/amdgpu-install runs.

      Attempts rpmrebuild amdgpu-pro-18.10-572953/RPMS/noarch/amdgpu-dkms-18.10-572953.el7.noarch.rpm were futile...

       

      Is this related to "uname -rs" => "Linux 3.10.0-862.2.3.el7.x86_64" in Centos 7.5?