Skip to content

Instantly share code, notes, and snippets.

@anoduck
Last active March 30, 2023 05:12
Show Gist options
  • Save anoduck/b641f883cf80d027813666912eca8102 to your computer and use it in GitHub Desktop.
Save anoduck/b641f883cf80d027813666912eca8102 to your computer and use it in GitHub Desktop.
Make log from attempting to compile amdgpu in kali Linux.
DKMS make.log for amdgpu-5.18.13-1538762.22.04 for kernel 6.1.0-kali7-amd64 (amd64)
Wed Mar 29 06:41:47 PM EDT 2023
make: Entering directory '/usr/src/linux-headers-6.1.0-kali7-amd64'
CC [M] /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_drv.o
In file included from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/posix_types.h:5,
from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/types.h:14,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/types.h:6,
from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/sched.h:5,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/sched.h:10,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/include/kcl/backport/kcl_kthread_backport.h:4,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/scheduler/backport/backport.h:7,
from <command-line>:
/usr/src/linux-headers-6.1.0-kali7-common/include/linux/stddef.h:8:14: error: expected declaration specifiers or ‘...’ before ‘(’ token
8 | #define NULL ((void *)0)
| ^
/usr/src/linux-headers-6.1.0-kali7-common/include/drm/drm_print.h:410:23: note: in expansion of macro ‘NULL’
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro ‘drm_dev_dbg’
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
make[2]: *** [/usr/src/linux-headers-6.1.0-kali7-common/scripts/Makefile.build:255: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/scheduler/sched_main.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-kali7-common/scripts/Makefile.build:505: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/scheduler] Error 2
make[1]: *** Waiting for unfinished jobs....
CC [M] /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_device.o
In file included from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/posix_types.h:5,
from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/types.h:14,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/types.h:6,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/limits.h:6,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/backport.h:6,
from <command-line>:
/usr/src/linux-headers-6.1.0-kali7-common/include/linux/stddef.h:8:14: error: expected declaration specifiers or ‘...’ before ‘(’ token
8 | #define NULL ((void *)0)
| ^
/usr/src/linux-headers-6.1.0-kali7-common/include/drm/drm_print.h:410:23: note: in expansion of macro ‘NULL’
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro ‘drm_dev_dbg’
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
make[2]: *** [/usr/src/linux-headers-6.1.0-kali7-common/scripts/Makefile.build:255: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/posix_types.h:5,
from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/types.h:14,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/types.h:6,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/limits.h:6,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/kernel.h:16,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/backport.h:6,
from <command-line>:
/usr/src/linux-headers-6.1.0-kali7-common/include/linux/stddef.h:8:14: error: expected declaration specifiers or ‘...’ before ‘(’ token
8 | #define NULL ((void *)0)
| ^
/usr/src/linux-headers-6.1.0-kali7-common/include/drm/drm_print.h:410:23: note: in expansion of macro ‘NULL’
410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__)
| ^~~~
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/include/kcl/kcl_drm_print.h:195:6: note: in expansion of macro ‘drm_dev_dbg’
195 | void drm_dev_dbg(const struct device *dev, int category, const char *format, ...);
| ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu.h:69,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:35,
from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/backport.h:84:
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_mode.h:308:32: error: field ‘base’ has incomplete type
308 | struct drm_framebuffer base;
| ^~~~
In file included from /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/backport.h:85:
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h: In function ‘kcl_drm_gem_fb_set_obj’:
/var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_gem_framebuffer_helper.h:12:19: error: invalid use of undefined type ‘struct drm_framebuffer’
12 | fb->obj[index] = obj;
| ^~
make[2]: *** [/usr/src/linux-headers-6.1.0-kali7-common/scripts/Makefile.build:255: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_device.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-kali7-common/scripts/Makefile.build:505: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu] Error 2
make: *** [/usr/src/linux-headers-6.1.0-kali7-common/Makefile:2037: /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.1.0-kali7-amd64'
@anoduck
Copy link
Author

anoduck commented Mar 30, 2023

There is a serious bug in the amd graphics driver that prevents it from installing in linux kernel +6.0. It was noted over three months ago, a fix is in the works, but there is no signs of this occurring anytime soon.

https://community.amd.com/t5/graphics/radeon-rx-7900-xt-driver-does-not-install-properly-on-linux/td-p/567735

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment