cancel
Showing results for 
Search instead for 
Did you mean: 

PC Drivers & Software

hekto
Adept I

The driver 'amdgpu-pro-20.40-1147286' installs with an error on Ubuntu 20.04.1 LTS

Installation command:

  sudo ./amdgpu-install -y --opencl=pal,legacy --headless

Content of the '/var/crash/amdgpu-dkms.0.crash' file:

ProblemType: Package
DKMSBuildLog:
DKMS make.log for amdgpu-5.6.14.224-1147286 for kernel 5.4.0-58-generic (x86_64)
Tue 15 Dec 2020 07:26:50 PM EST
make: Entering directory '/usr/src/linux-headers-5.4.0-58-generic'
/var/lib/dkms/amdgpu/5.6.14.224-1147286/build/Makefile:20: "Local GCC version 90303 does not match kernel compiler GCC version 90300"
/var/lib/dkms/amdgpu/5.6.14.224-1147286/build/Makefile:21: "This may cause unexpected and hard-to-isolate compiler-related issues"
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_mn.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_ioctl.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_device_cgroup.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_drm_cache.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_drm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_device.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_bo_util.o
/var/lib/dkms/amdgpu/5.6.14.224-1147286/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,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
LD [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/scheduler/amd-sched.o
AR /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/built-in.a
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_kthread.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_execbuf_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_mm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_kms.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_page_alloc.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_pci.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_bo_manager.o
/var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/5.6.14.224-1147286/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-1147286/build/amd/amdkcl/kcl_pci.c:4:
/var/lib/dkms/amdgpu/5.6.14.224-1147286/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-1147286/build/amd/amdkcl/kcl_perf_event.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_reservation.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_agp_backend.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_suspend.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_workqueue.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_atombios.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_seq_file.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_connector.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/ttm_page_alloc_dma.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_backlight.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/kcl_drm_atomic_helper.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/dma-buf/dma-resv.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/atombios_crtc.o
LD [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/ttm/amdttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_connectors.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/atom.o
LD [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdkcl/amdkcl.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_ttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_object.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_gart.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_display.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_i2c.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_gem.o
/var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_fb.c: In function ‘amdgpufb_create’:
/var/lib/dkms/amdgpu/5.6.14.224-1147286/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-1147286/build/amd/amdgpu/amdgpu_ring.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_cs.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_bios.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_benchmark.o
CC [M] /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_test.o
/var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_bios.c: In function ‘amdgpu_read_platform_bios’:
/var/lib/dkms/amdgpu/5.6.14.224-1147286/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);
| ^~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu/5.6.14.224-1147286/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);
| ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_bios.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.build:522: /var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu] Error 2
make: *** [Makefile:1757: /var/lib/dkms/amdgpu/5.6.14.224-1147286/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-58-generic'
DKMSKernelVersion: 5.4.0-58-generic
Date: Tue Dec 15 19:27:11 2020
DuplicateSignature: dkms:amdgpu-dkms:1:5.6.14.224-1147286:/var/lib/dkms/amdgpu/5.6.14.224-1147286/build/amd/amdgpu/amdgpu_bios.c:200:9: error: implicit declaration of function ‘pci_platform_rom’ [-Werror=implicit-function-declaration]
Package: amdgpu-dkms 1:5.6.14.224-1147286
PackageVersion: 1:5.6.14.224-1147286
SourcePackage: amdgpu-dkms
Title: amdgpu-dkms 1:5.6.14.224-1147286: amdgpu kernel module failed to build

 

 

 

 

0 Likes
4 Replies
joejustesen
Journeyman III

Exact same issue.

Looks like the file /lib/modules/5.4.0-58-generic/build/include/linux/pci.h is missing the function declaration for pci_platform_rom from some reason. 

It should be there, pci_platform_rom  shows it available.

Not sure why the difference

It looks this function has been removed from the kernel - see:

https://lore.kernel.org/amd-gfx/20200319021623.5426-1-mikel@mikelr.com/

"pci_platform_rom() now has no remaining callers, so remove it."

Another thread about this issue:

https://community.amd.com/t5/drivers-software/can-t-install-amdgpu-drivers-on-ubuntu-20-04-1-5-4-0-5...

AMD guys! Please

 

0 Likes

So, looks like the real culprit here is Mikel Rychliski :smileyhappy:

I do have to wonder, as a software developer myself, the idea of removing a public function used by external organizations because I thought nobody was using it.  Kind of blows my mind...

0 Likes

I think that AMD should adapt to the Linux kernel changes - simply because the kernel is a bigger project.

Are there any AMD people here?  

0 Likes