Problem with kernel 6.15.3-1-siduction-amd64

Started by charlyheinz, 2025/06/20, 13:27:38

Previous topic - Next topic

Teriarch

#15
@Pip

Let's give it a try. I installed the deb file,inserted the "ccflags-y =..." at line 85 of Kbuild
and the compilation terminates with error

nvidia/nv.c:3848:5: error: implicit declaration of function 'del_timer_sync' [-Wimplicit-function-declaration]
3848 |     del_timer_sync(&nvl->rc_timer.kernel_timer);

Now cd to /var/lib/dkms/nvidia-tesla-470/470.256.02/build (you can always recompile after changes by:

$ sudo env NV_VERBOSE=1 make -j4 modules KERNEL_UNAME=6.15.3-1-siduction-amd64)

Do a

$ grep -r del_timer_sync *

identify the c files containing expression "del_timer_sync" and replace all such occurrences
by "timer_delete_sync". Recompile the sources by the above command and see, where this is getting us!

To be continued...

PS.: Ignore the warnings, they are not part of the problem.

towo

https://gist.github.com/joanbm/def2bf57ed7a799c1d84a67606459314

her is a ready to use patch, i'm not at home so i can't build nvidia-470 with that patch included at the moment.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

michaa7

Hey towo, thanks for telling what's going on. Although I have patched things I avoid it as I need too much help with it. It's not my cup of tea.

I can wait, even for a longer period if neccessary. To get a new siduction Kernel runing with my nvidia card is not important in a timely manner (but I like it ;-) ). The only thing I really would like to avoid is being completely cut off from new kernel development.

Thanks.
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

michaa7

#18
sorry, doppelposting
Ok, you can't code, but you still might be able to write a bug report for Debian's sake

Pip

I think I got most of it sorted out, rather clumsily. A major part of what was wrong was del_timer_sync needing to be timer_delete_sync in the new kernel headers. But it still won't install because ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__vma_start_write' which I haven't got around - I can give it a value that will get it through, but then it won't be something to share.
Whether what comes out at the end actually works is another matter.

And I see that everyone else has already zipped through it. Sorry I took so long to get back about it.

micspabo

#20
I do not have an NVIDIA card in my laptop. Whatever the kernel build failes during FU.


# inxi -G
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Barcelo driver: amdgpu v: kernel
  Device-2: Luxvisions Innotech HP 5MP Camera driver: uvcvideo type: USB
  Display: unspecified server: X.Org v: 21.1.16 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: radeonsi,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.1.4-0siduction1
    renderer: AMD Radeon Graphics (radeonsi renoir ACO DRM 3.61
    6.14.10-1-siduction-amd64)
  Info: Tools: api: eglinfo,glxinfo de: xfce4-display-settings x11: xdriinfo,
    xdpyinfo, xprop, xrandr



┌─[~]
└─># apt update
Fetched 18,1 MB in 9s (2.045 kB/s)                                                                                           
119 packages can be upgraded. Run 'apt list --upgradable' to see them.

