• linux-image-6.10.6 fails to build in nvidia-tesla-470

    From Rick Macdonald@21:1/5 to All on Fri Sep 6 20:30:01 2024
    I'm running an up-to-date Bookworm desktop. I have an NVIDIA GeForce GTX
    760 (192-bit) using the NVIDIA Driver Version 470.256.02, coming from
    the nvidia-tesla-470 packages. I've searched this list and the package
    pages and don't see any bugs reported.

    The 6.10.6 image fails to build:

    Errors were encountered while processing:
     linux-image-6.10.6+bpo-amd64
     linux-image-amd64
     linux-headers-6.10.6+bpo-amd64
     linux-headers-amd64

    I see the following in the build log:

    /var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h:
    In function ‘nv_ioremap_wc’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h:579:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
      579 |         NV_MEMDBG_ADD(ptr, size);
          |                                 ^ /var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h:
    In function ‘nv_vmap’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h:666:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
      666 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
          |                                                   ^
    /var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/os-mlock.c: In
    function ‘nv_follow_pfn’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/os-mlock.c:23:12:
    error: implicit declaration of function ‘follow_pfn’; did you mean ‘follow_pte’? [-Werror=implicit-function-declaration]
       23 |     return follow_pfn(vma, address, pfn);
          |            ^~~~~~~~~~
          |            follow_pte /var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/nv-kthread-q.c:
    In function ‘thread_create_on_node’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/nv-kthread-q.c:180:5: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]

    There are a great number of warnings pointing at NV_MEMDBG_ADD with the "suggest empty braces...: message.

    I think the "error: implicit declaration..." mentioned is what fails the
    build, although elsewhere there's a message "cc1: some warnings being
    treated as errors".

    According to the "NVIDIA X Server Settings" GUI, the nvidia-tesla-470/470.256.02 that is failing to build is actually the
    same version that I'm already running now with kernel 6.9.7.

    # uname -a
    Linux timshel 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian
    6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux


    What can I do?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to Rick Macdonald on Fri Sep 6 22:20:01 2024
    Rick Macdonald <rickmacd@shaw.ca> writes:

    I'm running an up-to-date Bookworm desktop. I have an NVIDIA GeForce
    GTX 760 (192-bit) using the NVIDIA Driver Version 470.256.02, coming
    from the nvidia-tesla-470 packages. I've searched this list and the
    package pages and don't see any bugs reported.

    The 6.10.6 image fails to build:

    Errors were encountered while processing:
     linux-image-6.10.6+bpo-amd64
     linux-image-amd64
     linux-headers-6.10.6+bpo-amd64
     linux-headers-amd64

    Is there some reason to run the backport kernel? Maybe just run with the
    stock Bookworm kernel and consider upgrading hardware before Trixie?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rick Macdonald@21:1/5 to Anssi Saari on Sat Sep 7 00:50:01 2024
    Well, this is embarrassing. I found in the bash history that I ran this:

    apt install -t bookworm-backports linux-image-amd64 linux-headers-amd64

    but I have no idea why. The timestamp of the deb file is July 18. I
    don't remember why I did this. Getting old sucks. Looking at the
    history, it looks like at the time I was having problems with
    pulseaudio, and it being replaced by pipewire.

    Sorry to sound so lame, but I do I remove the backport such that it goes
    back to the stock Bookworm kernel?

    Rick

    On 2024-09-06 14:12, Anssi Saari wrote:
    Rick Macdonald <rickmacd@shaw.ca> writes:

    I'm running an up-to-date Bookworm desktop. I have an NVIDIA GeForce
    GTX 760 (192-bit) using the NVIDIA Driver Version 470.256.02, coming
    from the nvidia-tesla-470 packages. I've searched this list and the
    package pages and don't see any bugs reported.

    The 6.10.6 image fails to build:

    Errors were encountered while processing:
     linux-image-6.10.6+bpo-amd64
     linux-image-amd64
     linux-headers-6.10.6+bpo-amd64
     linux-headers-amd64
    Is there some reason to run the backport kernel? Maybe just run with the stock Bookworm kernel and consider upgrading hardware before Trixie?



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Rick Macdonald on Sat Sep 7 03:10:01 2024
    On Fri, 6 Sep 2024 16:39:46 -0600
    Rick Macdonald <rickmacd@shaw.ca> wrote:

    Well, this is embarrassing. I found in the bash history that I ran
    this:

    apt install -t bookworm-backports linux-image-amd64
    linux-headers-amd64


    Sorry to sound so lame, but I do I remove the backport such that it
    goes back to the stock Bookworm kernel?

    No worries; we've all done something similar. Well, except for the wet-behind-the-ears know-it-alls. But that's why they're
    wet-behind-the-ears know-it-alls.

    Anyway, I seem to recall doing something like:

    apt purge linux-image-amd64 linux-headers-amd64
    apt install linux-image-amd64 linux-headers-amd64

    You may want an "apt autopurge" in between.

    You may also find yourself rebooting and manually purging surplus
    kernels and headers packages.
    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anssi Saari@21:1/5 to Charles Curley on Mon Sep 9 10:10:01 2024
    Charles Curley <charlescurley@charlescurley.com> writes:

    apt purge linux-image-amd64 linux-headers-amd64
    apt install linux-image-amd64 linux-headers-amd64

    You may want an "apt autopurge" in between.

    That should do it although it's apt autoremove I believe but if not you
    can explicitly remove the backport kernel image and headers.

    Running dpkg -l linux-headers-\* and dpkg -l linux-image-\* will list
    the relevant packages, rows that start with ii mean installed.

    Backport kernels will have bpo in the version column and those are the
    ones that are from backports and can be removed.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David@21:1/5 to Anssi Saari on Mon Sep 9 10:30:01 2024
    On Mon, 2024-09-09 at 11:04 +0300, Anssi Saari wrote:
    Charles Curley <charlescurley@charlescurley.com> writes:

    apt purge linux-image-amd64 linux-headers-amd64
    apt install linux-image-amd64 linux-headers-amd64

    You may want an "apt autopurge" in between.

    That should do it although it's apt autoremove 

    `apt auto-remove'

    Cheers!
    I believe but if not you
    can explicitly remove the backport kernel image and headers.

    Running dpkg -l linux-headers-\* and dpkg -l linux-image-\* will list
    the relevant packages, rows that start with ii mean installed.

    Backport kernels will have bpo in the version column and those are
    the
    ones that are from backports and can be removed.


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christian Britz@21:1/5 to All on Sun Sep 15 21:10:01 2024
    Am 09.09.24 um 10:27 schrieb David:

    `apt auto-remove'

    You generally might want apt --purge auto-remove
    This also cleans up configuration files.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charles Curley@21:1/5 to Christian Britz on Sun Sep 15 21:20:01 2024
    On Sun, 15 Sep 2024 21:04:18 +0200
    Christian Britz <cbritz@t-online.de> wrote:

    Am 09.09.24 um 10:27 schrieb David:

    `apt auto-remove'

    You generally might want apt --purge auto-remove
    This also cleans up configuration files.

    Which is the same as "apt autopurge", which I suggested earlier in this
    thread.

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)