Error bad return status for module build on kernel

#Ubuntu 16.04.3 (4.10.0-33-generic) #Device Vega FE #Driver installed amdgpu-pro-17.30-465504 $wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add - $sudo sh -c 'e...

#Ubuntu 16.04.3 (4.10.0-33-generic)
#Device Vega FE
#Driver installed amdgpu-pro-17.30-465504

$wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
$sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'

$sudo apt-get update
$sudo apt-get install rocm

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  compute-firmware cxlactivitylogger hcc hip_base hip_doc hip_hcc hip_samples libunwind-dev
  linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148 linux-image-4.11.0-kfd-compute-rocm-rel-1.6-148 rocm-dev rocm-device-libs rocm-profiler
  rocm-smi rocm-utils
Suggested packages:
  linux-firmware-image-4.11.0-kfd-compute-rocm-rel-1.6-148
The following NEW packages will be installed:
  compute-firmware cxlactivitylogger hcc hip_base hip_doc hip_hcc hip_samples libunwind-dev
  linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148 linux-image-4.11.0-kfd-compute-rocm-rel-1.6-148 rocm rocm-dev rocm-device-libs
  rocm-profiler rocm-smi rocm-utils
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/329 MB of archives.
After this operation, 1,985 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package compute-firmware.
(Reading database ... 311097 files and directories currently installed.)
Preparing to unpack .../compute-firmware_1.2.557_all.deb ...
Unpacking compute-firmware (1.2.557) ...
Selecting previously unselected package libunwind-dev.
Preparing to unpack .../libunwind-dev_1.1-4.1_amd64.deb ...
Unpacking libunwind-dev (1.1-4.1) ...
Selecting previously unselected package rocm-utils.
Preparing to unpack .../rocm-utils_1.0.0_amd64.deb ...
Unpacking rocm-utils (1.0.0) ...
Selecting previously unselected package hcc.
Preparing to unpack .../hcc_1.0.17312_amd64.deb ...
Unpacking hcc (1.0.17312) ...
Selecting previously unselected package hip_base.
Preparing to unpack .../hip%5fbase_1.2.17305_amd64.deb ...
Unpacking hip_base (1.2.17305) ...
Selecting previously unselected package hip_doc.
Preparing to unpack .../hip%5fdoc_1.2.17305_amd64.deb ...
Unpacking hip_doc (1.2.17305) ...
Selecting previously unselected package hip_hcc.
Preparing to unpack .../hip%5fhcc_1.2.17305_amd64.deb ...
Unpacking hip_hcc (1.2.17305) ...
Selecting previously unselected package hip_samples.
Preparing to unpack .../hip%5fsamples_1.2.17305_amd64.deb ...
Unpacking hip_samples (1.2.17305) ...
Selecting previously unselected package linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148.
Preparing to unpack .../linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148_4.11.0-kfd-compute-rocm-rel-1.6-148-1_amd64.deb ...
Unpacking linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148 (4.11.0-kfd-compute-rocm-rel-1.6-148-1) ...
Selecting previously unselected package linux-image-4.11.0-kfd-compute-rocm-rel-1.6-148.
Preparing to unpack .../linux-image-4.11.0-kfd-compute-rocm-rel-1.6-148_4.11.0-kfd-compute-rocm-rel-1.6-148-1_amd64.deb ...
Unpacking linux-image-4.11.0-kfd-compute-rocm-rel-1.6-148 (4.11.0-kfd-compute-rocm-rel-1.6-148-1) ...
Selecting previously unselected package rocm-device-libs.
Preparing to unpack .../rocm-device-libs_0.0.1_amd64.deb ...
Unpacking rocm-device-libs (0.0.1) ...
Selecting previously unselected package rocm-smi.
Preparing to unpack .../rocm-smi_1.0.0-25-gbdb99b4_amd64.deb ...
Unpacking rocm-smi (1.0.0-25-gbdb99b4) ...
Selecting previously unselected package cxlactivitylogger.
Preparing to unpack .../cxlactivitylogger_5.1.6400_amd64.deb ...
Unpacking cxlactivitylogger (5.1.6400) ...
Selecting previously unselected package rocm-profiler.
Preparing to unpack .../rocm-profiler_5.1.6400_amd64.deb ...
Unpacking rocm-profiler (5.1.6400) ...
Selecting previously unselected package rocm-dev.
Preparing to unpack .../rocm-dev_1.6.148_amd64.deb ...
Unpacking rocm-dev (1.6.148) ...
Selecting previously unselected package rocm.
Preparing to unpack .../rocm_1.6.148_amd64.deb ...
Unpacking rocm (1.6.148) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up compute-firmware (1.2.557) ...
Setting up libunwind-dev (1.1-4.1) ...
Setting up rocm-utils (1.0.0) ...
Setting up hcc (1.0.17312) ...
Setting up hip_base (1.2.17305) ...
Setting up hip_doc (1.2.17305) ...
Setting up hip_hcc (1.2.17305) ...
Setting up hip_samples (1.2.17305) ...
Setting up linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148 (4.11.0-kfd-compute-rocm-rel-1.6-148-1) ...
Setting up linux-image-4.11.0-kfd-compute-rocm-rel-1.6-148 (4.11.0-kfd-compute-rocm-rel-1.6-148-1) ...
ERROR (dkms apport): kernel package linux-headers-4.11.0-kfd-compute-rocm-rel-1.6-148 is not supported
Error! Bad return status for module build on kernel: 4.11.0-kfd-compute-rocm-rel-1.6-148 (x86_64)
Consult /var/lib/dkms/amdgpu-pro/17.30-465504/build/make.log for more information.
update-initramfs: Generating /boot/initrd.img-4.11.0-kfd-compute-rocm-rel-1.6-148
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.11.0-kfd-compute-rocm-rel-1.6-148
Found initrd image: /boot/initrd.img-4.11.0-kfd-compute-rocm-rel-1.6-148
Found linux image: /boot/vmlinuz-4.10.0-33-generic
Found initrd image: /boot/initrd.img-4.10.0-33-generic
Found linux image: /boot/vmlinuz-4.4.0-87-generic
Found initrd image: /boot/initrd.img-4.4.0-87-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Setting up rocm-device-libs (0.0.1) ...
Setting up rocm-smi (1.0.0-25-gbdb99b4) ...
Setting up cxlactivitylogger (5.1.6400) ...
Setting up rocm-profiler (5.1.6400) ...
Setting up rocm-dev (1.6.148) ...
Setting up rocm (1.6.148) ...
KERNEL=="kfd", MODE="0666"

I’m trying to install nvidia-387 on my fresh Ubuntu 16.04.

Once I launch sudo apt-get install nvidia-387 I always end up in the following outputs:

Building initial module for 4.13.0-26-generic
Error! Bad return status for module build on kernel: 4.13.0-26-generic (x86_64)

During my searches I found lot of issues pointing to a wrong gcc version but after several attempts I wasn’t able to find a way to go: following this discussion I tried with gcc 4.8/4-9/5.4/6 without any luck.

Any help?

Thank you very much.

asked Jan 15, 2018 at 1:16

luke035's user avatar

Looks like the issue is cause by some shuffling of linux headers in some recent linux kernel updates.

Relevant discussion:
https://devtalk.nvidia.com/default/topic/1028016/linux/patch-for-compiling-v384-98-modules-with-linux-v4-14-9-/

I had the exact same issue and I fixed it by applying the patch suggested by user PGNd in the discussion above.

Step by step instructions for manual edit of the nvidia src files on Ubuntu 16.04:

  1. sudo apt-get install nvidia-387 (this will fail)
  2. sudo nano /usr/src/nvidia-387-387.26/nvidia-uvm/uvm8_va_block.c
    (you should replace nvidia-387-387.26 with the version you are trying to install.)
  3. Add the line #include <linux/sched/task_stack.h> before the other include statements at the beginning of the file
  4. Run sudo dpkg-reconfigure nvidia-387 to rebuild the nvidia driver
  5. Reboot

This should work as a temporary workaround until nvidia releases a fix.
I was able to install cuda-9.1 after doing this.

answered Jan 15, 2018 at 15:29

adikus's user avatar

adikusadikus

1161 silver badge2 bronze badges

4

@adikus’s answer did not work for me. Even after adding the header the build error continue to happen. What fixed the issue for me was upgrading the version of the drivers to 410:

sudo apt-get update
sudo apt-get install nvidia-410

The compilation for this version succeeded and I’m now able to play games once again.

answered Mar 17, 2019 at 23:17

Sergio's user avatar

Not so much as a question as a documentation.

This is regarding a failing apt-get install or update related to virtualbox 6.1.10, Ubuntu 20.04, and virtualbox-dkms package failing to build.

I had an issue recently with Ubuntu 20.04 and Virtual Box 6.1.10 that’s similar to what has been documented here and here.

The issue was that installing virtual box from the ubuntu software center installed v6.1.10 which is incompatible with the current ubuntu kernel version, v 5.8.xx.

These are all known issues, however my problem arose when I erroneously tried reinstalling vbox from the package store. Previously, virtualbox-dkms, had been compiled and reinstalling removes the functioning package and which fails with an error (status 10). So I ended up with an error like this:

Loading new virtualbox-6.1.10 DKMS files...
Building for 5.8.0-36-generic
Building initial module for 5.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-36-generic (x86_64)
Consult /var/lib/dkms/virtualbox/6.1.10/build/make.log for more information.
dpkg: error processing package virtualbox-dkms (--configure):
 installed virtualbox-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for man-db (2.9.1-1) ...
Errors were encountered while processing:
 virtualbox-dkms

This error can be seen either at:

cat /var/log/apt/history.log

—or—

/var/log/apt/term.log

In order to fix this I reinstalled virtualbox v.6.1.16 directly from their website following the instructions found here.

However on subsequent updates I was still receiving the same error regarding virtualbox-dkms, even though the process was no longer used. So, in order to fix this, following this site.

I copied the post install script that was causing failure:

sudo mv /var/lib/dpkg/info/virtualbox-dkms.postinst ./virtualbox-dkms.postinst.bac

then purged the remaining dkms files for the old virtualbox installation and did an update:

sudo apt-get purge virtualbox-dkms
sudo apt-get update && sudo apt-get upgrade

So far no issues! Hope this helps someone else!

TLDR: Tried to reinstall to fix virtualbox v6.10 from ubuntu software manager. v6.10 has issue with ubuntu 20.04 kernel v5.8. To fix broken package, virtualbox-dkms, remove post-install script and purge old virtualbox v6.1.10 files and install virtualbox directly from their website to get virtualbox ^v6.1.16.

Hello enclave_research,

Confirm that you have followed the instructions for installing the DCAP driver for RHEL on page 7 of the Intel SGX SW Installation Guide for Linux.

a. Since the DCAP Driver is built from the driver package, install the required components that support the Intel® SGX PSW installation. To install protobuf-devel and dkms, you need to enable the CodeReady Builder repo and install the EPEL repo:

$ sudo subscription-manager repos —enable codeready-builder-for-rhel8-x86_64-rpms

$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-releaselatest-8.noarch.rpm

Now install the required packages.

Note: This command line contains modules that are needed in components described in subsequent sections of this document

ENSURE YOU RUN THESE COMMANDS:

$ sudo yum install openssl-devel libcurl-devel yum-utils wget dkms

$ make kernel-devel kernel

b. Download the latest Intel SGX Driver binary file the appropriate distro directory: https://download.01.org/intel-sgx/latest/linux-latest/distro For example, to download the driver for RHEL 8.1, use the following command:

$ wget — https://download.01.org/intel-sgx/latest/dcap-latest/linux/distro/rhel8.2-server/sgx_linux_x64_drive…

c. Set the protections to allow for the .bin file execution:

$ chmod 777 sgx_linux_x64_driver_1.41.bin

d. Install the driver:

$ sudo ./sgx_linux_x64_driver_1.41.bin

The installer also loads the DCAP Driver and sets it to auto-load when the system reboots. To verify the driver loaded correctly, check that the device shows up in the /dev folder:

$ ls -la /dev/sgx*

crw——-. 1 root root 10, 60 Mar 18 15:06 /dev/sgx_enclave

crw——-. 1 root root 10, 59 Mar 18 15:06 /dev/sgx_provision

Sincerely,

Jesus G.

Intel Customer Support

SurlyJest

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I am getting a different error on Ubuntu 20.04  with kernel 5.4.0-56-generic:

ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.crash’
Error! Bad return status for module build on kernel: 5.4.0-56-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1164792) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1164792) …

It seems to me that this version is unusable in the current version of Ubuntu 20.04 (I just updated today to a newer kernel).  So, I can’t use this until they fix this, unless I want to go fixing their code (and I’m not confident with that).

The make log file indicates several errors in compiling, possibly due to a compiler difference (mine is newer):
DKMS make.log for amdgpu-5.6.20.906300-1164792 for kernel 5.4.0-56-generic (x86_64)
Wed 02 Dec 2020 12:01:34 AM EST
make: Entering directory ‘/usr/src/linux-headers-5.4.0-56-generic’
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:20: «Local GCC version 90303 does not match kernel compiler GCC version 90300»
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/Makefile:21: «This may cause unexpected and hard-to-isolate compiler-related issues»
AR /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/built-in.a
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/main.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/symbols.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_ioctl.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_memory.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/sched_entity.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_device_cgroup.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_tt.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_cache.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_drv.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_device.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence_array.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_io.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_kthread.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_perf_event.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_vm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_reservation.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/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.20.906300-1164792/build/amd/amdgpu/amdgpu_kms.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_suspend.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/scheduler/amd-sched.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_workqueue.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_seq_file.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_connector.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c: In function ‘amdkcl_pci_init’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:103:84: warning: passing argument 2 of ‘amdkcl_fp_setup’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualif
iers]
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.20.906300-1164792/build/amd/amdkcl/kcl_pci.c:4:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/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.20.906300-1164792/build/amd/amdkcl/kcl_backlight.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_atomic_helper.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_module.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modeset_lock.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_drm_modes.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/kcl_mn.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_execbuf_util.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_page_alloc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/dma-buf/dma-resv.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_bo_manager.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_agp_backend.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/ttm_page_alloc_dma.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_atombios.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_crtc.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_connectors.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atom.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fence.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ttm.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdkcl/amdkcl.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_object.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_gart.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_display.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_i2c.o
LD [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/ttm/amdttm.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_gem.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_ring.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_cs.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_benchmark.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_test.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_dp.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_afmt.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_fb.c: In function ‘amdgpufb_create’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/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.20.906300-1164792/build/amd/amdgpu/amdgpu_trace_points.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/atombios_encoders.o
CC [M] /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_sa.o
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/amd/amdgpu/amdgpu_bios.c: In function ‘amdgpu_read_platform_bios’:
/var/lib/dkms/amdgpu/5.6.20.906300-1164792/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.20.906300-1164792/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]

SurlyJest

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I may have exceeded a reply length — my message was truncated. The last bit of the make.log is:

cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/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.20.906300-1164792/build/amd/amdgpu] Error 2
make: *** [Makefile:1757: /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build] Error 2
make: Leaving directory ‘/usr/src/linux-headers-5.4.0-56-generic’

So it is failing the build since it is set to treat these warnings as errors.

deepmindser

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

well, i’m not baszczer, but still.

Thanks to baszczer, I’ve tryed to use 5.4.0-54 (the previous one) and it just works!

To install 5.4.0-54 do next:

sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux-modules-extra-5.4.0-54-generic

then reboot to 5.4.0-54

then

sudo apt remove linux-image-5.4.0-56-generic linux-image-unsigned-5.4.0-56-generic

(unsigned mentioned here because it tryed to install it for me by some reason.. it just helped)

then do

sudo apt autoremove

then go to /usr/src and remove linux-headers-5.4.0-56-generic and inux-headers-5.4.0-56 (if any of them are there)

now you can do

sudo ./amdgpu-install -y

Rnd3sB3g13rng

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Karocyt

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

You saved my afternoon ! (But it was already too late for my morning)
Found your thread by looking for «pci_platform_rom implicit declaration», as its removal from 5.4.0.56 was the true culprit behind this mess.
The Kernel update was apparently preventing my second monitor to work too, despite having installed the driver a while ago.

cyberbemon

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

amdgpu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

Running the post_install script:

depmod....

DKMS: install completed.
Building initial module for 5.8.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-40-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up libatomic1:i386 (10.2.0-5ubuntu1~20.04) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-
1188099) ...
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libdrm2:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libx11-6:i386 (2:1.6.9-2ubuntu1.1) ...
Setting up libwayland-egl1:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) ...
Setting up amdgpu-pro-core (20.45-1188099) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libdrm-amdgpu1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libwayland-client0:i386 (1.18.0-1) ...
Setting up libwayland-server0:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
 amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); howe
ver:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up libdrm-nouveau2:i386 (2.4.102-1ubuntu1~20.0
4.1) ...
Setting up libgbm1-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up libxdamage1:i386 (1:1.1.5-2) ...
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up gst-omx-amdgpu (1.0.0.1-1188099) ...
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
Setting up libdrm-radeon1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libxext6:i386 (2:1.3.4-0ubuntu1) ...
Setting up clinfo-amdgpu-pro (20.45-1188099) ...
Setting up hip-rocr-amdgpu-pro (20.45-1188099) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build1) ...
Setting up libllvm11:i386 (1:11.0.0-2~ubuntu20.04.1) ...
Setting up libxfixes3:i386 (1:5.0.3-2) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libvdpau1:i386 (1.3-1ubuntu2) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up mesa-vdpau-drivers:i386 (20.2.6-0ubuntu0.20.04.1) ...
Setting up mesa-amdgpu-vdpau-drivers:i386 (1:20.1.6-1188099) ...
Setting up amdgpu-lib (20.45-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) ...
Setting up vdpau-driver-all:i386 (1.3-1ubuntu2) ...
Setting up amdgpu-lib32 (20.45-1188099) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro-rocr-opencl

I tried this on

5.4.0-54-generic

mountkidd

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

amdgpu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdttm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amdkcl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

amd-sched.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-54-generic/updates/dkms/

Running the post_install script:

depmod....

DKMS: install completed.
Building initial module for 5.8.0-40-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms-fir
mware.0.crash'
Error! Bad return status for module build on kernel: 5.8.0-40-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
Setting up libatomic1:i386 (10.2.0-5ubuntu1~20.04) ...
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-
1188099) ...
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libdrm2:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libx11-6:i386 (2:1.6.9-2ubuntu1.1) ...
Setting up libwayland-egl1:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) ...
Setting up amdgpu-pro-core (20.45-1188099) ...
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) ...
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libdrm-amdgpu1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up libwayland-client0:i386 (1.18.0-1) ...
Setting up libwayland-server0:i386 (1.18.0-1) ...
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
 amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); howe
ver:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup erro
r from a previous failure.
                          Setting up libdrm-nouveau2:i386 (2.4.102-1ubuntu1~20.0
4.1) ...
Setting up libgbm1-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up libxdamage1:i386 (1:1.1.5-2) ...
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) ...
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) ...
Setting up gst-omx-amdgpu (1.0.0.1-1188099) ...
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) ...
Setting up libdrm-radeon1:i386 (2.4.102-1ubuntu1~20.04.1) ...
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) ...
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up libxext6:i386 (2:1.3.4-0ubuntu1) ...
Setting up clinfo-amdgpu-pro (20.45-1188099) ...
Setting up hip-rocr-amdgpu-pro (20.45-1188099) ...
Setting up libxxf86vm1:i386 (1:1.1.4-1build1) ...
Setting up libllvm11:i386 (1:11.0.0-2~ubuntu20.04.1) ...
Setting up libxfixes3:i386 (1:5.0.3-2) ...
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) ...
Setting up libvdpau1:i386 (1.3-1ubuntu2) ...
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) ...
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) ...
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) ...
Setting up mesa-vdpau-drivers:i386 (20.2.6-0ubuntu0.20.04.1) ...
Setting up mesa-amdgpu-vdpau-drivers:i386 (1:20.1.6-1188099) ...
Setting up amdgpu-lib (20.45-1188099) ...
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) ...
Setting up vdpau-driver-all:i386 (1.3-1ubuntu2) ...
Setting up amdgpu-lib32 (20.45-1188099) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro-rocr-opencl

