Building initial module for 4.15.0-43-generic amdpro driver
I have problem with install amd gpu driver.
I downloaded from https://www.amd.com/en/support/kb/faq/gpu-635 and follow instruction. But, when try building initial module for 4.15.0-43-generic, i got error.
this is log from /var/crash/amdgpu-pro-dkms.0.crash
ProblemType: Package DKMSBuildLog: DKMS make.log for amdgpu-17.40-492261 for kernel 4.15.0-43-generic (x86_64) суб, 2. феб 2019. 17:48:32 CET make: Entering directory '/usr/src/linux-headers-4.15.0-43-generic' CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/symbols.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_module.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_device.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence_array.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_helper_update_legacy_modeset_state_stub’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:2: error: implicit declaration of function ‘for_each_connector_in_state’ [-Werror=implicit-function-declaration] for_each_connector_in_state(old_state, connector, old_conn_state, i) { ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:71: error: expected ‘;’ before ‘{’ token for_each_connector_in_state(old_state, connector, old_conn_state, i) {
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:261:25: warning: unused variable ‘old_crtc_state’ [-Wunused-variable] struct drm_crtc_state *old_crtc_state;
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:260:19: warning: unused variable ‘crtc’ [-Wunused-variable] struct drm_crtc
*crtc;
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_chardev.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_topology.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_pasid.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_doorbell.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:2: error: unknown field ‘set_busid’ specified in initializer .set_busid = drm_pci_set_busid, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:15: error: ‘drm_pci_set_busid’ undeclared here (not in a function) .set_busid = drm_pci_set_busid,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_vblank_timestamp = kcl_amdgpu_get_vblank_timestamp_kms,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: note: (near initialization for ‘kms_driver.get_vblank_timestamp’) /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_scanout_position = kcl_amdgpu_get_crtc_scanoutpos,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: note: (near initialization for ‘kms_driver.get_scanout_position’) /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c:43:30: fatal error: drm/drm_mem_util.h: No such file or directory cc1: some warnings being treated as errors compilation terminated. scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm' failed make[1]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_flat_memory.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_cik.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_create_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:924:37: error: passing argument 2 of ‘interval_tree_insert’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_insert(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:15:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_insert(struct interval_tree_node *node, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_find_bo_from_interval’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:974:37: error: passing argument 1 of ‘interval_tree_iter_first’ from incompatible pointer type [-Werror=incompatible-pointer-types] it_node = interval_tree_iter_first(&p->bo_interval_tree,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:23:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_iter_first(struct rb_root_cached *root, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_remove_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:1014:37: error: passing argument 2 of ‘interval_tree_remove’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_remove(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:19:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_remove(struct interval_tree_node *node, ^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_v9.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_cik.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_v9.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o] Error 1 make[2]: *** Waiting for unfinished jobs.... scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd] Error 2 Makefile:1551: recipe for target '_module_/var/lib/dkms/amdgpu/17.40-492261/build' failed make: *** [_module_/var/lib/dkms/amdgpu/17.40-492261/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic' DKMSKernelVersion: 4.15.0-43-generic Date: Sat Feb 2 17:48:36 2019 DuplicateSignature: dkms:amdgpu-pro-dkms:17.40-492261:/var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ Package: amdgpu-pro-dkms 17.40-492261 PackageVersion: 17.40-492261 SourcePackage: amdgpu-pro-dkms Title: amdgpu-pro-dkms 17.40-492261: amdgpu kernel module failed to build
How can I fix this?
My laptop is lenovo,and this is information :
https://pastebin.com/sz8dT2eT
kernel amd-graphics amdgpu amdgpu-pro
add a comment |
I have problem with install amd gpu driver.
I downloaded from https://www.amd.com/en/support/kb/faq/gpu-635 and follow instruction. But, when try building initial module for 4.15.0-43-generic, i got error.
this is log from /var/crash/amdgpu-pro-dkms.0.crash
ProblemType: Package DKMSBuildLog: DKMS make.log for amdgpu-17.40-492261 for kernel 4.15.0-43-generic (x86_64) суб, 2. феб 2019. 17:48:32 CET make: Entering directory '/usr/src/linux-headers-4.15.0-43-generic' CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/symbols.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_module.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_device.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence_array.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_helper_update_legacy_modeset_state_stub’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:2: error: implicit declaration of function ‘for_each_connector_in_state’ [-Werror=implicit-function-declaration] for_each_connector_in_state(old_state, connector, old_conn_state, i) { ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:71: error: expected ‘;’ before ‘{’ token for_each_connector_in_state(old_state, connector, old_conn_state, i) {
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:261:25: warning: unused variable ‘old_crtc_state’ [-Wunused-variable] struct drm_crtc_state *old_crtc_state;
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:260:19: warning: unused variable ‘crtc’ [-Wunused-variable] struct drm_crtc
*crtc;
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_chardev.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_topology.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_pasid.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_doorbell.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:2: error: unknown field ‘set_busid’ specified in initializer .set_busid = drm_pci_set_busid, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:15: error: ‘drm_pci_set_busid’ undeclared here (not in a function) .set_busid = drm_pci_set_busid,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_vblank_timestamp = kcl_amdgpu_get_vblank_timestamp_kms,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: note: (near initialization for ‘kms_driver.get_vblank_timestamp’) /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_scanout_position = kcl_amdgpu_get_crtc_scanoutpos,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: note: (near initialization for ‘kms_driver.get_scanout_position’) /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c:43:30: fatal error: drm/drm_mem_util.h: No such file or directory cc1: some warnings being treated as errors compilation terminated. scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm' failed make[1]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_flat_memory.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_cik.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_create_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:924:37: error: passing argument 2 of ‘interval_tree_insert’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_insert(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:15:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_insert(struct interval_tree_node *node, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_find_bo_from_interval’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:974:37: error: passing argument 1 of ‘interval_tree_iter_first’ from incompatible pointer type [-Werror=incompatible-pointer-types] it_node = interval_tree_iter_first(&p->bo_interval_tree,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:23:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_iter_first(struct rb_root_cached *root, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_remove_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:1014:37: error: passing argument 2 of ‘interval_tree_remove’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_remove(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:19:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_remove(struct interval_tree_node *node, ^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_v9.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_cik.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_v9.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o] Error 1 make[2]: *** Waiting for unfinished jobs.... scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd] Error 2 Makefile:1551: recipe for target '_module_/var/lib/dkms/amdgpu/17.40-492261/build' failed make: *** [_module_/var/lib/dkms/amdgpu/17.40-492261/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic' DKMSKernelVersion: 4.15.0-43-generic Date: Sat Feb 2 17:48:36 2019 DuplicateSignature: dkms:amdgpu-pro-dkms:17.40-492261:/var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ Package: amdgpu-pro-dkms 17.40-492261 PackageVersion: 17.40-492261 SourcePackage: amdgpu-pro-dkms Title: amdgpu-pro-dkms 17.40-492261: amdgpu kernel module failed to build
How can I fix this?
My laptop is lenovo,and this is information :
https://pastebin.com/sz8dT2eT
kernel amd-graphics amdgpu amdgpu-pro
add a comment |
I have problem with install amd gpu driver.
I downloaded from https://www.amd.com/en/support/kb/faq/gpu-635 and follow instruction. But, when try building initial module for 4.15.0-43-generic, i got error.
this is log from /var/crash/amdgpu-pro-dkms.0.crash
ProblemType: Package DKMSBuildLog: DKMS make.log for amdgpu-17.40-492261 for kernel 4.15.0-43-generic (x86_64) суб, 2. феб 2019. 17:48:32 CET make: Entering directory '/usr/src/linux-headers-4.15.0-43-generic' CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/symbols.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_module.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_device.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence_array.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_helper_update_legacy_modeset_state_stub’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:2: error: implicit declaration of function ‘for_each_connector_in_state’ [-Werror=implicit-function-declaration] for_each_connector_in_state(old_state, connector, old_conn_state, i) { ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:71: error: expected ‘;’ before ‘{’ token for_each_connector_in_state(old_state, connector, old_conn_state, i) {
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:261:25: warning: unused variable ‘old_crtc_state’ [-Wunused-variable] struct drm_crtc_state *old_crtc_state;
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:260:19: warning: unused variable ‘crtc’ [-Wunused-variable] struct drm_crtc
*crtc;
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_chardev.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_topology.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_pasid.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_doorbell.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:2: error: unknown field ‘set_busid’ specified in initializer .set_busid = drm_pci_set_busid, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:15: error: ‘drm_pci_set_busid’ undeclared here (not in a function) .set_busid = drm_pci_set_busid,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_vblank_timestamp = kcl_amdgpu_get_vblank_timestamp_kms,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: note: (near initialization for ‘kms_driver.get_vblank_timestamp’) /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_scanout_position = kcl_amdgpu_get_crtc_scanoutpos,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: note: (near initialization for ‘kms_driver.get_scanout_position’) /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c:43:30: fatal error: drm/drm_mem_util.h: No such file or directory cc1: some warnings being treated as errors compilation terminated. scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm' failed make[1]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_flat_memory.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_cik.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_create_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:924:37: error: passing argument 2 of ‘interval_tree_insert’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_insert(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:15:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_insert(struct interval_tree_node *node, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_find_bo_from_interval’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:974:37: error: passing argument 1 of ‘interval_tree_iter_first’ from incompatible pointer type [-Werror=incompatible-pointer-types] it_node = interval_tree_iter_first(&p->bo_interval_tree,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:23:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_iter_first(struct rb_root_cached *root, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_remove_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:1014:37: error: passing argument 2 of ‘interval_tree_remove’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_remove(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:19:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_remove(struct interval_tree_node *node, ^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_v9.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_cik.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_v9.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o] Error 1 make[2]: *** Waiting for unfinished jobs.... scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd] Error 2 Makefile:1551: recipe for target '_module_/var/lib/dkms/amdgpu/17.40-492261/build' failed make: *** [_module_/var/lib/dkms/amdgpu/17.40-492261/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic' DKMSKernelVersion: 4.15.0-43-generic Date: Sat Feb 2 17:48:36 2019 DuplicateSignature: dkms:amdgpu-pro-dkms:17.40-492261:/var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ Package: amdgpu-pro-dkms 17.40-492261 PackageVersion: 17.40-492261 SourcePackage: amdgpu-pro-dkms Title: amdgpu-pro-dkms 17.40-492261: amdgpu kernel module failed to build
How can I fix this?
My laptop is lenovo,and this is information :
https://pastebin.com/sz8dT2eT
kernel amd-graphics amdgpu amdgpu-pro
I have problem with install amd gpu driver.
I downloaded from https://www.amd.com/en/support/kb/faq/gpu-635 and follow instruction. But, when try building initial module for 4.15.0-43-generic, i got error.
this is log from /var/crash/amdgpu-pro-dkms.0.crash
ProblemType: Package DKMSBuildLog: DKMS make.log for amdgpu-17.40-492261 for kernel 4.15.0-43-generic (x86_64) суб, 2. феб 2019. 17:48:32 CET make: Entering directory '/usr/src/linux-headers-4.15.0-43-generic' CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/main.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/symbols.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_module.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_device.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_fence_array.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:1: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c: In function ‘_kcl_drm_atomic_helper_update_legacy_modeset_state_stub’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:2: error: implicit declaration of function ‘for_each_connector_in_state’ [-Werror=implicit-function-declaration] for_each_connector_in_state(old_state, connector, old_conn_state, i) { ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:265:71: error: expected ‘;’ before ‘{’ token for_each_connector_in_state(old_state, connector, old_conn_state, i) {
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:261:25: warning: unused variable ‘old_crtc_state’ [-Wunused-variable] struct drm_crtc_state *old_crtc_state;
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.c:260:19: warning: unused variable ‘crtc’ [-Wunused-variable] struct drm_crtc
*crtc;
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl/kcl_drm.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_chardev.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/../include/../backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_memory.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_topology.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_pasid.o In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_universal_plane_init’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘const uint64_t * {aka const long long unsigned int *}’ but argument is of type ‘enum drm_plane_type’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:35: error: incompatible type for argument 8 of ‘drm_universal_plane_init’
formats, format_count, type, name);
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: expected ‘enum drm_plane_type’ but argument is of type ‘const char *’ int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:270:10: error: too few arguments to function ‘drm_universal_plane_init’
return drm_universal_plane_init(dev, plane, possible_crtcs, funcs,
^ In file included from ./include/drm/drm_crtc.h:45:0,
from ./include/drm/drmP.h:69,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_plane.h:556:5: note: declared here int drm_universal_plane_init(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h: In function ‘kcl_drm_calc_vbltimestamp_from_scanoutpos’: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:69: error: passing argument 4 of ‘drm_calc_vbltimestamp_from_scanoutpos’ from incompatible pointer type [-Werror=incompatible-pointer-types] return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: expected ‘ktime_t * {aka long long int *}’ but argument is of type ‘struct timeval *’ bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6:0,
from <command-line>:0: /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:332:9: error: too many arguments to function ‘drm_calc_vbltimestamp_from_scanoutpos’ return drm_calc_vbltimestamp_from_scanoutpos(dev, pipe, max_error, vblank_time,
^ In file included from ./include/drm/drmP.h:83:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:6,
from /var/lib/dkms/amdgpu/17.40-492261/build/ttm/backport/backport.h:6,
from <command-line>:0: ./include/drm/drm_vblank.h:184:6: note: declared here bool drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_doorbell.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:2: error: unknown field ‘set_busid’ specified in initializer .set_busid = drm_pci_set_busid, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:809:15: error: ‘drm_pci_set_busid’ undeclared here (not in a function) .set_busid = drm_pci_set_busid,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_vblank_timestamp = kcl_amdgpu_get_vblank_timestamp_kms,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:814:26: note: (near initialization for ‘kms_driver.get_vblank_timestamp’) /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_scanout_position = kcl_amdgpu_get_crtc_scanoutpos,
^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.c:815:26: note: (near initialization for ‘kms_driver.get_scanout_position’) /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c: At top level: /var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.c:43:30: fatal error: drm/drm_mem_util.h: No such file or directory cc1: some warnings being treated as errors compilation terminated. scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm/ttm_tt.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/ttm' failed make[1]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/ttm] Error 2 make[1]: *** Waiting for unfinished jobs.... CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_flat_memory.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu/amdgpu_drv.o] Error 1 scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdgpu] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkcl] Error 2 CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_cik.o /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_create_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:924:37: error: passing argument 2 of ‘interval_tree_insert’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_insert(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:15:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_insert(struct interval_tree_node *node, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_find_bo_from_interval’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:974:37: error: passing argument 1 of ‘interval_tree_iter_first’ from incompatible pointer type [-Werror=incompatible-pointer-types] it_node = interval_tree_iter_first(&p->bo_interval_tree,
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:23:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_iter_first(struct rb_root_cached *root, ^ /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c: In function ‘kfd_process_device_remove_obj_handle’: /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:1014:37: error: passing argument 2 of ‘interval_tree_remove’ from incompatible pointer type [-Werror=incompatible-pointer-types] interval_tree_remove(&buf_obj->it, &p->bo_interval_tree);
^ In file included from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_priv.h:36:0,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_ipc.h:28,
from /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.c:38: ./include/linux/interval_tree.h:19:1: note: expected ‘struct rb_root_cached *’ but argument is of type ‘struct rb_root *’ interval_tree_remove(struct interval_tree_node *node, ^ CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_mqd_manager_v9.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_cik.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_vi.o CC [M] /var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_kernel_queue_v9.o cc1: some warnings being treated as errors scripts/Makefile.build:332: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o' failed make[2]: *** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd/kfd_process.o] Error 1 make[2]: *** Waiting for unfinished jobs.... scripts/Makefile.build:606: recipe for target '/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd' failed make[1]:
*** [/var/lib/dkms/amdgpu/17.40-492261/build/amd/amdkfd] Error 2 Makefile:1551: recipe for target '_module_/var/lib/dkms/amdgpu/17.40-492261/build' failed make: *** [_module_/var/lib/dkms/amdgpu/17.40-492261/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.15.0-43-generic' DKMSKernelVersion: 4.15.0-43-generic Date: Sat Feb 2 17:48:36 2019 DuplicateSignature: dkms:amdgpu-pro-dkms:17.40-492261:/var/lib/dkms/amdgpu/17.40-492261/build/include/kcl/kcl_drm.h:271:29: error: incompatible type for argument 7 of ‘drm_universal_plane_init’ Package: amdgpu-pro-dkms 17.40-492261 PackageVersion: 17.40-492261 SourcePackage: amdgpu-pro-dkms Title: amdgpu-pro-dkms 17.40-492261: amdgpu kernel module failed to build
How can I fix this?
My laptop is lenovo,and this is information :
https://pastebin.com/sz8dT2eT
kernel amd-graphics amdgpu amdgpu-pro
kernel amd-graphics amdgpu amdgpu-pro
asked Feb 2 at 17:57
Marko LjubisavljevicMarko Ljubisavljevic
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115050%2fbuilding-initial-module-for-4-15-0-43-generic-amdpro-driver%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115050%2fbuilding-initial-module-for-4-15-0-43-generic-amdpro-driver%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown