Since last 4 days, I am trying to install amdgpu pro drivers on my ubuntu system and I am getting error.
Below is my system configuration
I have alsoposted this question on below link.
drivers - WARNING: amdgpu dkms failed for running kernel (on both 16.04 & 18.04) - Ask Ubuntu
I'm also having this problem with Vega 64 driver 18.50 on Ubuntu 18.04.1 running kernel 5.0.0-050000rc2-generic #201901171452 SMP Thu Jan 17 14:54:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
When I ran sudo dpkg-reconfigure amdgpu-dkms I saw this:
------------------------------
Deleting module version: 18.50-708488
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-18.50-708488 DKMS files...
Building for 5.0.0-050000rc2-generic
Building for architecture x86_64
Building initial module for 5.0.0-050000rc2-generic
ERROR (dkms apport): kernel package linux-headers-5.0.0-050000rc2-generic is not supported
Error! Bad return status for module build on kernel: 5.0.0-050000rc2-generic (x86_64)
Consult /var/lib/dkms/amdgpu/18.50-708488/build/make.log for more information.
And the make.log:
DKMS make.log for amdgpu-18.50-708488 for kernel 5.0.0-050000rc2-generic (x86_64)
Sat 26 Jan 14:16:50 AWST 2019
make: Entering directory '/usr/src/linux-headers-5.0.0-050000rc2-generic'
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_drm.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/lib/chash.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/main.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/symbols.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_fence.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_fence_array.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_kthread.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_io.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_drm_global.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_pci.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/scheduler/sched_main.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_mn.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/scheduler/sched_fence.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/scheduler/sched_entity.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_bitmap.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_memory.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_tt.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_vm.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_util.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_module.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_object.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_lock.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_execbuf_util.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_page_alloc.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_manager.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_page_alloc_dma.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_agp_backend.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_device.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_drv.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_kms.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_atombios.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/atombios_crtc.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/main.c:4:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/main.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_drm_global.c:37:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_drm_global.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_drm_global.o] Error 1
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.c: In function ‘_kcl_reservation_object_copy_fences’:
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.c:182:11: error: ‘struct reservation_object’ has no member named ‘staged’
kfree(dst->staged);
^~
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.c:183:5: error: ‘struct reservation_object’ has no member named ‘staged’
dst->staged = NULL;
^~
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.c: In function ‘_kcl_reservation_object_add_shared_fence’:
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.c:408:50: error: ‘struct reservation_object’ has no member named ‘staged’
struct reservation_object_list *old, *fobj = obj->staged;
^~
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.c:411:5: error: ‘struct reservation_object’ has no member named ‘staged’
obj->staged = NULL;
^~
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/atom.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_connectors.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_reservation.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_fence.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_ttm.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_object.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_gart.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_manager.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_manager.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_execbuf_util.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_execbuf_util.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_page_alloc_dma.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_page_alloc_dma.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_encoders.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_page_alloc.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_page_alloc.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_agp_backend.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_agp_backend.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_memory.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_memory.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_vm.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_vm.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_display.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_util.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo_util.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_i2c.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_bo.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_fb.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_gem.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
LD/var/lib/dkms/amdgpu/18.50-708488/build/amd/lib/amdchash.o
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_ring.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_object.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_object.o] Error 1
/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl/kcl_fence.c:84:1: warning: ‘_kcl_fence_default_wait’ defined but not used [-Wunused-function]
_kcl_fence_default_wait(struct fence *fence, bool intr, signed long timeout)
^~~~~~~~~~~~~~~~~~~~~~~
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_cs.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_lock.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_lock.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_bios.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_drv.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/atombios_crtc.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/atombios_crtc.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_benchmark.o
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_device.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_device.o] Error 1
CC/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_test.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_tt.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_tt.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_atombios.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_atombios.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_kms.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_kms.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/ttm/backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/kcl/kcl_drm_global.h:4:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_module.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm/ttm_module.o] Error 1
scripts/Makefile.build:492: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/ttm' failed
make[1]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/ttm] Error 2
make[1]: *** Waiting for unfinished jobs....
scripts/Makefile.build:492: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl' failed
make[1]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdkcl] Error 2
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_connectors.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_connectors.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_ttm.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_ttm.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/atom.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/atom.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_fence.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_fence.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_object.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_object.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_gart.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_gart.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_fb.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_fb.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_cs.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_cs.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_gem.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_gem.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_bios.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_bios.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_benchmark.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_benchmark.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_encoders.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_encoders.o] Error 1
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_display.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_display.o] Error 1
LD/var/lib/dkms/amdgpu/18.50-708488/build/scheduler/amd-sched.o
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../amdgpu/amdgpu.h:41:0,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
from /var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/../include/../backport/backport.h:12,
from <command-line>:0:
/var/lib/dkms/amdgpu/18.50-708488/build/include/drm/ttm/ttm_bo_driver.h:34:10: fatal error: drm/drm_global.h: No such file or directory
#include <drm/drm_global.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_i2c.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_i2c.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_ring.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_ring.o] Error 1
scripts/Makefile.build:276: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_test.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu/amdgpu_test.o] Error 1
scripts/Makefile.build:492: recipe for target '/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu' failed
make[1]: *** [/var/lib/dkms/amdgpu/18.50-708488/build/amd/amdgpu] Error 2
Makefile:1553: recipe for target '_module_/var/lib/dkms/amdgpu/18.50-708488/build' failed
make: *** [_module_/var/lib/dkms/amdgpu/18.50-708488/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.0.0-050000rc2-generic'
Seems, that AMD is not "up to date" with it's amdgpu-pro drivers.
I have the same issue with the actual kernel 5.0.0.37 after I hat to reinstall Ubuntu 18.04.3.
Before that step the amdgpu-pro dkms driver compiled without problems on 18.04.2
Update: "My fault".
I used Radeon GPU Pro 18.40 released for Ubuntu 18.04.1 in the opinion that this also works for 18.04.3...
So I had the same problems and thougt AMD is not "up to date"
After using the correct version of Radeon GPU Pro 19.30 all is running well...
19.30 was released Aug.2019
Google should not only be used with pleasure, but also correctly. *GG*
Thanks for documenting,
Could you provide some details about how you got it working?
Did you downgrade the kernel version?
I keep having the same issue on Ubuntu 18.04.4, kernel 5.3.0-28.
I tried to install multiple versions of the pro driver to no avail, amdgpu-dkms just won't compile against the kernel.
What I am after is OpenCL so I could use my pro card for 3D rendering in Blender
I used Google...
>Radeon software for linux ubuntu 18.04.3 site:amd.com< leads to the download page ...
https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux
there's the direkt link to the tarball.xz
Unfortunally >radeon software for linux 18.04.4 site:amd.com< leads to the old downloadpage, so i suppose there's no special Software for 18.04.4 at time...
If you use search on AMD, try:
Try https://www.amd.com/en/search?keyword=radeon+ubuntu+18.04.3
Last version seems 19.50
18.04.4 finds nothing too.
But maybe this version is up to date enough...
oh, completely missed those - have to practice more googlery.
Beforehand I only tried the ones available on the product support page of my GPU model (WX5100).
Interesting that the ones you found also claim to support my model AND offer the Pro driver option, yet there is no trace of them on the product support page :/
Anyways, back to the topic:
I tried installing the one found with your help: version 19.50 for Ubuntu 18.04.03 but sadly hit the exact same error.
And now that 18.04.4 is out with the 5.3.0-xx HWE kernels, this version of the driver (19.50) fails to build.
DKMS make.log for amdgpu-19.50-967956 for kernel 5.3.0-40-generic (x86_64)
Thu Mar 12 14:25:57 PDT 2020
make: Entering directory '/usr/src/linux-headers-5.3.0-40-generic'
CC
CC
CC
CC
CC
CC
CC
CC
CC
CC
CC
CC
In file included from /var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/../include/../backport/backport.h:8:0,
from <command-line>:0:
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h: In function ‘kcl_amdgpu_get_vblank_timestamp_kms’:
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:99:9: error: implicit declaration of function ‘amdgpu_get_vblank_timestamp_kms’; did you mean ‘kcl_amdgpu_get_vblank_timestamp_kms’? [-Werror=implicit-function-declaration]
return amdgpu_get_vblank_timestamp_kms(dev, pipe, max_error, vblank_time, flags);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kcl_amdgpu_get_vblank_timestamp_kms
CC
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdkcl/kcl_fence.c:63:1: warning: ‘dma_fence_test_signaled_any’ defined but not used [-Wunused-function]
dma_fence_test_signaled_any(struct dma_fence **fences, uint32_t count,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.c: At top level:
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.c:1449:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.get_vblank_timestamp = kcl_amdgpu_get_vblank_timestamp_kms,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.c:1449:26: note: (near initialization for ‘kms_driver.get_vblank_timestamp’)
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.c:1450:26: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.get_scanout_position = kcl_amdgpu_get_crtc_scanout_position,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.c:1450:26: note: (near initialization for ‘kms_driver.get_scanout_position’)
CC
LD
CC
CC
cc1: some warnings being treated as errors
scripts/Makefile.build:288: recipe for target '/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.o' failed
make[2]: *** [/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu/amdgpu_drv.o] Error 1
scripts/Makefile.build:519: recipe for target '/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu' failed
make[1]: *** [/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdgpu] Error 2
make[1]: *** Waiting for unfinished jobs....
CC
CC
CC
CC
CC
CC
CC
CC
CC
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdkcl/kcl_pci.c:189:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
_kcl_pcie_link_speed = (const unsigned char *) amdkcl_fp_setup("pcie_link_speed", _kcl_pcie_link_speed_stub);
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/19.50-967956/build/amd/amdkcl/kcl_pci.c:3:0:
/var/lib/dkms/amdgpu/19.50-967956/build/amd/amdkcl/kcl_common.h:23:21: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup)
^~~~~~~~~~~~~~~
CC
CC
CC
CC
CC
CC
LD
LD
Makefile:1655: recipe for target '_module_/var/lib/dkms/amdgpu/19.50-967956/build' failed
make: *** [_module_/var/lib/dkms/amdgpu/19.50-967956/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.3.0-40-generic'
You can try the new release... (see below)
There's a new release 20.10 with full 18.04.4 HWE Support.
https://www.amd.com/en/support/kb/release-notes/rn-amdgpu-unified-linux-20-10