I tried this on

5.4.0-54-generic

I see two different kernels referenced in this build 5.4.0-54 and 5.8.0-40.  There might remnants from a previous kernel install that have not been removed and should be.

If you are building for 5.4.0-54 amdgpu 20.30 or 20.40 might be the best choice.  If it’s amdgpu 20.45, kernel 5.4.0-58 and higher…

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Yep… the root problem here is that for some reason Canonical released a 5.8.0 kernel upgrade for 20.04.1 (which broke the driver install) rather than releasing it as part of 20.04.2 in Feb. We will be talking with them today to understand if that was an accident or a new plan.

The 20.45 driver should be OK with any of the 5.4.0-x kernels AFAIK. @mountkidd was there a reason you suggested 20.40 for 5.4.0-54 or earlier ? Wondering if we should be changing our advice.

mountkidd

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@bridgman wrote:

Yep… the root problem here is that for some reason Canonical released a 5.8.0 kernel upgrade for 20.04.1 (which broke the driver install) rather than releasing it as part of 20.04.2 in Feb. We will be talking with them today to understand if that was an accident or a new plan.

The 20.45 driver should be OK with any of the 5.4.0-x kernels AFAIK. @mountkidd was there a reason you suggested 20.40 for 5.4.0-54 or earlier ? Wondering if we should be changing our advice.


There have been a number of 20.45 installs that have failed with a variety of kernels. 

So back to basics.  5.4.0-54 and earlier do have the pci_platform_rom kernel symbol.  This can be checked with grep «pci_platform_rom» /boot/System.map-your-kernel-name.  If it is there, then install amdgpu 20.30 or 20.40.  If it is not there, then install amdgpu 20.45 as this version no longer uses the «pci_platform_rom» call and should be kernel independent.  I expect 20.45 should work with 5.8.0 kernels but the results have been mixed.

The same missing kernel call issue exists for 18.04.5 LTS.  Kernels 4.15.0-115/117 and amdgpu 20.30 (for 18.04 hwe) installed correctly.  As the kernel number migrated upward, the 20.30 driver install broke, while the kernel build got errors but still produced a bootable kernel.  Kernels 4.15.0-128/129/130/132 are all missing the «pci_platform_rom» call.  I suspect all was well up to about 4.15.0-122 before the poo started hitting the fan.  I did get my 18.04 LTS system functioning again by upgrading the kernel from 4.15.0-130 to kernel 5.4.0-52 and re-installing amdgpu-pro 20.30. 

Any progress on getting an amdgpu 20.45 version for 18.04 HWE?

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

Hi, I did it that way:

«apt purge linux-generic-hwe-20.04» — removes linux-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23)

«apt install linux-generic» — installs linux-modules-extra-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-headers-generic:amd64 (5.4.0.62.65, automatic), linux-headers-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-image-generic:amd64 (5.4.0.62.65, automatic), linux-modules-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-headers-5.4.0-62:amd64 (5.4.0-62.70, automatic), linux-image-5.4.0-62-generic:amd64 (5.4.0-62.70, automatic), linux-generic:amd64 (5.4.0.62.65)

After that I’ve purged — linux-headers-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-headers-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-modules-extra-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-modules-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-image-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-hwe-5.8-headers-5.8.0-38:amd64 (5.8.0-38.43~20.04.1), linux-image-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1)

Then I’ve installed amdgpu-pro 20.45, Ubuntu works fine.

cyberbemon

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@baszczer wrote:


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

After that I’ve purged — linux-headers-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-headers-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-modules-extra-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-modules-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-image-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-hwe-5.8-headers-5.8.0-38:amd64 (5.8.0-38.43~20.04.1), linux-image-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1)

Then I’ve installed amdgpu-pro 20.45, Ubuntu works fine.


Do you mind sharing the commands you run to do this? Just wanna make sure I don’t mess anything up.

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@cyberbemon wrote:


@baszczer wrote:


@cyberbemon wrote:

Got the driver 20.45 followed the post that was marked as a solution, but I can’t get anything to work. I uninstalled everything and tried again, still no use. Same error.

This is so frustrating, I just wanna get my work done. Did anyone else manage to get this to work? any other linux distro I can use, where I don’t have to stay up till 5 am to get a driver working.

After that I’ve purged — linux-headers-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-headers-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-modules-extra-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-modules-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1), linux-image-generic-hwe-20.04:amd64 (5.8.0.38.43~20.04.23), linux-hwe-5.8-headers-5.8.0-38:amd64 (5.8.0-38.43~20.04.1), linux-image-5.8.0-38-generic:amd64 (5.8.0-38.43~20.04.1)

Then I’ve installed amdgpu-pro 20.45, Ubuntu works fine.


Do you mind sharing the commands you run to do this? Just wanna make sure I don’t mess anything up.


sudo apt purge «package name»

sudo apt remove «package name»

https://itsfoss.com/apt-command-guide/

hedleyroos

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I have an RX 6800 and was able to install it with the 20.45 driver and a 5.4.0-42 kernel earlier in January by following the instructions on Radeon Software for Linux and uninstalling the 5.8 kernel before I started. On the evening of Thursday 22 Jan I was testing software to increase the power limit and I broke the system, leading to a reinstall on the Friday morning. It worked exactly as well as before.

On Saturday night 24 Jan I messed around with corectrl and broke it again (here’s a developing theme). This time around the drivers installed but they refused to show my GPU under clinfo. I reinstalled a few times, and even told Ubuntu to not upgrade packages during the install, but nothing worked. Something must have happened in those two days. By the way I also noticed my cleanly installed kernel version number is 5.8.0-40 as opposed to baszczer’s 5.8.0-38, but I didn’t run an update or upgrade even once, so I don’t know how that happened.

Eventually I got lucky and ran clinfo as root, and there was my GPU. I added my user to the video and render groups, restarted and suddenly OpenCL worked as expected.

Years ago I successfully built a cross compiler for an SGI O2 and I never thought I would ever have to struggle as much again, but the AMD driver proved me wrong. We really need a way to get more verbose logging.

