cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

jrv
Journeyman III

amdgpu-install 18.10 fails on Centos7.5

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   /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/kcl_drm.o

  CC   /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   /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   /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/amdkcl/main.o

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

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

  CC   /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   /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   /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   /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   /var/lib/dkms/amdgpu/18.10-572953.el7/build/amd/lib/amdchash.o

  CC   /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   /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   /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   /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?

0 Likes
11 Replies
jrv
Journeyman III

update to mainline kernel "Linux 4.16.9-1.el7.elrepo.x86_64 x86_64" (reboot, etc.)

./amdgup-install'ed again and got

DKMS make.log for amdgpu-18.10-572953.el7 for kernel 4.16.9-1.el7.elrepo.x86_64 (x86_64)

see attachment make.log

rebuild results in "WARNING: amdgpu dkms failed for running kernel"

Message at amdgpu-pro-install 18.10 --headless misses dkms and libdrm

which indicates

apt install amdgpu-dkms libdrm-amdgpu-amdgpu1 libdrm-amdgpu1 libdrm2-amdgpu

should fix the problem, but when i try

yum install  amdgpu-dkms libdrm-amdgpu-amdgpu1 libdrm-amdgpu1 libdrm2-amdgpu

I get

Loaded plugins: fastestmirror, langpacks

Loading mirror speeds from cached hostfile

* base: mirror.tzulo.com

* elrepo: ftp.osuosl.org

* epel: fedora.mirrors.pair.com

* extras: mirror.ash.fastserv.com

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

* updates: mirrors.cmich.edu

Package amdgpu-dkms-18.10-572953.el7.noarch already installed and latest version

No package libdrm-amdgpu-amdgpu1 available.

No package libdrm-amdgpu1 available.

No package libdrm2-amdgpu available.

Nothing to do

Search for packages produces none found...

What did i miss?

0 Likes

anybody can solve this problem?

0 Likes

Try posting you question at this Linux Forum : https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/amd-linux .

0 Likes

I have the same problem, I found all the ways to solve it, but it didn't work. No one from AMD developers can  answered this question. This makes me very disappointed, if time can go back, I will not buy an AMD card!

0 Likes

xD
sounds hard now: stick to ubuntu if you dont know how to use linux properly - not AMDs fault though

why ubuntu? because they have a friendly and helpful community - so does AMD

here a solution from green-devils
https://devtalk.nvidia.com/default/topic/1005246/linux/unable-to-install-nvidia-driver-linux-x86_64-...
should work for you aswell

PC: R7 2700X @PBO + RX 580 4G (1500MHz/2000MHz CL16) + 32G DDR4-3200CL14 + 144hz 1ms FS P + 75hz 1ms FS
Laptop: R5 2500U @30W + RX 560X (1400MHz/1500MHz) + 16G DDR4-2400CL16 + 120Hz 3ms FS
0 Likes
mikishapiro
Journeyman III

That last link about compiling nVidia drivers with dkms is utterly unhelpful and completely irrelevant.

To resolve this issue:

1. Add the Extra Packages for Enterprise Linux (EPEL) repository to your system (I'm presuming you're running CentOS 7.x or RHEL 7.x):

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

2. At this point, you can just run the amdgpu-pro installer and it will install dkms for you. If you want to install dkms before running the amdgpu-pro installer, dkms needs to be told what version of the kernel it is being installed for. This is done by specifying kernel-devel-uname-r. Run the following command:

yum -y install "kernel-devel-uname-r == $(uname -r)" dkms


Done.

...

for a linux user i demand to think: thats why i posted this link - where you see that they installed dkms and it worked
than i wanted him to read about dkms and hoped he will install it

like you suggested in 2.)

;p

PC: R7 2700X @PBO + RX 580 4G (1500MHz/2000MHz CL16) + 32G DDR4-3200CL14 + 144hz 1ms FS P + 75hz 1ms FS
Laptop: R5 2500U @30W + RX 560X (1400MHz/1500MHz) + 16G DDR4-2400CL16 + 120Hz 3ms FS
0 Likes

Maybe you are right, naturally think that the system will automatically update the required software.We should abandon traditional thinking habits of use ms windows.


actually its quiet fun learning to use linux.

centos isnt the most easyone to start - but they still have a big community that can help you.

btw - lazy as i am i run Ubuntu Server // Ubuntu or Mint or SuSe have a huge community that is also newbie friendly - something you wont find often for Kali or Arch

PC: R7 2700X @PBO + RX 580 4G (1500MHz/2000MHz CL16) + 32G DDR4-3200CL14 + 144hz 1ms FS P + 75hz 1ms FS
Laptop: R5 2500U @30W + RX 560X (1400MHz/1500MHz) + 16G DDR4-2400CL16 + 120Hz 3ms FS
0 Likes
shawn_kearney
Journeyman III

The easiest and most reliable way to resolve the dkms issues for me was to install rocm first, and then install the amdgpu-pro driver. I am guessing this accomplishes what mikishapiro​ is suggesting. I discovered this workaround as a complete accident.

Hi guys

I think you can safely move on to 18.20 & forget 18.10
it runs smoothly with Centos 7.5 & old prehistoric kernel 3.10.0-862.14.4.el7
after 4 days of troubleshooting the bloody amdgpu 18.20 driver, was able to update Centos 7.5 to the elrepo kernel 4.15.15


main problem was to BAN amdgpu driver to reach for not existing drm_backport.h file @ 4.x.x kernel system
this prehistoric drm_backport is used only in 3.10 kernel,
newer 4.x.x kernels does not support such a "fantastic" feature anymore

as soon as amdgpu-install script fails on 4.x.x kernel /it does however install almost all needed files /
with message: amdgpu dkms failed for running kernel

change the installed Makefile as follow:

sudo nano /usr/src/amdgpu-18.20-606296.el7/Makefile

comment out next line /aka add # at the beginning of line
# -include /usr/src/kernels/$(KERNELRELEASE)/include/drm/drm_backport.h
save Makefile

run manual dkms

dkms remove -m amdgpu -v 18.20-606296.el7 --all

dkms add -m amdgpu -v 18.20-606296.el7 -k 4.15.15-1.el7.elrepo.x86_64

dkms build -m amdgpu -v 18.20-606296.el7 -k 4.15.15-1.el7.elrepo.x86_64

dkms install -m amdgpu -v 18.20-606296.el7 -k 4.15.15-1.el7.elrepo.x86_64

reboot

it should be now running with 14.15.15 kernel

Screenshot from 2018-10-09 00-36-46.png

Screenshot from 2018-10-09 00-41-58.png

some additional info:

elrepo kernel 4.17.x & 4.18.x  was not working with amdgpu 18.20 due to: vga_switcheroo_set_dynamic_switch
/vga_switcheroo_set_dynamic_switch was implemented only up to 4.16 max, not higher/
elrepo kernel 4.16 was not working with amdgpu 18.20 either due to: amdgpu_connectors.c + drm_edid_to_eld

/amdgpu_connectors.c + drm_edid_to_eld was implemented only up to 4.15 max, not higher/

so I ended up running elrepo kernel 4.15.15 with amdgpu 18.20 driver, for the moment very happy with it
as I needed an up-to-date kernel as I have a great amd combo at home: ryzen 2600 & vega 56 

0 Likes