┌─[~]
└─># apt full-upgrade
Upgrading:                     
  bind9-dnsutils           libblockdev-loop3        libglib2.0-bin            libpython3.13-stdlib           mesa-va-drivers
  bind9-host               libblockdev-mdraid3      libglib2.0-data           libqt6core6t64                 mesa-vdpau-drivers
  bind9-libs               libblockdev-nvme3        libglx-mesa0              libqt6dbus6                    mesa-vulkan-drivers
  catdoc                   libblockdev-part3        libgnome-desktop-3-20t64  libqt6gui6                     osinfo-db
  cifs-utils               libblockdev-swap3        libgnome-desktop-4-2t64   libqt6network6                 pci.ids
  curl                     libblockdev-utils3       libgtk-4-1                libqt6opengl6                  python3-guestfs
  gir1.2-adw-1             libblockdev3             libgtk-4-bin              libqt6printsupport6            python3.13
  gir1.2-gdkpixbuf-2.0     libc-bin                 libgtk-4-common           libqt6sql6                     python3.13-dev
  gir1.2-glib-2.0          libc-dev-bin             libgtk-4-media-gstreamer  libqt6sql6-sqlite              python3.13-doc
  gir1.2-gnomedesktop-4.0  libc-devtools            libguestfs-gfs2           libqt6widgets6                 python3.13-minimal
  gir1.2-gtk-4.0           libc-l10n                libguestfs-jfs            libqt6xml6                     python3.13-tk
  git                      libc6                    libguestfs-nilfs          librpm10                       python3.13-venv
  git-man                  libc6-dev                libguestfs-perl           librpmio10                     rpm-common
  gnome-desktop3-data      libcjson1                libguestfs-rescue         libudisks2-0                   shine-on-xfce-settings
  gtk-update-icon-cache    libcpupower1             libguestfs-rsync          libwin-hivex-perl              siduction-manual
  guestfish                libcurl3t64-gnutls       libguestfs-tools          linux-cpupower                 signal-desktop
  guestmount               libcurl4t64              libguestfs-xfs            linux-doc                      sos
  initramfs-tools          libegl-mesa0             libguestfs0t64            linux-doc-6.12                 sosreport
  initramfs-tools-bin      libgbm1                  libhivex0                 linux-headers-siduction-amd64  udisks2
  initramfs-tools-core     libgdk-pixbuf-2.0-0      libllvm18                 linux-image-siduction-amd64    udisks2-btrfs
  libadwaita-1-0           libgdk-pixbuf2.0-bin     libllvm19                 linux-libc-dev                 xserver-common
  libblockdev-btrfs3       libgdk-pixbuf2.0-common  libpython3.13             locales                        xserver-xorg-core
  libblockdev-crypto3      libgl1-mesa-dri          libpython3.13-dev         manpages-de                    xserver-xorg-legacy
  libblockdev-fs3          libglib2.0-0t64          libpython3.13-minimal     mesa-libgallium

Installing dependencies:
  linux-headers-6.15.3-1-siduction-amd64  linux-image-6.15.3-1-siduction-amd64

Suggested packages:
  linux-doc-6.15

Summary:
  Upgrading: 119, Installing: 2, Removing: 0, Not Upgrading: 0
  Download size: 407 MB
  Space needed: 490 MB / 747 GB available

Continue? [Y/n] Y
...

Setting up linux-headers-6.15.3-1-siduction-amd64 (6.15-3) ...
/etc/kernel/header_postinst.d/dkms:
The kernel is built without module signing facility, modules won't be signed

Autoinstall of module tp_smapi/0.44 for kernel 6.15.3-1-siduction-amd64 (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.15.3-1-siduction-amd64 -C /lib/modules/6.15.3-1-siduction-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1

Error! Bad return status for module build on kernel: 6.15.3-1-siduction-amd64 (x86_64)
Consult /var/lib/dkms/tp_smapi/0.44/build/make.log for more information.

Autoinstall on 6.15.3-1-siduction-amd64 failed for module(s) tp_smapi(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.15.3-1-siduction-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.15.3-1-siduction-amd64 (--configure):
installed linux-headers-6.15.3-1-siduction-amd64 package post-installation script subprocess returned error exit status 1
Setting up signal-desktop (7.58.0) ...
update-alternatives is /usr/bin/update-alternatives
Setting up sosreport (4.9.2-1) ...
Setting up libblockdev-nvme3:amd64 (3.3.0-2.1) ...
Setting up libblockdev-fs3:amd64 (3.3.0-2.1) ...
Setting up linux-doc-6.12 (6.12.33-1) ...
Setting up python3.13-minimal (3.13.5-1) ...
Setting up git-man (1:2.50.0-1) ...
dpkg: dependency problems prevent configuration of linux-headers-siduction-amd64:
linux-headers-siduction-amd64 depends on linux-headers-6.15.3-1-siduction-amd64 (= 6.15-3); however:
  Package linux-headers-6.15.3-1-siduction-amd64 is not configured yet.

dpkg: error processing package linux-headers-siduction-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libgdk-pixbuf-2.0-0:amd64 (2.42.12+dfsg-3) ...
Setting up linux-doc (6.12.33-1) ...
Setting up curl (8.14.1-2) ...
Setting up xserver-common (2:21.1.16-1.2) ...
Setting up libgtk-4-common (4.18.6+ds-2) ...
Setting up mesa-va-drivers:amd64 (25.1.4-0siduction1) ...
Setting up libhivex0:amd64 (1.3.24-1+b10) ...
Setting up libc-dev-bin (2.41-9) ...
Setting up bind9-host (1:9.20.10-1) ...
Setting up xserver-xorg-legacy (2:21.1.16-1.2) ...
setting xserver-xorg-legacy/xwrapper/allowed_users from configuration file
Setting up libpython3.13-stdlib:amd64 (3.13.5-1) ...
Setting up libudisks2-0:amd64 (2.10.1-12.1) ...
Setting up libc-devtools (2.41-9) ...
Setting up libllvm18:amd64 (1:18.1.8-18+b1) ...
Setting up initramfs-tools-bin (0.148.2) ...
Setting up libpython3.13:amd64 (3.13.5-1) ...
Setting up mesa-vulkan-drivers:amd64 (25.1.4-0siduction1) ...
Setting up gtk-update-icon-cache (4.18.6+ds-2) ...
Setting up libqt6core6t64:amd64 (6.8.2+dfsg-7) ...
Setting up libglx-mesa0:amd64 (25.1.4-0siduction1) ...
Setting up libblockdev-mdraid3:amd64 (3.3.0-2.1) ...
Setting up gir1.2-gdkpixbuf-2.0:amd64 (2.42.12+dfsg-3) ...
Setting up libblockdev-crypto3:amd64 (3.3.0-2.1) ...
Setting up python3.13 (3.13.5-1) ...
Setting up libblockdev-swap3:amd64 (3.3.0-2.1) ...
Setting up librpm10:amd64 (4.20.1+dfsg-3) ...
Setting up libblockdev-loop3:amd64 (3.3.0-2.1) ...
Setting up xserver-xorg-core (2:21.1.16-1.2) ...
Setting up libglib2.0-bin (2.84.3-1) ...
Setting up rpm-common (4.20.1+dfsg-3) ...
Setting up libwin-hivex-perl (1.3.24-1+b10) ...
Setting up python3.13-venv (3.13.5-1) ...
Setting up libblockdev3:amd64 (3.3.0-2.1) ...
Setting up libgnome-desktop-3-20t64:amd64 (44.3-3) ...
Setting up libblockdev-part3:amd64 (3.3.0-2.1) ...
Setting up libgnome-desktop-4-2t64:amd64 (44.3-3) ...
Setting up libblockdev-btrfs3:amd64 (3.3.0-2.1) ...
Setting up libguestfs0t64:amd64 (1:1.54.1-2+b1) ...
Setting up libqt6xml6:amd64 (6.8.2+dfsg-7) ...
Setting up libqt6sql6:amd64 (6.8.2+dfsg-7) ...
Setting up libguestfs-xfs:amd64 (1:1.54.1-2+b1) ...
Setting up libqt6sql6-sqlite:amd64 (6.8.2+dfsg-7) ...
Setting up libpython3.13-dev:amd64 (3.13.5-1) ...
Setting up libguestfs-gfs2:amd64 (1:1.54.1-2+b1) ...
Setting up git (1:2.50.0-1) ...
Setting up libgdk-pixbuf2.0-bin (2.42.12+dfsg-3) ...
Setting up libguestfs-nilfs:amd64 (1:1.54.1-2+b1) ...
Setting up libgtk-4-1:amd64 (4.18.6+ds-2) ...
Setting up libc6-dev:amd64 (2.41-9) ...
Setting up libguestfs-perl (1:1.54.1-2+b1) ...
Setting up libgtk-4-bin (4.18.6+ds-2) ...
Setting up gir1.2-gnomedesktop-4.0:amd64 (44.3-3) ...
Setting up bind9-dnsutils (1:9.20.10-1) ...
Setting up initramfs-tools-core (0.148.2) ...
Setting up libguestfs-jfs:amd64 (1:1.54.1-2+b1) ...
Setting up libqt6dbus6:amd64 (6.8.2+dfsg-7) ...
Setting up gir1.2-gtk-4.0:amd64 (4.18.6+ds-2) ...
Setting up udisks2 (2.10.1-12.1) ...
Setting up guestfish (1:1.54.1-2+b1) ...
Setting up python3-guestfs (1:1.54.1-2+b1) ...
Setting up libguestfs-rsync:amd64 (1:1.54.1-2+b1) ...
Setting up udisks2-btrfs (2.10.1-12.1) ...
Setting up initramfs-tools (0.148.2) ...
update-initramfs: deferring update (trigger activated)
Setting up python3.13-dev (3.13.5-1) ...
Setting up libadwaita-1-0:amd64 (1.7.4-2) ...
Setting up libguestfs-rescue:amd64 (1:1.54.1-2+b1) ...
Setting up guestmount (1:1.54.1-2+b1) ...
Setting up libqt6gui6:amd64 (6.8.2+dfsg-7) ...
Setting up libgtk-4-media-gstreamer (4.18.6+ds-2) ...
Setting up libqt6network6:amd64 (6.8.2+dfsg-7) ...
Setting up linux-image-6.15.3-1-siduction-amd64 (6.15-3) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.14.10-1-siduction-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.14.10-1-siduction-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.15.3-1-siduction-amd64
I: /initrd.img is now a symlink to boot/initrd.img-6.15.3-1-siduction-amd64
/etc/kernel/postinst.d/dkms:
The kernel is built without module signing facility, modules won't be signed

Autoinstall of module tp_smapi/0.44 for kernel 6.15.3-1-siduction-amd64 (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.15.3-1-siduction-amd64 -C /lib/modules/6.15.3-1-siduction-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1

Error! Bad return status for module build on kernel: 6.15.3-1-siduction-amd64 (x86_64)
Consult /var/lib/dkms/tp_smapi/0.44/build/make.log for more information.

Autoinstall on 6.15.3-1-siduction-amd64 failed for module(s) tp_smapi(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.15.3-1-siduction-amd64 (--configure):
installed linux-image-6.15.3-1-siduction-amd64 package post-installation script subprocess returned error exit status 1
Setting up libqt6opengl6:amd64 (6.8.2+dfsg-7) ...
Setting up gir1.2-adw-1:amd64 (1.7.4-2) ...
Setting up libqt6widgets6:amd64 (6.8.2+dfsg-7) ...
dpkg: dependency problems prevent configuration of linux-image-siduction-amd64:
linux-image-siduction-amd64 depends on linux-image-6.15.3-1-siduction-amd64 (= 6.15-3); however:
  Package linux-image-6.15.3-1-siduction-amd64 is not configured yet.

dpkg: error processing package linux-image-siduction-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up libguestfs-tools (1:1.54.1-2+b1) ...
Setting up libqt6printsupport6:amd64 (6.8.2+dfsg-7) ...
Processing triggers for hicolor-icon-theme (0.18-2) ...
Processing triggers for doc-base (0.11.2) ...
Processing 6 changed doc-base files...
Processing triggers for gnome-menus (3.36.0-3) ...
Processing triggers for libc-bin (2.41-9) ...
Processing triggers for systemd (257.6-1) ...
Processing triggers for man-db (2.13.1-1) ...
Processing triggers for dbus (1.16.2-2) ...
Processing triggers for install-info (7.1.1-1+b1) ...
Processing triggers for mailcap (3.74) ...
Processing triggers for desktop-file-utils (0.28-1) ...
Processing triggers for initramfs-tools (0.148.2) ...
update-initramfs: Generating /boot/initrd.img-6.14.10-1-siduction-amd64
I: The initramfs will attempt to resume from /dev/dm-1
I: (/dev/mapper/luks-400d59ef-905b-47cd-9d2b-aa1ccf74c098)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
linux-headers-6.15.3-1-siduction-amd64
linux-headers-siduction-amd64
linux-image-6.15.3-1-siduction-amd64
linux-image-siduction-amd64
Config is in use.
needrestart is being skipped since dpkg has failed
Error: Sub-process /usr/bin/dpkg returned an error code (1)



# cat /var/lib/dkms/tp_smapi/0.44/build/make.log
DKMS (dkms-3.2.0) make.log for tp_smapi/0.44 for kernel 6.15.3-1-siduction-amd64 (x86_64)
So 22. Jun 07:26:43 CEST 2025

Building module(s)
# command: make -j16 KERNELRELEASE=6.15.3-1-siduction-amd64 -C /lib/modules/6.15.3-1-siduction-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1
make: Entering directory '/usr/src/linux-headers-6.15.3-1-siduction-amd64'
make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.44/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-14 (Debian 14.2.0-19) 14.2.0
  You are using:           gcc (Debian 14.2.0-19) 14.2.0
  CC [M]  thinkpad_ec.o
  CC [M]  tp_smapi.o
  CC [M]  hdaps.o
hdaps.c: In function 'hdaps_suspend':
hdaps.c:430:9: error: implicit declaration of function 'del_timer_sync' [-Wimplicit-function-declaration]
  430 |         del_timer_sync(&hdaps_timer);
      |         ^~~~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-6.15.3-1-siduction-amd64/scripts/Makefile.build:208: hdaps.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.15.3-1-siduction-amd64/Makefile:2027: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.15.3-1-siduction-amd64/Makefile:260: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.44/build'
make: *** [Makefile:260: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.15.3-1-siduction-amd64'

# exit code: 2
# elapsed time: 00:00:01
----------------------------------------------------------------
⢀⣴⠾⠻⢶⣦⠀  
⣾⠁⢠⠒⠀⣿⡁   Debian's Gesellschaftsvertrag
⢿⡄⠘⠷⠚⠋⠀     <https://www.debian.org/social_contract.de.html>
⠈⠳⣄⠀         Danke dafür!

Pip

Quote from: micspabo on 2025/06/22, 07:49:00
I do not have an NVIDIA card in my laptop. Whatever the kernel build failes during FU.


hdaps.c: In function 'hdaps_suspend':
hdaps.c:430:9: error: implicit declaration of function 'del_timer_sync' [-Wimplicit-function-declaration]
  430 |         del_timer_sync(&hdaps_timer);
      |         ^~~~~~~~~~~~~~
-------------------------------------------------------


del_timer_sync has been changed in the new kernel to timer_delete_sync. If you grep for it in the module code and swap it over, you'll at least get rid of that error. But if you don't have an nvidia card, do you have any nvidia packages installed that you could get rid of? Or just take the module out of /usr/src?

micspabo

Quote from: Pip on 2025/06/22, 09:08:29
But if you don't have an nvidia card, do you have any nvidia packages installed that you could get rid of? Or just take the module out of /usr/src?

I cannot find a single nvidia package on my laptop

# dpkg -l | grep ii | grep nvidia | wc -l
0


I don't know which modules I would have to remove and how to start the build process afterwards. :(

# ls -lha /usr/src
drwxr-xr-x 1 root root 296 2025-06-22 07:25 .
drwxr-xr-x 1 root root  94 2023-09-09 21:02 ..
drwxr-xr-x 1 root root 576 2024-06-19 17:31 libdvd-pkg
drwxr-xr-x 1 root root 330 2025-06-12 19:31 linux-headers-6.14.10-1-siduction-amd64
drwxr-xr-x 1 root root 330 2025-05-29 18:17 linux-headers-6.14.9-1-siduction-amd64
drwxr-xr-x 1 root root 330 2025-06-22 07:25 linux-headers-6.15.3-1-siduction-amd64
drwxr-xr-x 1 root root  26 2025-01-10 23:19 python3.13
drwxr-xr-x 1 root root 120 2025-04-11 23:14 tp_smapi-0.44


Maybe the pitfalls will be fixed in the next kernel. Then at least I'll know that I can delete the "/usr/src/linux-headers-6.15.3-1-siduction-amd64" folder :). Until then, I'll try to carefully read the instructions mentioned.
⢀⣴⠾⠻⢶⣦⠀  
⣾⠁⢠⠒⠀⣿⡁   Debian's Gesellschaftsvertrag
⢿⡄⠘⠷⠚⠋⠀     <https://www.debian.org/social_contract.de.html>
⠈⠳⣄⠀         Danke dafür!

Pip

With my limited understanding, I can't see anything you should remove from /usr/src - I have /usr/src/nvidia-tesla-470-470.256.02, which was why I thought it might be relevant. I've no idea why you'd be building the nvidia module if you've nothing that indicates you need it.

micspabo

Out of curiosity I tried:


# cd /usr/src/linux-headers-6.15.3-1-siduction-amd64/

# grep -r del_timer_sync *
  include/linux/timer.h:extern int try_to_del_timer_sync(struct timer_list *timer);
  Module.symvers:0x00000000 try_to_del_timer_sync vmlinux EXPORT_SYMBOL


Then I changed the two "del_timer_sync" to "timer_delete_sync", and tried to build it.


# cd build/

# env NV_VERBOSE=1 make -j4 modules KERNEL_UNAME=6.15.3-1-siduction-amd64
  make: *** No rule to make target 'modules'.  Stop.


I have no idea so far how to correct the build call.
⢀⣴⠾⠻⢶⣦⠀  
⣾⠁⢠⠒⠀⣿⡁   Debian's Gesellschaftsvertrag
⢿⡄⠘⠷⠚⠋⠀     <https://www.debian.org/social_contract.de.html>
⠈⠳⣄⠀         Danke dafür!

micspabo

I repeated the search

# cd /usr/src/
# grep -r del_timer_sync *


I changed the two "del_timer_sync" to "timer_delete_sync" from tp_smapi-0.44/hdaps.c as well,
and have now tried the build process through:


# dpkg --configure -a
Setting up linux-headers-6.15.3-1-siduction-amd64 (6.15-3) ...
/etc/kernel/header_postinst.d/dkms:
The kernel is built without module signing facility, modules won't be signed

Autoinstall of module tp_smapi/0.44 for kernel 6.15.3-1-siduction-amd64 (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.15.3-1-siduction-amd64 -C /lib/modules/6.15.3-1-siduction-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1

Error! Bad return status for module build on kernel: 6.15.3-1-siduction-amd64 (x86_64)
Consult /var/lib/dkms/tp_smapi/0.44/build/make.log for more information.

Autoinstall on 6.15.3-1-siduction-amd64 failed for module(s) tp_smapi(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.15.3-1-siduction-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.15.3-1-siduction-amd64 (--configure):
installed linux-headers-6.15.3-1-siduction-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-siduction-amd64:
linux-headers-siduction-amd64 depends on linux-headers-6.15.3-1-siduction-amd64 (= 6.15-3); however:
  Package linux-headers-6.15.3-1-siduction-amd64 is not configured yet.

dpkg: error processing package linux-headers-siduction-amd64 (--configure):
dependency problems - leaving unconfigured
Setting up linux-image-6.15.3-1-siduction-amd64 (6.15-3) ...
/etc/kernel/postinst.d/dkms:
The kernel is built without module signing facility, modules won't be signed

Autoinstall of module tp_smapi/0.44 for kernel 6.15.3-1-siduction-amd64 (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.15.3-1-siduction-amd64 -C /lib/modules/6.15.3-1-siduction-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1

Error! Bad return status for module build on kernel: 6.15.3-1-siduction-amd64 (x86_64)
Consult /var/lib/dkms/tp_smapi/0.44/build/make.log for more information.

Autoinstall on 6.15.3-1-siduction-amd64 failed for module(s) tp_smapi(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing package linux-image-6.15.3-1-siduction-amd64 (--configure):
installed linux-image-6.15.3-1-siduction-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-siduction-amd64:
linux-image-siduction-amd64 depends on linux-image-6.15.3-1-siduction-amd64 (= 6.15-3); however:
  Package linux-image-6.15.3-1-siduction-amd64 is not configured yet.

dpkg: error processing package linux-image-siduction-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-headers-6.15.3-1-siduction-amd64
linux-headers-siduction-amd64
linux-image-6.15.3-1-siduction-amd64
linux-image-siduction-amd64



# cat /var/lib/dkms/tp_smapi/0.44/build/make.log
DKMS (dkms-3.2.0) make.log for tp_smapi/0.44 for kernel 6.15.3-1-siduction-amd64 (x86_64)
So 22. Jun 13:30:37 CEST 2025

Building module(s)
# command: make -j16 KERNELRELEASE=6.15.3-1-siduction-amd64 -C /lib/modules/6.15.3-1-siduction-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1
make: Entering directory '/usr/src/linux-headers-6.15.3-1-siduction-amd64'
make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.44/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc-14 (Debian 14.2.0-19) 14.2.0
  You are using:           gcc    (Debian 14.2.0-19) 14.2.0
  CC [M]  thinkpad_ec.o
  CC [M]  tp_smapi.o
  CC [M]  hdaps.o
  MODPOST Module.symvers
ERROR: modpost: parse error in symbol dump file
make[3]: *** [/usr/src/linux-headers-6.15.3-1-siduction-amd64/scripts/Makefile.modpost:147: Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.15.3-1-siduction-amd64/Makefile:1977: modpost] Error 2
make[1]: *** [/usr/src/linux-headers-6.15.3-1-siduction-amd64/Makefile:260: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.44/build'
make: *** [Makefile:260: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.15.3-1-siduction-amd64'

# exit code: 2
# elapsed time: 00:00:00
----------------------------------------------------------------


Now it fails as the kernel was build by gcc-14 and dpkg is using the gcc,- otherwise both versions are the same.
Could someone please point me in the right direction to overcome this hurdle?
Thanks in advance.
⢀⣴⠾⠻⢶⣦⠀  
⣾⠁⢠⠒⠀⣿⡁   Debian's Gesellschaftsvertrag
⢿⡄⠘⠷⠚⠋⠀     <https://www.debian.org/social_contract.de.html>
⠈⠳⣄⠀         Danke dafür!

Pip

I didn't make things clear, sorry about that: it was only in the nvidia module where things should change, from what I was doing. Whether it would be needed in  tp_smapi-0.44 as well, I couldn't tell you since I don't know the module. timer_delete_sync is how it's meant to be in the kernel, there was nothing in the kernel to change. There was try_to_del_timer_sync, but that should have stayed as was.
Definitely revert the kernel headers to the way they were.

To indicate just how much you should pay attention to what I say, I have now managed to get the nvidia module to build with very few warnings and install. After which, I can't start the system in gui mode with the new kernel. Back at the older kernel now.

micspabo

#27
@pip: Thank you for your explanations.

Only because the installation of kernel 6.15.3-1-siduction-amd64 failed during full-upgrade,
because the linux-headers-6.15.3-1-siduction-amd64 could not be compiled, I dared to make some changes.

I see that it was not successfull.

At this stage I would just undo the changes from tp_smapi-0.44/hdaps.c,
delete the folder "linux-headers-6.15.3-1-siduction-amd64" from /usr/src/
and hope that the next 6.15 kernel will install as usual.

The first kernel 6.15.3-1 wasn't even installed when it arrived on my laptop.

# dkms status
  tp_smapi/0.44, 6.14.10-1-siduction-amd64, x86_64: installed (Original modules exist)
  tp_smapi/0.44, 6.14.9-1-siduction-amd64,  x86_64: installed (Original modules exist)


I hope my strategy pays off.  8)
⢀⣴⠾⠻⢶⣦⠀  
⣾⠁⢠⠒⠀⣿⡁   Debian's Gesellschaftsvertrag
⢿⡄⠘⠷⠚⠋⠀     <https://www.debian.org/social_contract.de.html>
⠈⠳⣄⠀         Danke dafür!

towo

To make it clear, there will nothing changed with the next siduction kernel!
The fix has to be in tp_smapi!
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Teriarch

#29
I built a beta version

nvidia-tesla-470-kernel-dkms_470.256.02-7.siduction.1b_amd64.deb

compatible with all the other packages from the maintainer. Simply do a

$ sudo apt-get install nvidia-tesla-470-driver

and when the original package nvidia-tesla-470-kernel-dkms fails, simply replace it by

$ sudo dpkg -i  nvidia-tesla-470-kernel-dkms_470.256.02-7.siduction.1b_amd64.deb

If someone is still interested to try it out, here is the link:

<https://wormhole.app/kz5ax2#6gCJh98boqZFh9_tQpjnhA>
md5sum                                                    name
da34517c6278756bd358a90c3a04dfa5  nvidia-tesla-470-kernel-dkms_470.256.02-7.siduction.1b_amd64.deb