ronluvsamd

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Hi.. I want to switch to ubuntu full time and am new to all this so kindly please be patient with me.

I greatly appreciate all the help here.

sudo apt install linux-image-5.4.0-54-generic linux-headers-5.4.0-54-generic linux linux-modules-extra-5.4.0-54-generic
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux

So I tried the command and this is what I got. Was I supposed to download something before I used the command or  did I miss something here.

FYI System Info :

MSI 450 Pro VDH | AMD Ryzen 5 3400G with Vega Graphics | 8GB RAM | M.2 SSD

But I am using my Sony EX52 LED TV as my screen.

I hope that is not an issue. I got back to Ubuntu after almost 10 years and I am not as tech savy as I used to be.

Any suggestions would help greatly and will be much appreciated.

Thanks,

Rohan Reginald

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@rick4665 wrote:

Hi baszczer, could you share how you installed the 5.4.0-52 kernel?  Any problems with the lower level kernel?


Hi,

yes, here you are:

sudo apt install linux-headers-5.4.0-52-generic
sudo apt install linux-image-5.4.0-52-generic 
sudo apt install linux-modules-extra-5.4.0-52-generic linux-tools-5.4.0-52-generic 

Works fine, I didn’t notice any problems.

c_zagarskas

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I’m having similar issues with amdgpu-pro version…

your solution to downgrade the kernel seems like a good workaround… but If I am not physically near the box what are the risks? could I be stuck unable to remote into Ubuntu on Wayland?

currently I’m remotely accessing 1 Windows machine (on location) that has full local network access and then RDP via windows into each box.

as such, I’m concerned I could black screen the Ubuntu box and have to physically go there to repair it. is this a legit concern with a kernel downgrade as described here?


@baszczer wrote:

Temporary solution that worked for me is to remove 5.4.0-56 kernel and install drivers on 5.4.0-52.


baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@c_zagarskas wrote:

I’m having similar issues with amdgpu-pro version…

your solution to downgrade the kernel seems like a good workaround… but If I am not physically near the box what are the risks? could I be stuck unable to remote into Ubuntu on Wayland?

currently I’m remotely accessing 1 Windows machine (on location) that has full local network access and then RDP via windows into each box.

as such, I’m concerned I could black screen the Ubuntu box and have to physically go there to repair it. is this a legit concern with a kernel downgrade as described here?


@baszczer wrote:

Temporary solution that worked for me is to remove 5.4.0-56 kernel and install drivers on 5.4.0-52.



20.45 (Release Date:12/17/2020) works fine with latest (5.4.0-59-generic) kernel. Have had no issues with drivers installation.

tim-savage

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Can also confirm that amdgpu-pro-20.45-1188099-ubuntu-20.04 release fixes the issue and will install on the latest (and previous) Ubuntu kernels.

The amdgpu-dkms module source has been patched with the change I linked in my previous reply.

c_zagarskas

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


@tim-savage wrote:

Can also confirm that amdgpu-pro-20.45-1188099-ubuntu-20.04 release fixes the issue and will install on the latest (and previous) Ubuntu kernels.

The amdgpu-dkms module source has been patched with the change I linked in my previous reply.


uname -r
5.8.0-34-generic

download pack with amdgpu-pro-core_20.45-1188099_all.deb

ran:

./amdgpu-pro-install -y —opencl=rocr,legacy —headless

FIRST ERROR:

Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms.0.c
rash’
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more infor
mation.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned erro
r exit status 10

END RESULT:

Errors were encountered while processing:
amdgpu-dkms
amdgpu-pro-rocr-opencl
E: Sub-process /usr/bin/dpkg returned an error code (1)

to confirm, problem persists on latest Ubuntu kernel

I think the rollback to the previous kernel and v 20.40 or earlier is worth a shot (will find out soon). I know my box had as far back as amdgpu-pro 20.17 (up to 20.40) installed without issue

baszczer

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

…here we go again:

