Announcement

Collapse
No announcement yet.

Updating the AMDGPU driver to latest from AMD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Updating the AMDGPU driver to latest from AMD

    So, I was having some game performance issues and was poking at Google to find out what version of the driver I am running, found this command and, if I read this right, my version is 23, and AMD says the newest is 25, which is quite a difference.

    Code:
    llloyd@Nyeri:~/Downloads/MangoHud$ sudo apt list|grep -i gpu|grep installed
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    libdrm-amdgpu1/noble-updates,now 2.4.122-1~ubuntu0.24.04.1 amd64 [installed,automatic]
    libdrm-amdgpu1/noble-updates,now 2.4.122-1~ubuntu0.24.04.1 i386 [installed,automatic]
    xserver-xorg-video-amdgpu/noble,now 23.0.0-1build1 amd64 [installed,automatic]
    llloyd@Nyeri:~/Downloads/MangoHud$​
    But the thing that concerns me is that AMD says

    Radeon™ Software for Linux® version 25.10.1 for Ubuntu 24.04.2 HWE



    Revision Number 25.10.1


    File Size 14 KB


    Release Date 2025-05-20


    Driver Details
    Radeon™ Software for Linux® version 25.10.1 for Ubuntu 22.04.5 HWE


    Revision Number 25.10.1

    File Size 14 KB

    Release Date 2025-05-20


    I don't know which version of Kubuntu I am running outside of it's 24.04 LTS , is this 04.02 or 04.05 and does it have this HWE , what ever that is? If not do I need to install it? If I do, how do I install it? Thank you for your time.

    #2
    You are running Kubuntu 24.04, but are you using the HWE kernel?
    Windows no longer obstruct my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Don't install the non-free AMDGPU-pro driver.
      It isn't suited for desktop use, or gaming at all.

      The actual video drivers used will be Mesa. The pro driver is actually based on this, and they are ditching the nonfree driver altogether

      Now, one can upgrade Mesa, which can sometimes offer improvements, though there are also some boot parameters that might be used.
      You'll need to investigation your specific GPU and some trial and error.
      https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa

      As to your kernel, you can see your system info from System Settings in the About this System section.

      If you installed Kubuntu using the most recent ISO image released in February, you have the current 6.11 kernel. Unless you have a very recent GPU this kernel will be good.

      If you have one released recently, a more current kernel may be useful, but not always. 24.04 should see an upgrade to 6.14 some time in August.

      There are other sources for kernels such as Mainline though this can be hit or miss and possibly not work as well, or miss the needed firmware, though this isn't likely. Luckily adding kernels does not remove your most current stock kernels, so testing is as easy as a boot option in Grub.

      I personally use Xanmod kernels when I had a too-new GPU, though the Mesa upgrade offered the most improvements at the time.

      Basically if you have a recent ish GPU and gaming is a strong focus, then a non-LTS Kubuntu or another distro that is much more current generally takes less work and modifications as it will already have the upgrades built in.

      Comment


        #4
        Originally posted by claydoh View Post
        Don't install the non-free AMDGPU-pro driver.
        It isn't suited for desktop use, or gaming at all.

        The actual video drivers used will be Mesa. The pro driver is actually based on this, and they are ditching the nonfree driver altogether

        Now, one can upgrade Mesa, which can sometimes offer improvements, though there are also some boot parameters that might be used.
        You'll need to investigation your specific GPU and some trial and error.
        https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa

        As to your kernel, you can see your system info from System Settings in the About this System section.

        If you installed Kubuntu using the most recent ISO image released in February, you have the current 6.11 kernel. Unless you have a very recent GPU this kernel will be good.

        If you have one released recently, a more current kernel may be useful, but not always. 24.04 should see an upgrade to 6.14 some time in August.

        There are other sources for kernels such as Mainline though this can be hit or miss and possibly not work as well, or miss the needed firmware, though this isn't likely. Luckily adding kernels does not remove your most current stock kernels, so testing is as easy as a boot option in Grub.

        I personally use Xanmod kernels when I had a too-new GPU, though the Mesa upgrade offered the most improvements at the time.

        Basically if you have a recent ish GPU and gaming is a strong focus, then a non-LTS Kubuntu or another distro that is much more current generally takes less work and modifications as it will already have the upgrades built in.
        Well, the AMD page shows what I can download for free, which is 25.x unlike the AMDGPU I'm running now. I just want to know if I can use the AMDGPU from AMD (not Pro, just AMDGPU) or not. What is an MWE kernel? I mean, I would hate to have to reinstall everything * again * (I've installed for Mint, liked it, but borked up and installed both non UEFI and UEFI boot things. So I tried Kubuntu, and after a lot of pissing around to figure out what it's major malfunction is (it has, at least for me, a weird partition setup, a blank partition, then the /boot/efi partition, then the main ext4 partition), got it installed, and liked KDE ) to go to Kubuntu 25.x . It's more than just backing up /Home and extracting it over the new install. Like the Focusrite Scarlet Solo 2I2, those drivers have been consistently way outdated (default insists it's a firewire when it's USB, updated sees it as USB) on both Mint and Kubuntu and that's not in the /home folder tree. So I really don't want to have to reinstall the entire system, just update the drivers to the newest 25.x ones (not -Pro, that's further down the page) that AMD is offering as a free download. But want to be sure I don't break the system in the process.

        Also, apologies if I sound a bit grumpy, I was asking on the Cash Cleaning Sim's Discord server (the game in question) and ran into one of those Arch Linux slobbering fanboys who was trying to pressure me into going to Arch Linux. >.< Like, dude, I like KDE, go get stuffed already. >.<
        Last edited by llloyd; Jul 11, 2025, 07:36 PM.

        Comment


          #5
          Normally in Linux, you don't get drivers from outside your distro, as these are usually built-in to the kernel itself. it is a completely different animal from Windows.


          Originally posted by llloyd View Post
          Well, the AMD page shows what I can download for free
          Which is the non-free AMDGPU-PRO driver stack, Which is for professional workstation use. OpenCl and things like that. It is not going to offer any improvements in gaming, and will VERY likely make things worse in this regard. I speak from personal experience and research. It is also can be a PITA to install and get working, though this has improved a lot in the past year or two.

          The HWE kernel is where Ubuntu upgrades the kernel to a new major version on LTS releases regularly between releases. 24.04 started on 6.8, and is now in 6.11, and 6.14 in August. As hardware drivers are built into the kernel usually, this adds some extra device support. Normal non-LTS releases have a more current kernel, but see no version upgrades between releases. New kernels do not replace the existing one, so you will have both 6.11 and 6.14 when this happens, so booting to the previous version is available from your grub menu.

          I also forgot that this HWE upgrade will also bring a Mesa upgrade as well., from 24.2.8 to 25.0.7. Adding the PPA will get you 25.1.5, which is Mesa's current version at he moment.

          Now, for gaming, the hardware driver is not necessarily very important. The 3D video libraries are what provides this, and AMD and Intel cards use mesa for it. Their driver downloads you see at the moment provided a modified version of this that is suited for graphics processing, OpenCL and similar workloads. AMD are moving away from that altogether and the next release their software release won't include the 3d acceleration parts, so will use Linux native mesa,


          Originally posted by llloyd View Post
          a weird partition setup, a blank partition, then the /boot/efi partition, then the main ext4 partition
          That is I believe normal. Some Linux installers simply don't show this empty space at the beginning, but on MBR type installs, the boot loaders need more space than a normal MBR can hold, so some extra space is provided. Normal EFI on GPT installs won't have this extra empty space.

          Originally posted by llloyd View Post
          to go to Kubuntu 25.x .
          in-place upgrades are possible normally, but actually with 24.10 now End-of Life, there is no upgrade path for 24.04 until 26.04.

          Upgrading the kernel and mesa won't break your system, but the mesa PPA can be reverted back to stock if desired.

          Originally posted by llloyd View Post
          . It's more than just backing up /Home and extracting it over the new install.
          Actually, not really. A trick many folks use is to keep a separate partition for /home, which makes a fresh install that preserves one's files. Saves a LOT of time. But of course does not remove the hassles of a fresh install.
          Last edited by claydoh; Jul 11, 2025, 09:09 PM.

          Comment


            #6
            Originally posted by claydoh View Post
            Normally in Linux, you don't get drivers from outside your distro, as these are usually built-in to the kernel itself. it is a completely different animal from Windows.



            Which is the non-free AMDGPU-PRO driver stack, Which is for professional workstation use. OpenCl and things like that. It is not going to offer any improvements in gaming, and will VERY likely make things worse in this regard. I speak from personal experience and research. It is also can be a PITA to install and get working, though this has improved a lot in the past year or two.

            The HWE kernel is where Ubuntu upgrades the kernel to a new major version on LTS releases regularly between releases. 24.04 started on 6.8, and is now in 6.11, and 6.14 in August. As hardware drivers are built into the kernel usually, this adds some extra device support. Normal non-LTS releases have a more current kernel, but see no version upgrades between releases. New kernels do not replace the existing one, so you will have both 6.11 and 6.14 when this happens, so booting to the previous version is available from your grub menu.

            I also forgot that this HWE upgrade will also bring a Mesa upgrade as well., from 24.2.8 to 25.0.7. Adding the PPA will get you 25.1.5, which is Mesa's current version at he moment.

            Now, for gaming, the hardware driver is not necessarily very important. The 3D video libraries are what provides this, and AMD and Intel cards use mesa for it. Their driver downloads you see at the moment provided a modified version of this that is suited for graphics processing, OpenCL and similar workloads. AMD are moving away from that altogether and the next release their software release won't include the 3d acceleration parts, so will use Linux native mesa,



            That is I believe normal. Some Linux installers simply don't show this empty space at the beginning, but on MBR type installs, the boot loaders need more space than a normal MBR can hold, so some extra space is provided. Normal EFI on GPT installs won't have this extra empty space.


            in-place upgrades are possible normally, but actually with 24.10 now End-of Life, there is no upgrade path for 24.04 until 26.04.

            Upgrading the kernel and mesa won't break your system, but the mesa PPA can be reverted back to stock if desired.


            Actually, not really. A trick many folks use is to keep a separate partition for /home, which makes a fresh install that preserves one's files. Saves a LOT of time. But of course does not remove the hassles of a fresh install.
            Ok, then the question becomes, how do I upgrade the kernel and mesa drivers? I poked for a mesa ppa or repository but my Google-Fu is failing in it. Did find a reference to the Jessie Backports but that resulted in a no public key error, so... Umm?

            Comment


              #7
              Well, that didin't go over very well. O.o I hate compiling stuff, I am not a programmer so a wall of text is scary and untranslatable. Uh... Following the instructions on Installing the Latest Kernel on Ubuntu 24.04 LTS I get this wall of text and an error message. Uh? O.o



              Code:
              llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ sudo apt install linux-generic
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              The following additional packages will be installed:
              linux-image-6.8.0-63-generic linux-image-generic linux-modules-6.8.0-63-generic linux-modules-extra-6.8.0-63-generic
              linux-tools-6.8.0-63 linux-tools-6.8.0-63-generic
              Suggested packages:
              fdutils linux-tools
              The following NEW packages will be installed:
              linux-generic linux-image-6.8.0-63-generic linux-image-generic linux-modules-6.8.0-63-generic linux-modules-extra-6.8.0-63-generic
              linux-tools-6.8.0-63 linux-tools-6.8.0-63-generic
              0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
              1 not fully installed or removed.
              Need to get 173 MB of archives.
              After this operation, 186 MB of additional disk space will be used.
              Do you want to continue? [Y/n] y
              Get:1 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-modules-6.8.0-63-generic amd64 6.8.0-63.66 [39.4 MB]
              Get:2 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-image-6.8.0-63-generic amd64 6.8.0-63.66 [14.8 MB]
              Get:3 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-modules-extra-6.8.0-63-generic amd64 6.8.0-63.66 [113 MB]
              Get:4 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-image-generic amd64 6.8.0-63.66 [10.7 kB]
              Get:5 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-generic amd64 6.8.0-63.66 [1,702 B]
              Get:6 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-tools-6.8.0-63 amd64 6.8.0-63.66 [5,378 kB]
              Get:7 http://us.archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-tools-6.8.0-63-generic amd64 6.8.0-63.66 [1,814 B]
              Fetched 173 MB in 14s (12.0 MB/s)
              Selecting previously unselected package linux-modules-6.8.0-63-generic.
              (Reading database ... 287930 files and directories currently installed.)
              Preparing to unpack .../0-linux-modules-6.8.0-63-generic_6.8.0-63.66_amd64.deb ...
              Unpacking linux-modules-6.8.0-63-generic (6.8.0-63.66) ...
              Selecting previously unselected package linux-image-6.8.0-63-generic.
              Preparing to unpack .../1-linux-image-6.8.0-63-generic_6.8.0-63.66_amd64.deb ...
              Unpacking linux-image-6.8.0-63-generic (6.8.0-63.66) ...
              Selecting previously unselected package linux-modules-extra-6.8.0-63-generic.
              Preparing to unpack .../2-linux-modules-extra-6.8.0-63-generic_6.8.0-63.66_amd64.deb ...
              Unpacking linux-modules-extra-6.8.0-63-generic (6.8.0-63.66) ...
              Selecting previously unselected package linux-image-generic.
              Preparing to unpack .../3-linux-image-generic_6.8.0-63.66_amd64.deb ...
              Unpacking linux-image-generic (6.8.0-63.66) ...
              Selecting previously unselected package linux-generic.
              Preparing to unpack .../4-linux-generic_6.8.0-63.66_amd64.deb ...
              Unpacking linux-generic (6.8.0-63.66) ...
              Selecting previously unselected package linux-tools-6.8.0-63.
              Preparing to unpack .../5-linux-tools-6.8.0-63_6.8.0-63.66_amd64.deb ...
              Unpacking linux-tools-6.8.0-63 (6.8.0-63.66) ...
              Selecting previously unselected package linux-tools-6.8.0-63-generic.
              Preparing to unpack .../6-linux-tools-6.8.0-63-generic_6.8.0-63.66_amd64.deb ...
              Unpacking linux-tools-6.8.0-63-generic (6.8.0-63.66) ...
              Setting up linux-modules-6.8.0-63-generic (6.8.0-63.66) ...
              Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
              Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
              Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
              Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
              Building for 6.11.0-29-generic
              Building for architecture x86_64
              Building initial module for 6.11.0-29-generic
              ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
              Error! Bad return status for module build on kernel: 6.11.0-29-generic (x86_64)
              Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/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
              Setting up linux-image-6.8.0-63-generic (6.8.0-63.66) ...
              I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.11.0-29-generic
              I: /boot/initrd.img.old is now a symlink to initrd.img-6.11.0-29-generic
              I: /boot/vmlinuz is now a symlink to vmlinuz-6.8.0-63-generic
              I: /boot/initrd.img is now a symlink to initrd.img-6.8.0-63-generic
              Setting up linux-modules-extra-6.8.0-63-generic (6.8.0-63.66) ...
              Setting up linux-tools-6.8.0-63 (6.8.0-63.66) ...
              Setting up linux-image-generic (6.8.0-63.66) ...
              Setting up linux-generic (6.8.0-63.66) ...
              Setting up linux-tools-6.8.0-63-generic (6.8.0-63.66) ...
              Processing triggers for linux-image-6.8.0-63-generic (6.8.0-63.66) ...
              /etc/kernel/postinst.d/dkms:
              * dkms: running auto installation service for kernel 6.8.0-63-generic
              Sign command: /usr/bin/kmodsign
              Signing key: /var/lib/shim-signed/mok/MOK.priv
              Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
              
              Running the pre_build script:
              checking for a BSD-compatible install... /usr/bin/install -c
              checking for gcc... gcc
              checking whether the C compiler works... yes
              checking for C compiler default output file name... a.out
              checking for suffix of executables...
              checking whether we are cross compiling... no
              checking for suffix of object files... o
              checking whether the compiler supports GNU C... yes
              checking whether gcc accepts -g... yes
              checking for gcc option to enable C11 features... none needed
              checking how to run the C preprocessor... gcc -E
              checking kernel source directory... /usr/src/linux-headers-6.8.0-63-generic
              checking kernel build directory... /usr/src/linux-headers-6.8.0-63-generic
              checking kernel source version... 6.8.0-63-generic
              checking kernel file name for module symbols... Module.symvers
              checking for linux/bits.h... yes
              checking for linux/io-64-nonatomic-lo-hi.h... yes
              checking for asm/set_memory.h... yes
              checking for asm/fpu/api.h... yes
              checking for linux/compiler_attributes.h... yes
              checking for linux/fence-array.h... no
              checking for linux/dma-resv.h... yes
              checking for linux/mmap_lock.h... yes
              checking for linux/pci-p2pdma.h... yes
              checking for linux/dma-attrs.h... no
              checking for linux/dma-buf-map.h... no
              checking for linux/iosys-map.h... yes
              checking for linux/stdarg.h... yes
              checking for linux/dma-fence-chain.h... yes
              checking for linux/xarray.h... yes
              checking for linux/container_of.h... yes
              checking for linux/cc_platform.h... yes
              checking for linux/processor.h... yes
              checking for linux/dma-map-ops.h... yes
              checking for linux/apple-gmux.h... yes
              checking for linux/build_bug.h... yes
              checking for linux/device/class.h... yes
              checking for drm/drm_backport.h... no
              checking for drm/amdgpu_pciid.h... no
              checking for drm/drm_probe_helper.h... yes
              checking for drm/drmP.h... no
              checking for drm/task_barrier.h... yes
              checking for drm/drm_managed.h... yes
              checking for drm/amd_asic_type.h... yes
              checking for drm/drm_aperture.h... yes
              checking for drm/dp/drm_dp_helper.h... no
              checking for drm/dp/drm_dp_mst_helper.h... no
              checking for drm/drm_gem_atomic_helper.h... yes
              checking for drm/display/drm_dp_helper.h... yes
              checking for drm/display/drm_dp_mst_helper.h... yes
              checking for drm/display/drm_dsc.h... yes
              checking for drm/display/drm_dsc_helper.h... yes
              checking for drm/display/drm_hdmi_helper.h... yes
              checking for drm/display/drm_hdcp_helper.h... yes
              checking for drm/display/drm_hdcp.h... yes
              checking for drm/display/drm_dp.h... yes
              checking for linux/pgtable.h... yes
              checking for drm/drm_fbdev_generic.h... yes
              checking for drm/drm_suballoc.h... yes
              checking for nproc... yes
              checking for supported chips... done
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for nproc... (cached) yes
              checking for module configuration... done
              configure: creating ./config.status
              config.status: creating config/config.h
              
              Building module:
              Cleaning build area...(bad exit status: 2)
              make -j16 KERNELRELEASE=6.8.0-63-generic TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/6.8.0-63-generic/build M=/var/lib/dkms/amdgpu/
              6.3.6-1718217.22.04/build...(bad exit status: 2)
              ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
              Error! Bad return status for module build on kernel: 6.8.0-63-generic (x86_64)
              Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
              dkms autoinstall on 6.8.0-63-generic/x86_64 failed for amdgpu(10)
              Error! One or more modules failed to install during autoinstall.
              Refer to previous errors for more information.
              * dkms: autoinstall for kernel 6.8.0-63-generic
              ...fail!
              run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
              dpkg: error processing package linux-image-6.8.0-63-generic (--configure):
              installed linux-image-6.8.0-63-generic package post-installation script subprocess returned error exit status 11
              sh: 0: getcwd() failed: No such file or directory
              sh: 0: getcwd() failed: No such file or directory
              Errors were encountered while processing:
              amdgpu-dkms
              linux-image-6.8.0-63-generic
              sh: 0: getcwd() failed: No such file or directory
              E: Sub-process /usr/bin/dpkg returned an error code (1)
              llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$
              
              ​
              And the make.log it reference is

              Code:
              DKMS make.log for amdgpu-6.3.6-1718217.22.04 for kernel 6.8.0-63-generic (x86_64)
              Fri Jul 11 09:07:33 PM PDT 2025
              make: Entering directory '/usr/src/linux-headers-6.8.0-63-generic'
              warning: the compiler differs from the one used to build the kernel
              The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
              You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/scheduler/sched_main.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/scheduler/sched_fence.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/scheduler/sched_entity.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdxcp/amdgpu_xcp_drv.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdxcp/./backport/kcl_drm_drv.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_tt.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo_util.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/drm_gem_ttm_helper.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo_vm.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_module.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_execbuf_util.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/main.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_common.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/drm_buddy.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/main.c:16:12: warning: no previous prototype for [-Wmissing-prototypes]
              16 | int __init amdkcl_init(void)
              | ^~~~~~~~~~~
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/main.c:33:13: warning: no previous prototype for [-Wmissing-prototypes]
              33 | void __exit amdkcl_exit(void)
              | ^~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_device.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_kernel_params.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_common.c:30:6: warning: no previous prototype for [-Wmissing-prototypes]
              30 | void amdkcl_symbol_init(void)
              | ^~~~~~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_range_manager.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo_util.c:34:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/drm_gem_ttm_helper.h:10,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/drm_gem_ttm_helper.c:5:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo.c:37:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo_vm.c:37:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_execbuf_util.c:30:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              cc1: some warnings being treated as errors
              cc1: some warnings being treated as errors
              cc1: some warnings being treated as errors
              cc1: some warnings being treated as errors
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_module.o] Error 1
              make[3]: *** Waiting for unfinished jobs....
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/dma-buf/dma-resv.o
              cc1: some warnings being treated as errors
              cc1: some warnings being treated as errors
              make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/drm_gem_ttm_helper.o] Error 1
              make[2]: *** Waiting for unfinished jobs....
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_doorbell_mgr.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_tt.c:45:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_execbuf_util.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_backlight.o
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo_util.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_ioctl.o
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo.o] Error 1
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_bo_vm.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_kms.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_kthread.o
              cc1: some warnings being treated as errors
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_tt.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_io.o
              LD [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdxcp/amdxcp.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_seq_file.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_atombios.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:54,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:37,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/backport.h:69,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_suspend.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:60:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:2903:66: error: undeclared here (not in a function); did you mean ?
              2903 | DRM_IOCTL_DEF_DRV(AMDGPU_SEM, amdgpu_sem_ioctl, DRM_AUTH|DRM_UNLOCKED|DRM_RENDER_ALLOW)
              | ^~~~~~~~~~~~
              ./include/drm/drm_ioctl.h:155:26: note: in definition of macro
              155 | .flags = _flags, \
              | ^~~~~~
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:2979:10: error: has no member named ; did you mean ?
              2979 | .gem_prime_mmap = amdkcl_drm_gem_prime_mmap,
              | ^~~~~~~~~~~~~~
              | gem_prime_import
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:2979:27: error: initialization of from incompatible pointer type [-Werror=incompatible-pointer-types]
              2979 | .gem_prime_mmap = amdkcl_drm_gem_prime_mmap,
              | ^~~~~~~~~~~~~~~~~~~~~~~~~
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:2979:27: note: (near initialization for )
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:3009:10: error: has no member named ; did you mean ?
              3009 | .gem_prime_mmap = drm_gem_prime_mmap,
              | ^~~~~~~~~~~~~~
              | gem_prime_import
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:3009:27: error: initialization of from incompatible pointer type [-Werror=incompatible-pointer-types]
              3009 | .gem_prime_mmap = drm_gem_prime_mmap,
              | ^~~~~~~~~~~~~~~~~~
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.c:3009:27: note: (near initialization for )
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_io.c:69:6: warning: no previous prototype for [-Wmissing-prototypes]
              69 | void amdkcl_io_init(void)
              | ^~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/atombios_crtc.o
              cc1: some warnings being treated as errors
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_suspend.c:32:6: warning: no previous prototype for [-Wmissing-prototypes]
              32 | void amdkcl_suspend_init(void)
              | ^~~~~~~~~~~~~~~~~~~
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_drv.o] Error 1
              make[3]: *** Waiting for unfinished jobs....
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_pci.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_mm.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_memory.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_sched.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_fence.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/backport/backport.h:20,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h: In function :
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/kcl/kcl_shrinker.h:16:16: error: implicit declaration of function ; did you mean ? [-Werror=implicit-function-declaration]
              16 | return register_shrinker(shrinker);
              | ^~~~~~~~~~~~~~~~~
              | kcl_register_shrinker
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_range_manager.c:32:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h: At top level:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              cc1: some warnings being treated as errors
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm/ttm_range_manager.o] Error 1
              make[2]: *** [scripts/Makefile.build:481: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/ttm] Error 2
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_reservation.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_cache.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:54,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:37,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/backport.h:69,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_sched.c:24:6: warning: no previous prototype for [-Wmissing-prototypes]
              24 | void amdkcl_sched_init(void)
              | ^~~~~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_fb.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_print.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:54,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:37,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/backport.h:69,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:54,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:37,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/backport.h:69,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_reservation.c:37:6: warning: no previous prototype for [-Wmissing-prototypes]
              37 | void amdkcl_reservation_init(void)
              | ^~~~~~~~~~~~~~~~~~~~~~~
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_doorbell_mgr.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_crtc.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_connector.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_atomic_helper.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_mm.c:39:6: warning: no previous prototype for [-Wmissing-prototypes]
              39 | void amdkcl_mm_init(void)
              | ^~~~~~~~~~~~~~
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_kms.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_device_cgroup.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_mn.o
              LD [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/scheduler/amd-sched.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_modes.o
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_device.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_time.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:54,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:37,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/backport.h:69,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_fence.c:239:6: warning: no previous prototype for [-Wmissing-prototypes]
              239 | void amdkcl_fence_init(void)
              | ^~~~~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_acpi_table.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_page_alloc.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_numa.o
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu_atombios.o] Error 1
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_fs_read_write.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_aperture.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_simple_kms_helper.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_bitmap.o
              In file included from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_device.h:31,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_bo.h:40,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/amdgpu.h:54,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/include/kcl/kcl_amdgpu_drm_fb_helper.h:37,
              from /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/backport/backport.h:69,
              from <command-line>:
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/include/drm/ttm/ttm_pool.h:77:45: error: undeclared here (not in a function); did you mean ?
              77 | struct ttm_pool_type orders[MAX_ORDER];
              | ^~~~~~~~~
              | PMD_ORDER
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_vmscan.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_dma_fence_chain.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_mce_amd.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_device_cgroup.c:29:6: warning: no previous prototype for [-Wmissing-prototypes]
              29 | void amdkcl_dev_cgroup_init(void)
              | ^~~~~~~~~~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_workqueue.o
              make[3]: *** [scripts/Makefile.build:243: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu/atombios_crtc.o] Error 1
              make[2]: *** [scripts/Makefile.build:481: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdgpu] Error 2
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_cpumask.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_vmscan.c:25:6: warning: no previous prototype for [-Wmissing-prototypes]
              25 | void synchronize_shrinkers(void)
              | ^~~~~~~~~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_dsc_helper.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_mm_slab.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_irqdesc.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_suballoc.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_dp_helper.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_drm_hdcp.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_mce_amd.c:16:22: warning: no previous prototype for [-Wmissing-prototypes]
              16 | enum smca_bank_types kcl_smca_get_bank_type(unsigned int cpu, unsigned int bank)
              | ^~~~~~~~~~~~~~~~~~~~~~
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_workqueue.c:40:6: warning: no previous prototype for [-Wmissing-prototypes]
              40 | void amdkcl_workqueue_init(void)
              | ^~~~~~~~~~~~~~~~~~~~~
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_debugfs_inode.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_debugfs_file.o
              CC [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_sysfs_emit.o
              /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/kcl_numa.c:15:6: warning: no previous prototype for [-Wmissing-prototypes]
              15 | void amdkcl_numa_init(void)
              | ^~~~~~~~~~~~~~~~
              LD [M] /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/amd/amdkcl/amdkcl.o
              make[1]: *** [/usr/src/linux-headers-6.8.0-63-generic/Makefile:1925: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build] Error 2
              make: *** [Makefile:240: __sub-make] Error 2
              make: Leaving directory '/usr/src/linux-headers-6.8.0-63-generic'​
              What did I break? And, more importantly, how do I fix? O.o

              Comment


                #8
                Originally posted by llloyd View Post
                /var/lib/dkms/amdgpu/6.3.6-1718217.22.04
                Originally posted by llloyd View Post
                DKMS make.log for amdgpu-6.3.6-1718217.22.04 for kernel 6.8.0-63-generic (x86_64)
                So you already had the AMDGPU stuff installed in the past.....

                Originally posted by llloyd View Post
                Following the instructions on Installing the Latest Kernel on Ubuntu 24.04 LTS
                Good lord, that is not at all accurate or current.

                BUT the only thing that failed was the AMDGPU build against the 6.8 kernel you just installed
                (
                Originally posted by llloyd View Post
                sudo apt install linux-generic
                This package pulls in the stock, original 24.04 kernel. You still have and are using the current 6.11. Installing this package is unnecessary, even more so on the original 24.04 release and that article is a bit of a mess overall.

                So nothing is actually broken, though I'd suggest not attempting to boot to 6.8, the graphics driver there is probably not working. 6.11 is not going to be affected here.

                So... lets clean that up first.
                Remove the 6.8 kernel and headers:

                Code:
                sudo apt remove linux-{image,headers}-generic
                sudo apt autoremove
                Anything looks fishy, don't proceed and post what you see.

                I am not sure if we need to remove the AMDGPU stuff you installed. So I am not sure if it is OK to also install a Mesa upgrade. It should be OK, as iirc the amdgpu part should be completely separate from this. But if amdgpu is still installed, it won't use this new mesa instead anyway. I think. But I am not sure.

                Me, I'd uninstall the amdgpu stuff, which *shoudn't* break anything, but there are always risks.

                But I forget a very important question: which specific GPU do you actually have? This will help determine if a kernel bump is even helpful.

                So, if you get rid of the unnecessary 6.8 kernel, uninstall amdgpu, reboot and have a working desktop, THEN we can upgrade Mesa:

                The PPA has instructions though this guide is more step-by-step.

                Comment


                  #9
                  Originally posted by claydoh View Post


                  So you already had the AMDGPU stuff installed in the past.....


                  Good lord, that is not at all accurate or current.

                  BUT the only thing that failed was the AMDGPU build against the 6.8 kernel you just installed
                  (
                  This package pulls in the stock, original 24.04 kernel. You still have and are using the current 6.11. Installing this package is unnecessary, even more so on the original 24.04 release and that article is a bit of a mess overall.

                  So nothing is actually broken, though I'd suggest not attempting to boot to 6.8, the graphics driver there is probably not working. 6.11 is not going to be affected here.

                  So... lets clean that up first.
                  Remove the 6.8 kernel and headers:

                  Code:
                  sudo apt remove linux-{image,headers}-generic
                  sudo apt autoremove
                  Anything looks fishy, don't proceed and post what you see.

                  I am not sure if we need to remove the AMDGPU stuff you installed. So I am not sure if it is OK to also install a Mesa upgrade. It should be OK, as iirc the amdgpu part should be completely separate from this. But if amdgpu is still installed, it won't use this new mesa instead anyway. I think. But I am not sure.

                  Me, I'd uninstall the amdgpu stuff, which *shoudn't* break anything, but there are always risks.

                  But I forget a very important question: which specific GPU do you actually have? This will help determine if a kernel bump is even helpful.

                  So, if you get rid of the unnecessary 6.8 kernel, uninstall amdgpu, reboot and have a working desktop, THEN we can upgrade Mesa:

                  The PPA has instructions though this guide is more step-by-step.
                  Me? I thought I mentioned it? If I hadn't then apologies. An AMD Radeon RX 6800XT

                  Comment


                    #10
                    Ok, so your commands did error out, so... Umm... O.o

                    Code:
                    llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ sudo apt remove linux-{image,headers}-generic
                    sudo apt autoremove
                    [sudo] password for llloyd:
                    Reading package lists... Done
                    Building dependency tree... Done
                    Reading state information... Done
                    The following packages were automatically installed and are no longer required:
                    linux-image-6.8.0-63-generic linux-modules-6.8.0-63-generic linux-modules-extra-6.8.0-63-generic linux-tools-6.8.0-63
                    linux-tools-6.8.0-63-generic
                    Use 'sudo apt autoremove' to remove them.
                    The following packages will be REMOVED:
                    linux-generic linux-headers-generic linux-image-generic
                    0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
                    2 not fully installed or removed.
                    After this operation, 52.2 kB disk space will be freed.
                    Do you want to continue? [Y/n] y
                    (Reading database ... 295688 files and directories currently installed.)
                    Removing linux-generic (6.8.0-63.66) ...
                    Removing linux-headers-generic (6.8.0-63.66) ...
                    Removing linux-image-generic (6.8.0-63.66) ...
                    Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
                    Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
                    Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
                    Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
                    Building for 6.11.0-29-generic
                    Building for architecture x86_64
                    Building initial module for 6.11.0-29-generic
                    ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
                    Error! Bad return status for module build on kernel: 6.11.0-29-generic (x86_64)
                    Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/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
                    Setting up linux-image-6.8.0-63-generic (6.8.0-63.66) ...
                    Processing triggers for linux-image-6.8.0-63-generic (6.8.0-63.66) ...
                    /etc/kernel/postinst.d/dkms:
                    * dkms: running auto installation service for kernel 6.8.0-63-generic
                    Sign command: /usr/bin/kmodsign
                    Signing key: /var/lib/shim-signed/mok/MOK.priv
                    Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
                    
                    Running the pre_build script:
                    checking for a BSD-compatible install... /usr/bin/install -c
                    checking for gcc... gcc
                    checking whether the C compiler works... yes
                    checking for C compiler default output file name... a.out
                    checking for suffix of executables...
                    checking whether we are cross compiling... no
                    checking for suffix of object files... o
                    checking whether the compiler supports GNU C... yes
                    checking whether gcc accepts -g... yes
                    checking for gcc option to enable C11 features... none needed
                    checking how to run the C preprocessor... gcc -E
                    checking kernel source directory... /usr/src/linux-headers-6.8.0-63-generic
                    checking kernel build directory... /usr/src/linux-headers-6.8.0-63-generic
                    checking kernel source version... 6.8.0-63-generic
                    checking kernel file name for module symbols... Module.symvers
                    checking for linux/bits.h... yes
                    checking for linux/io-64-nonatomic-lo-hi.h... yes
                    checking for asm/set_memory.h... yes
                    checking for asm/fpu/api.h... yes
                    checking for linux/compiler_attributes.h... yes
                    checking for linux/fence-array.h... no
                    checking for linux/dma-resv.h... yes
                    checking for linux/mmap_lock.h... yes
                    checking for linux/pci-p2pdma.h... yes
                    checking for linux/dma-attrs.h... no
                    checking for linux/dma-buf-map.h... no
                    checking for linux/iosys-map.h... yes
                    checking for linux/stdarg.h... yes
                    checking for linux/dma-fence-chain.h... yes
                    checking for linux/xarray.h... yes
                    checking for linux/container_of.h... yes
                    checking for linux/cc_platform.h... yes
                    checking for linux/processor.h... yes
                    checking for linux/dma-map-ops.h... yes
                    checking for linux/apple-gmux.h... yes
                    checking for linux/build_bug.h... yes
                    checking for linux/device/class.h... yes
                    checking for drm/drm_backport.h... no
                    checking for drm/amdgpu_pciid.h... no
                    checking for drm/drm_probe_helper.h... yes
                    checking for drm/drmP.h... no
                    checking for drm/task_barrier.h... yes
                    checking for drm/drm_managed.h... yes
                    checking for drm/amd_asic_type.h... yes
                    checking for drm/drm_aperture.h... yes
                    checking for drm/dp/drm_dp_helper.h... no
                    checking for drm/dp/drm_dp_mst_helper.h... no
                    checking for drm/drm_gem_atomic_helper.h... yes
                    checking for drm/display/drm_dp_helper.h... yes
                    checking for drm/display/drm_dp_mst_helper.h... yes
                    checking for drm/display/drm_dsc.h... yes
                    checking for drm/display/drm_dsc_helper.h... yes
                    checking for drm/display/drm_hdmi_helper.h... yes
                    checking for drm/display/drm_hdcp_helper.h... yes
                    checking for drm/display/drm_hdcp.h... yes
                    checking for drm/display/drm_dp.h... yes
                    checking for linux/pgtable.h... yes
                    checking for drm/drm_fbdev_generic.h... yes
                    checking for drm/drm_suballoc.h... yes
                    checking for nproc... yes
                    checking for supported chips... done
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for nproc... (cached) yes
                    checking for module configuration... done
                    configure: creating ./config.status
                    config.status: creating config/config.h
                    
                    Building module:
                    Cleaning build area...(bad exit status: 2)
                    make -j16 KERNELRELEASE=6.8.0-63-generic TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/6.8.0-63-generic/build M=/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build....(bad exit status: 2)
                    ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
                    Error! Bad return status for module build on kernel: 6.8.0-63-generic (x86_64)
                    Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
                    dkms autoinstall on 6.8.0-63-generic/x86_64 failed for amdgpu(10)
                    Error! One or more modules failed to install during autoinstall.
                    Refer to previous errors for more information.
                    * dkms: autoinstall for kernel 6.8.0-63-generic
                    ...fail!
                    run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
                    dpkg: error processing package linux-image-6.8.0-63-generic (--configure):
                    installed linux-image-6.8.0-63-generic package post-installation script subprocess returned error exit status 11
                    Errors were encountered while processing:
                    amdgpu-dkms
                    linux-image-6.8.0-63-generic
                    sh: 0: getcwd() failed: No such file or directory
                    E: Sub-process /usr/bin/dpkg returned an error code (1)
                    Reading package lists... Done
                    Building dependency tree... Done
                    Reading state information... Done
                    sh: 0: getcwd() failed: No such file or directory
                    The following packages will be REMOVED:
                    linux-image-6.8.0-63-generic linux-modules-6.8.0-63-generic linux-modules-extra-6.8.0-63-generic linux-tools-6.8.0-63
                    linux-tools-6.8.0-63-generic
                    sh: 0: getcwd() failed: No such file or directory
                    0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
                    2 not fully installed or removed.
                    sh: 0: getcwd() failed: No such file or directory
                    After this operation, 186 MB disk space will be freed.
                    Do you want to continue? [Y/n] y
                    sh: 0: getcwd() failed: No such file or directory
                    (Reading database ... 295679 files and directories currently installed.)
                    Removing linux-image-6.8.0-63-generic (6.8.0-63.66) ...
                    I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.11.0-28-generic
                    I: /boot/initrd.img.old is now a symlink to initrd.img-6.11.0-28-generic
                    I: /boot/vmlinuz is now a symlink to vmlinuz-6.11.0-29-generic
                    I: /boot/initrd.img is now a symlink to initrd.img-6.11.0-29-generic
                    /var/lib/dpkg/info/linux-image-6.8.0-63-generic.postrm ... removing pending trigger
                    /etc/kernel/postrm.d/initramfs-tools:
                    update-initramfs: Deleting /boot/initrd.img-6.8.0-63-generic
                    /etc/kernel/postrm.d/zz-update-grub:
                    Sourcing file `/etc/default/grub'
                    Generating grub configuration file ...
                    Found linux image: /boot/vmlinuz-6.11.0-29-generic
                    Found initrd image: /boot/initrd.img-6.11.0-29-generic
                    Found linux image: /boot/vmlinuz-6.11.0-28-generic
                    Found initrd image: /boot/initrd.img-6.11.0-28-generic
                    Found memtest86+ 64bit EFI image: /boot/memtest86+x64.efi
                    Warning: os-prober will be executed to detect other bootable partitions.
                    Its output will be used to detect bootable binaries on them and create new boot entries.
                    Found Windows Boot Manager on /dev/sdb1@/efi/Microsoft/Boot/bootmgfw.efi
                    Adding boot menu entry for UEFI Firmware Settings ...
                    done
                    Removing linux-modules-extra-6.8.0-63-generic (6.8.0-63.66) ...
                    Removing linux-modules-6.8.0-63-generic (6.8.0-63.66) ...
                    Removing linux-tools-6.8.0-63-generic (6.8.0-63.66) ...
                    Removing linux-tools-6.8.0-63 (6.8.0-63.66) ...
                    Setting up amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
                    Removing old amdgpu-6.3.6-1718217.22.04 DKMS files...
                    Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
                    Loading new amdgpu-6.3.6-1718217.22.04 DKMS files...
                    Building for 6.11.0-29-generic
                    Building for architecture x86_64
                    Building initial module for 6.11.0-29-generic
                    ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
                    Error! Bad return status for module build on kernel: 6.11.0-29-generic (x86_64)
                    Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/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
                    Errors were encountered while processing:
                    amdgpu-dkms
                    sh: 0: getcwd() failed: No such file or directory
                    E: Sub-process /usr/bin/dpkg returned an error code (1)
                    llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$
                    
                    ​

                    Comment


                      #11
                      Ya, you are going to have to uninstall the AMDGPU stuff. This (amdgpu-dkms specifically) is failing to build kernel modules on your 6.11 kernel --this is where the errors are from.
                      BUT the 6.8 kernel packages HAVE been removed.

                      Comment


                        #12
                        Originally posted by claydoh View Post
                        Ya, you are going to have to uninstall the AMDGPU stuff. This (amdgpu-dkms specifically) is failing to build kernel modules on your 6.11 kernel --this is where the errors are from.
                        BUT the 6.8 kernel packages HAVE been removed.
                        Like this?

                        Code:
                        llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ sudo apt remove amdgpu-dkms
                        [sudo] password for llloyd:
                        Reading package lists... Done
                        Building dependency tree... Done
                        Reading state information... Done
                        The following package was automatically installed and is no longer required:
                        amdgpu-dkms-firmware
                        Use 'sudo apt autoremove' to remove it.
                        sh: 0: getcwd() failed: No such file or directory
                        The following packages will be REMOVED:
                        amdgpu-dkms
                        sh: 0: getcwd() failed: No such file or directory
                        0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
                        1 not fully installed or removed.
                        sh: 0: getcwd() failed: No such file or directory
                        After this operation, 469 MB disk space will be freed.
                        Do you want to continue? [Y/n] y
                        sh: 0: getcwd() failed: No such file or directory
                        (Reading database ... 287927 files and directories currently installed.)
                        Removing amdgpu-dkms (1:6.3.6.60002-1718217.22.04) ...
                        Deleting module amdgpu-6.3.6-1718217.22.04 completely from the DKMS tree.
                        sh: 0: getcwd() failed: No such file or directory
                        llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$
                        
                        ​

                        Comment


                          #13
                          Originally posted by llloyd View Post
                          Like this?
                          More likley like this

                          Originally posted by claydoh View Post
                          I am not sure if we need to remove the AMDGPU stuff you installed..
                          to remove all of it, as well as other removal /configuration steps

                          Comment


                            #14
                            Originally posted by claydoh View Post
                            More likley like this


                            to remove all of it, as well as other removal /configuration steps
                            Oh! Apologies, a little slow here. >.< Ok, I think I got it?

                            Code:
                            llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ amdgpu-uninstall
                            amdgpu-uninstall: command not found
                            llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ amdgpu-uninstall
                            amdgpu-uninstall: command not found
                            llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ amdgpu-install --uninstall
                            amdgpu-install: command not found
                            llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ sudo apt-get purge amdgpu-install
                            [sudo] password for llloyd:
                            Reading package lists... Done
                            Building dependency tree... Done
                            Reading state information... Done
                            Package 'amdgpu-install' is not installed, so not removed
                            The following package was automatically installed and is no longer required:
                            amdgpu-dkms-firmware
                            Use 'sudo apt autoremove' to remove it.
                            0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                            llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$ sudo apt autoremove
                            Reading package lists... Done
                            Building dependency tree... Done
                            Reading state information... Done
                            sh: 0: getcwd() failed: No such file or directory
                            The following packages will be REMOVED:
                            amdgpu-dkms-firmware
                            sh: 0: getcwd() failed: No such file or directory
                            0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
                            sh: 0: getcwd() failed: No such file or directory
                            After this operation, 84.2 MB disk space will be freed.
                            Do you want to continue? [Y/n] y
                            sh: 0: getcwd() failed: No such file or directory
                            (Reading database ... 284867 files and directories currently installed.)
                            Removing amdgpu-dkms-firmware (1:6.3.6.60002-1718217.22.04) ...
                            sh: 0: getcwd() failed: No such file or directory
                            llloyd@Nyeri:/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build$​

                            Comment


                              #15
                              Originally posted by llloyd View Post
                              An AMD Radeon RX 6800XT
                              Ok, a super-current kernel is not necessary here.

                              Comment

                              Users Viewing This Topic

                              Collapse

                              There are 0 users viewing this topic.

                              Working...
                              X