cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

陈哲
Journeyman III

ubuntu 20.04 install 5700xt driver throw an error

DKMS make.log for amdgpu-5.6.14.224-1147287 for kernel 5.4.0-58-generic (x86_64)
2020年 12月 16日 星期三 09:52:20 CST
make: 进入目录“/usr/src/linux-headers-5.4.0-58-generic”
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/Makefile:20:

Spoiler
"Local GCC version 90303 does not match kernel compiler GCC version 90300"   is this reason?


/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/Makefile:21: "This may cause unexpected and hard-to-isolate compiler-related issues"
AR /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/built-in.a
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdkcl/main.o
...
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdkcl/kcl_backlight.o
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdkcl/kcl_fence.c:30:1: warning: ‘dma_fence_test_signaled_any’ defined but not used [-Wunused-function]
30 | dma_fence_test_signaled_any(struct dma_fence **fences, uint32_t count,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_kms.o
...
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/ttm/ttm_page_alloc_dma.o
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdkcl/kcl_pci.c:103:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
103 | _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/5.6.14.224-1147287/build/amd/amdkcl/kcl_pci.c:4:
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdkcl/kcl_common.h:12:63: note: expected ‘void *’ but argument is of type ‘const unsigned char *’
12 | static inline void *amdkcl_fp_setup(const char *symbol, void *fp_stup)
| ~~~~~~^~~~~~~
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/atombios_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_connectors.o
....
....
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_afmt.o
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_fb.c: In function ‘amdgpufb_create’:
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_fb.c:252:14: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
252 | info->fbops = &amdgpufb_ops;
| ^
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_trace_points.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/atombios_encoders.o
LD [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/ttm/amdttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_sa.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/atombios_i2c.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_dma_buf.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_vm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_ib.o
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_bios.c: In function ‘amdgpu_read_platform_bios’:

Spoiler
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
200 | bios = pci_platform_rom(adev->pdev, &size);      error place


| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_bios.c:200:7: warning: assignment to ‘uint8_t *’ {aka ‘unsigned char *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
200 | bios = pci_platform_rom(adev->pdev, &size);
| ^
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_pll.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_ucode.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_bo_list.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_ctx.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_sync.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_gtt_mgr.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275:/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_bios.o] 错误 1
make[2]: *** 正在等待未完成的任务....
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu/amdgpu_vram_mgr.o
make[1]: *** [scripts/Makefile.build:522:/var/lib/dkms/amdgpu/5.6.14.224-1147287/build/amd/amdgpu] 错误 2
make: *** [Makefile:1757:/var/lib/dkms/amdgpu/5.6.14.224-1147287/build] 错误 2
make: 离开目录“/usr/src/linux-headers-5.4.0-58-generic”

 

Tags (1)