Building for 5.8.0-34-generic
Building for architecture x86_64
Building initial module for 5.8.0-34-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/amdgpu-dkms-firmware.0.crash’
Error! Bad return status for module build on kernel: 5.8.0-34-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906316-1188099/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (—configure):
installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
amdgpu depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (—configure):
dependency problems — leaving unconfigured
Setting up xserver-xorg-amdgpu-video-amdgpu (1:19.1.0-1188099) …
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up mesa-amdgpu-omx-drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-glx:i386 (1:20.1.6-1188099) …
Setting up amdgpu-pro-core (20.45-1188099) …
Setting up libgles2-amdgpu-mesa:amd64 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-mesa:i386 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:amd64 (1:20.1.6-1188099) …
Setting up libgl1-amdgpu-mesa-dri:i386 (1:20.1.6-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro-rocr-opencl:
amdgpu-pro-rocr-opencl depends on amdgpu-dkms (= 1:5.6.20.906316-1188099); however:
Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu-pro-rocr-opencl (—configure):
dependency problems — leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Setting up vulkan-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libosmesa6-amdgpu:amd64 (1:20.1.6-1188099) …
Setting up libosmesa6-amdgpu:i386 (1:20.1.6-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro:
amdgpu-pro depends on amdgpu (= 20.45-1188099); however:
Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (—configure):
dependency problems — leaving unconfigured
Setting up comgr-amdgpu-pro:amd64 (1.7.0-1188099) …
No apport report written because MaxReports is reached already
Setting up hsa-runtime-rocr-amdgpu:amd64 (1.2.0-1188099) …
Setting up ocl-icd-libopencl1-amdgpu-pro:amd64 (20.45-1188099) …
Setting up clinfo-amdgpu-pro (20.45-1188099) …
Setting up hip-rocr-amdgpu-pro (20.45-1188099) …
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
amdgpu-pro-lib32 depends on amdgpu (= 20.45-1188099) | amdgpu-hwe (= 20.45-1188099); however:
Package amdgpu is not configured yet.
Package amdgpu-hwe is not installed.
amdgpu-pro-lib32 depends on amdgpu-pro (= 20.45-1188099) | amdgpu-pro-hwe (= 20.45-1188099); however:
Package amdgpu-pro is not configured yet.
Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (—configure):
dependency problems — leaving unconfigured
Setting up libglapi1-amdgpu-pro:amd64 (20.45-1188099) …
No apport report written because MaxReports is reached already
Setting up libglapi1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-dri:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-appprofiles (20.45-1188099) …
Setting up libegl1-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libegl1-amdgpu-pro:i386 (20.45-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:amd64 (1:20.1.6-1188099) …
Setting up libegl1-amdgpu-mesa-drivers:i386 (1:20.1.6-1188099) …
Setting up libgles2-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libgles2-amdgpu-pro:i386 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-glx:i386 (20.45-1188099) …
Setting up opencl-rocr-amdgpu-pro:amd64 (20.45-1188099) …
Setting up libgl1-amdgpu-pro-ext:amd64 (20.45-1188099) …
Setting up amdgpu-lib (20.45-1188099) …
Setting up amdgpu-lib32 (20.45-1188099) …
Processing triggers for libc-bin (2.31-0ubuntu9.1) …
Errors were encountered while processing:
amdgpu-dkms
amdgpu
amdgpu-pro-rocr-opencl
amdgpu-pro
amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

adraffy

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I have an Asus PN50 w/4500U running Ubuntu 20.04.1 LTS with 5.8.0 kernel. 

I am trying to get OpenCL operational using the proper drivers.  I have it working using pocl at the moment. 

AFAIK, the invocation I require is: «amdgpu-install —opencl=rocr —headless»

I have the same issue listed above w/r/t amdgpu-install failing on every public amd.com link I could find with linux drivers (including the latest 20.45).  My make.log clearly indicates the problems are simple failures like variable renames due to changes between 5.6 and 5.8 kernels.

I also tried the approach here without success: https://gist.github.com/tuxutku/79daa2edca131c1525a136b650cdbe0a#gistcomment-3583463

Tomash

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I’ll join this topic because of facing similar issue, although with newer kernels: Ubuntu 20.04, after upgrading to mainline kernel 5.9.1 the Radeon for Linux 20.45 does not build/compile its dkms module, the error being:

kcl_drm.h error: implicit declaration of function ‘drm_gem_object_unreference_unlocked’; did you mean ‘drm_gem_object_put_unlocked’?

And indeed, this function has been renamed in the newer kernels, but it seems to have the same API:

https://github.com/Xilinx/XRT/pull/1530/files

Anyway the workarounds, from what I google, are:

— ./amdgpu-install —no-dkms (it installs cleanly then)

— do not use amdgpu on newer kernels because apparently the drivers are built into kernel since 5.7 AND amdgpu gets shipped with pretty outdated other libs (like Mesa etc.) which cause weird artifacts in some games (like Daggerfall Unity with DREAM mod high-res textures); this is not an option for people who need proprietary parts of amdgpu-pro

— wait for AMD team to update Radeon for Linux code to compile cleanly against newer kernels

KristijanZic

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

It’s even more broken now. I’ve installed the amdgpu-pro with pal OpenCL. I have vega64 GPU and threadripper 1900x CPU.

driver doesn’t even recognize my GPU.

When running clinfo I get this output:

$ clinfo
Number of platforms                               1
  Platform Name                                   AMD Accelerated Parallel Processing
  Platform Vendor                                 Advanced Micro Devices, Inc.
  Platform Version                                OpenCL 2.0 AMD-APP (3188.4)
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_icd cl_amd_event_callback 
  Platform Extensions function suffix             AMD

  Platform Name                                   AMD Accelerated Parallel Processing
Number of devices                                 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in platform

Here is my system info from the neofetch output:

OS: Ubuntu 20.04.1 LTS x86_64 
Kernel: 5.4.0-59-generic 
Uptime: 5 mins 
Packages: 2014 (dpkg), 81 (flatpak), 41 (snap) 
Shell: bash 5.0.17 
Resolution: 1920x1200, 2560x1440 
DE: GNOME 
WM: Mutter 
WM Theme: Adwaita 
Theme: Adwaita-dark [GTK2/3] 
Icons: Yaru [GTK2/3] 
Terminal: gnome-terminal 
CPU: AMD Ryzen Threadripper 1900X (16) @ 3.800GHz 
GPU: AMD ATI Radeon RX Vega 56/64 
Memory: 3015MiB / 15929MiB 

everton137

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

It was working until recently. My HDMI monitor stopped to work, so I tried to uninstall and install amdgpu-pro-20.20-1089974-ubuntu-20.04 and I get the following error: https://pastebin.com/ik8CNSa6

The relevant part seems to be:

Building initial module for 5.4.0-56-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-56-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.0.13-1089974/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.0.13-1089974); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
E: Sub-process /usr/bin/dpkg returned an error code (1)

Here is the content of the file /var/lib/dkms/amdgpu/5.6.0.13-1089974/build/make.log  https://pastebin.com/JQ0QSz5C

I’ve also tried to purge and re-install the package amdgpu-dkms, which seems to be the source of the problem. It cannot not be installed.

everton137

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I just tried to uninstall the previous version amdgpu-pro-20.20 and substitute by the latest one amdgpu-pro-20.45, but I got the same error reported on my previous comment. I am also running an Ubuntu 20.04.1 with the kernel (5.4.0-56-generic). ThinkPad Lenovo E14.

deepmindser

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I have installed fresh ubuntu 20.04.1 and didnt do any updates. Then downloaded amdgpu-pro 20.45. Then tryed ./amdgpu-install -y. The same result…

It just worked right without any kind of problem serveral hour ago. And now it is just broken. Why? it’s so disappointing…

Do we have amd guys here who would try to install driver themself?

I do not even understand what is changed: ubuntu or amd driver packages?

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content


Do we have amd guys here who would try to install driver themself?

I do not even understand what is changed: ubuntu or amd driver packages?


The problem is with the 5.4.0-56 Ubuntu kernel — normally update kernels do not change or remove kernel symbols but this one seems to be an exception. We will be discussing with Canonical to understand what happened.

Separately, we have a CI system that regularly downloads the latest supported Ubuntu release to catch issues like this, but it was temporarily sidelined with an unrelated error on our side. Very unfortunate coincidence, sorry about that.

We have updated the release notes to mention this issue and to recommend downgrading the kernel in the short term. We also have an updated version of 20.45 with a workaround going through testing, should hopefully be posted in a few days.

Just FYI there is another «gotcha» going on right now — Proton 5.13.2 and higher causes problems with any driver installed into the /opt folder, which impacts our Vulkan and OpenCL drivers. Valve has a beta build which includes a fix, but the most common workaround is to downgrade to Proton 5.10. Also added to release notes.

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

Should work with 18.04.5 as well since it uses the same kernel & graphics userspace IIRC.

In general we do not remove support for older kernel/X versions, but testing focus shifts to the latest distro version.

I really need to move my home system off 16.04 to something newer, but I never seem to have time.

bernecky

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

I am now several days into trying to undo the kernel problems caused by attempting to install OPEN_CL on

an Ubuntu 20.10 system.  amdgpu-uninstall is inadequate. I keep running into this sort of thing:

Building initial module for 5.8.0-31-generic
ERROR (dkms apport): kernel package linux-headers-5.8.0-31-generic is not supported
Error! Bad return status for module build on kernel: 5.8.0-31-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.6.20.906300-1164792/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.6.20.906300-1164792); however:
  Package amdgpu-dkms is not configured yet.

I have to boot an earlier recovery kernel, then «resume boot» from there. A normal boot does not manage to boot X.

Audio is dead; the system settings audio does not see the DisplayPort. Video through a DisplayPort link does work, though.
I do not know what kernel images or headers I can safely remove with apt. Suggestions welcome. It would be very nice to have a working system again…

Robert

bridgman

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

This probably needs a different thread since you are trying to install on 20.10, which is not supported by the packaged drivers.

Best bet would probably be:

— uninstall what you can

— check for an amdgpu blacklist in /etc/blacklist and remove if found

— use distro package manager to refresh the stock kernel and Mesa

— make sure video & audio are working at this point

— open up the 20.45 archive and install only the OpenCL packages

Were you trying to install the -pro or all-open version of the packaged drivers ? If you were trying to install the -pro version then you can skip the last step and just do a -pro install with the —no-dkms option.

  • #1

Hello guys , when i’m trying to install NVIDIA driver by running
$ dkms install -m NVIDIA -v 510.85.03
i’m getting the following error:

Code:

dkms install -m nvidia -v 510.85.03

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' -j20 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.15.74-1-pve IGNORE_CC_MISMATCH='' modules......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.74-1-pve (x86_64)
Consult /var/lib/dkms/nvidia/510.85.03/build/make.log for more information.

here’s my system and kernel information:

Code:

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

dmseg
Linux version 5.15.74-1-pve (build@proxmox) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP PVE 5.15.74-1 (Mon, 14 Nov 2022 20:17:15 +0100) ()

Code:

$lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Model name:                      Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
Virtualization:                  VT-x

lspci | grep VGA
03:00.0 VGA compatible controller: NVIDIA Corporation GP108 [GeForce GT 1030] (rev a1)
09:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family (rev 30)

so what to do to install nvidia driver?
note that i’ve successfully installed the NVIDIA-Linux-x86_64-510.85.03-vgpu-kvm.run driver on my server and enabled the iommu.

Last edited: Nov 21, 2022

dcsapak


  • #2

not completely sure what you want to accomplish, you say:

note that i’ve successfully installed the NVIDIA-Linux-x86_64-510.85.03-vgpu-kvm.run driver on my server and enabled the iommu.

but still want to install the nvidia driver? what for?

also to see why the compilation has failed check:

Code:

Consult /var/lib/dkms/nvidia/510.85.03/build/make.log for more information.

I am trying to install the drivers and the kernel gives me this error:

Kernel preparation unnecessary for this kernel.  Skipping...


Building module:

cleaning build area...

make -j1 KERNELRELEASE=5.10.0-kali6-amd64 KVER=5.10.0-kali6-amd64...(bad exit status: 2)

Error! Bad return status for module build on kernel: 5.10.0-kali6-amd64 (x86_64)

Consult /var/lib/dkms/rtl88x2bu/5.2.4.4/build/make.log for more information.

I’m using rtl8812bu from Realtek

Any way I can fix this?

This is the error log:

DKMS make.log for rtl88x2bu-5.2.4.4 for kernel 5.10.0-kali6-amd64 (x86_64)

Thu 08 Apr 2021 05:19:05 AM CDT

/bin/sh: 1: bc: not found

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.10.0-kali6-amd64/build M=/var/lib/dkms/rtl88x2bu/5.2.4.4/build  modules

make[1]: Entering directory '/usr/src/linux-headers-5.10.0-kali6-amd64'

/bin/sh: 1: bc: not found

  CC [M]  /var/lib/dkms/rtl88x2bu/5.2.4.4/build/core/rtw_cmd.o

In file included from /var/lib/dkms/rtl88x2bu/5.2.4.4/build/include/drv_types.h:77,

                 from /var/lib/dkms/rtl88x2bu/5.2.4.4/build/core/rtw_cmd.c:17:

/var/lib/dkms/rtl88x2bu/5.2.4.4/build/include/rtw_security.h:246:8: error: redefinition of ‘struct sha256_state’

  246 | struct sha256_state {

      |        ^~~~~~~~~~~~

In file included from /usr/src/linux-headers-5.10.0-kali6-common/include/linux/filter.h:24,

                 from /usr/src/linux-headers-5.10.0-kali6-common/include/net/sock.h:59,

                 from /usr/src/linux-headers-5.10.0-kali6-common/include/linux/tcp.h:19,

                 from /usr/src/linux-headers-5.10.0-kali6-common/include/linux/ipv6.h:87,

                 from /usr/src/linux-headers-5.10.0-kali6-common/include/net/addrconf.h:50,

                 from /var/lib/dkms/rtl88x2bu/5.2.4.4/build/include/osdep_service_linux.h:51,

                 from /var/lib/dkms/rtl88x2bu/5.2.4.4/build/include/osdep_service.h:42,

                 from /var/lib/dkms/rtl88x2bu/5.2.4.4/build/include/drv_types.h:27,

                 from /var/lib/dkms/rtl88x2bu/5.2.4.4/build/core/rtw_cmd.c:17:

/usr/src/linux-headers-5.10.0-kali6-common/include/crypto/sha.h:84:8: note: originally defined here

   84 | struct sha256_state {

      |        ^~~~~~~~~~~~

make[3]: *** [/usr/src/linux-headers-5.10.0-kali6-common/scripts/Makefile.build:284: /var/lib/dkms/rtl88x2bu/5.2.4.4/build/core/rtw_cmd.o] Error 1

make[2]: *** [/usr/src/linux-headers-5.10.0-kali6-common/Makefile:1821: /var/lib/dkms/rtl88x2bu/5.2.4.4/build] Error 2

make[1]: *** [/usr/src/linux-headers-5.10.0-kali6-common/Makefile:185:
__sub-make] Error 2

make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-kali6-amd64'

make: *** [Makefile:1795: modules] Error 2

When running pacman to update packages today, I noticed this error message on the step

 dkms install rtbth/3.9.4.1 -k 4.10.2-1-ARCH

I don’t actually use this module, since I don’t use bluetooth on my desktop, but I wanted to make sure that this won’t cause problems when I reboot my system. Also, is it there a way to disable this module from being built?

Full log:

sudo pacman -Syyu 
[sudo] password for nick: 
:: Synchronizing package databases...
 core                                                                                                                                     123.7 KiB  1375K/s 00:00 [#####################################################################################################] 100%
 extra                                                                                                                                   1677.4 KiB  2.93M/s 00:01 [#####################################################################################################] 100%
 community                                                                                                                                  3.8 MiB  7.40M/s 00:01 [#####################################################################################################] 100%
 multilib                                                                                                                                 177.4 KiB  3.47M/s 00:00 [#####################################################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (6) jasper-2.0.12-1  linux-4.10.2-1  linux-docs-4.10.2-1  linux-headers-4.10.2-1  xf86-video-nouveau-1.0.14-1  xfce4-whiskermenu-plugin-1.7.1-1

Total Download Size:    74.42 MiB
Total Installed Size:  161.65 MiB
Net Upgrade Size:       18.73 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 linux-4.10.2-1-x86_64                                                                                                                     60.8 MiB  5.26M/s 00:12 [#####################################################################################################] 100%
 linux-docs-4.10.2-1-x86_64                                                                                                                 5.5 MiB  5.17M/s 00:01 [#####################################################################################################] 100%
 linux-headers-4.10.2-1-x86_64                                                                                                              7.6 MiB  9.12M/s 00:01 [#####################################################################################################] 100%
 jasper-2.0.12-1-x86_64                                                                                                                   289.1 KiB  5.65M/s 00:00 [#####################################################################################################] 100%
 xf86-video-nouveau-1.0.14-1-x86_64                                                                                                        81.7 KiB  2.66M/s 00:00 [#####################################################################################################] 100%
 xfce4-whiskermenu-plugin-1.7.1-1-x86_64                                                                                                  157.4 KiB  7.68M/s 00:00 [#####################################################################################################] 100%
(6/6) checking keys in keyring                                                                                                                                     [#####################################################################################################] 100%
(6/6) checking package integrity                                                                                                                                   [#####################################################################################################] 100%
(6/6) loading package files                                                                                                                                        [#####################################################################################################] 100%
(6/6) checking for file conflicts                                                                                                                                  [#####################################################################################################] 100%
(6/6) checking available disk space                                                                                                                                [#####################################################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove vboxhost/5.1.16 -k 4.10.1-1-ARCH
==> dkms remove rtbth/3.9.4.1 -k 4.10.1-1-ARCH
Error! There is no instance of rtbth 3.9.4.1
for kernel 4.10.1-1-ARCH (x86_64) located in the DKMS tree.
==> dkms remove vboxguest/5.1.16_OSE -k 4.10.1-1-ARCH
:: Processing package changes...
(1/6) upgrading jasper                                                                                                                                             [#####################################################################################################] 100%
(2/6) upgrading linux                                                                                                                                              [#####################################################################################################] 100%
>>> Updating module dependencies. Please wait ...
(3/6) upgrading linux-docs                                                                                                                                         [#####################################################################################################] 100%
(4/6) upgrading linux-headers                                                                                                                                      [#####################################################################################################] 100%
(5/6) upgrading xf86-video-nouveau                                                                                                                                 [#####################################################################################################] 100%
(6/6) upgrading xfce4-whiskermenu-plugin                                                                                                                           [#####################################################################################################] 100%
:: Running post-transaction hooks...
(1/4) Install DKMS modules
==> dkms install rtbth/3.9.4.1 -k 4.10.2-1-ARCH
Error! Bad return status for module build on kernel: 4.10.2-1-ARCH (x86_64)
Consult /var/lib/dkms/rtbth/3.9.4.1/build/make.log for more information.
==> dkms install vboxhost/5.1.16 -k 4.10.2-1-ARCH
==> dkms install vboxguest/5.1.16_OSE -k 4.10.2-1-ARCH
(2/4) Updating linux initcpios
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.10.2-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.10.2-1-ARCH
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(3/4) Updating icon theme caches...
(4/4) Arming ConditionNeedsUpdate...

make.log:

DKMS make.log for rtbth-3.9.4.1 for kernel 4.10.2-1-ARCH (x86_64)
Tue Mar 14 10:12:37 PDT 2017
make: Entering directory '/usr/lib/modules/4.10.2-1-ARCH/build'
  LD      /var/lib/dkms/rtbth/3.9.4.1/build/built-in.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_main.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_init.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_pci.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_us.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_bluez.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_hw.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_dbg.o
  CC [M]  /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.o
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.c: In function ‘RtlCopyMemory’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.c:95:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  return (int)memcpy(Destination, Source, Length);//sean wang linux, fix the build warning, type casting
         ^
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.c: In function ‘ral_task_notify_exit’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.c:557:16: warning: unused variable ‘pOSThread’ [-Wunused-variable]
  RTBT_OS_TASK *pOSThread = (RTBT_OS_TASK *)pTask->pOSThread;
                ^~~~~~~~~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.c: In function ‘ral_task_customize’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_hlpr_linux.c:570:16: warning: unused variable ‘pOSTask’ [-Wunused-variable]
  RTBT_OS_TASK *pOSTask = (RTBT_OS_TASK *)pTask->pOSThread;
                ^~~~~~~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_init.c: In function ‘BthInitializePrerequire’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_init.c:1024:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   if ((pAd->MACVersion != 0x00) && (pAd->MACVersion != 0xFFFFFFFF))
   ^~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_init.c:1027:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
    KeStallExecutionProcessor(5);
    ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_init.c: In function ‘Rtbth_Set_Radio_Led’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_init.c:1185:3: warning: typedef ‘flag_t’ locally defined but not used [-Wunused-local-typedefs]
 } flag_t;
   ^~~~~~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_pci.c: In function ‘rtbt_pci_probe’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_pci.c:198:1: warning: label ‘err_hps_iface’ defined but not used [-Wunused-label]
 err_hps_iface:
 ^~~~~~~~~~~~~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_bluez.c: In function ‘rtbt_hps_iface_init’:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_bluez.c:385:22: error: ‘HCI_BREDR’ undeclared (first use in this function)
     hdev->dev_type = HCI_BREDR;
                      ^~~~~~~~~
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_bluez.c:385:22: note: each undeclared identifier is reported only once for each function it appears in
At top level:
/var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_bluez.c:83:20: warning: ‘pkt_type_str’ defined but not used [-Wunused-variable]
 static const char *pkt_type_str[]=
                    ^~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:294: /var/lib/dkms/rtbth/3.9.4.1/build/rtbth_core_bluez.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1490: _module_/var/lib/dkms/rtbth/3.9.4.1/build] Error 2
make: Leaving directory '/usr/lib/modules/4.10.2-1-ARCH/build'

Thanks in advance!

Last edited by nickmcummins (2017-03-14 23:32:19)

Понравилась статья? Поделить с друзьями:
  • Error archive structure corrupted descriptor failed crc check
  • Error archive structure corrupted decompression of control block failed
  • Error archive data corrupted decompression fails что делать
  • Error bad ref for git logs head
  • Error bad pathname