-
Notifications
You must be signed in to change notification settings - Fork 116
Closed
Description
I tried to install the amdgpu-dkms module on Ubuntu 20.4.3, first I failed due to the issue with compiler flags, which was solved in #117, but now I'm getting nasty conflicting types compile errors, like
/var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_topology.h:229:11: error: conflicting types for ‘amd_iommu_pc_get_max_banks’
229 | extern u8 amd_iommu_pc_get_max_banks(u16 devid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:31:
./include/linux/amd-iommu.h:201:4: note: previous declaration of ‘amd_iommu_pc_get_max_banks’ was here
201 | u8 amd_iommu_pc_get_max_banks(unsigned int idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:34:
/var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_topology.h:230:11: error: conflicting types for ‘amd_iommu_pc_get_max_counters’
230 | extern u8 amd_iommu_pc_get_max_counters(u16 devid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:31:
./include/linux/amd-iommu.h:202:4: note: previous declaration of ‘amd_iommu_pc_get_max_counters’ was here
202 | u8 amd_iommu_pc_get_max_counters(unsigned int idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:347:11: error: conflicting types for ‘amd_iommu_pc_get_max_banks’
347 | extern u8 amd_iommu_pc_get_max_banks(u16 devid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:31:
./include/linux/amd-iommu.h:201:4: note: previous declaration of ‘amd_iommu_pc_get_max_banks’ was here
201 | u8 amd_iommu_pc_get_max_banks(unsigned int idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:348:11: error: conflicting types for ‘amd_iommu_pc_get_max_counters’
348 | extern u8 amd_iommu_pc_get_max_counters(u16 devid);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.c:31:
./include/linux/amd-iommu.h:202:4: note: previous declaration of ‘amd_iommu_pc_get_max_counters’ was here
202 | u8 amd_iommu_pc_get_max_counters(unsigned int idx);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_iommu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_debug.c: In function ‘kfd_dbg_trap_device_snapshot’:
/var/lib/dkms/amdgpu/5.11.32-1331380/build/amd/amdgpu/../amdkfd/kfd_debug.c:952:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
952 | }
I attached the whole build log: make.log
Which kernels are officially tested with this release? I couldn't find this information anywhere, but I suppose version 5.4 for Ubuntu 20.04.3?
Building the module worked for the following two Ubuntu kernels though:
- 5.11.0-42-generic
- 5.4.0-92-generic
Metadata
Metadata
Assignees
Labels
No labels