oss4-dkms FTBS in Noble with the linux-6.17 kernel

Bug #2136849 reported by John Cabaj
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oss4 (Ubuntu)
Status tracked in Resolute
Noble
Fix Committed
Undecided
Unassigned
Questing
Invalid
Undecided
Unassigned
Resolute
Invalid
Undecided
Unassigned

Bug Description

[ Impact ]

DKMS make.log for oss4-4.2-build2020 for kernel 6.17.0-7-generic (x86_64)
Fri Dec 19 03:04:27 UTC 2025
make: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
make[1]: Entering directory '/var/lib/dkms/oss4/4.2-build2020/build/core'
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] oss_core.o
  CC [M] os_linux.o
  CC [M] oss_ac97.o
  CC [M] oss_audio_core.o
os_linux.c:16:10: fatal error: oss_config.h: No such file or directory
   16 | #include <oss_config.h>
      | ^~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: os_linux.o] Error 1
make[3]: *** Waiting for unfinished jobs....
oss_audio_core.c:26:10: fatal error: oss_config.h: No such file or directory
   26 | #include <oss_config.h>
      | ^~~~~~~~~~~~~~
compilation terminated.
In file included from oss_ac97.c:19:
oss_config.h:37:10: fatal error: ossddk/oss_exports.h: No such file or directory
   37 | #include <ossddk/oss_exports.h>
      | ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: oss_audio_core.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: oss_ac97.o] Error 1
oss_core.c:21:10: fatal error: ossddk/oss_exports.h: No such file or directory
   21 | #include <ossddk/oss_exports.h>
      | ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: oss_core.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/oss4/4.2-build2020/build/core'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'

[ Test case ]

Install the latest linux-6.17 kernel on Noble:

$ sudo add-apt-repository ppa:canonical-kernel-team/ppa3
$ sudo apt install linux-generic-hwe-24.04-edge

Install oss4-dkms:

$ sudo apt install oss4-dkms

Module built and installed successfully

The same procedure must be repeated on linux-6.8 and linux-6.14 to test for possible regressions.

[ Fix ]

Patch to fix Kbuild and deprecated del_timer() call:

-debian/patches/Kbuild-Use-ccflags-y-instead-of-EXTRA_CFLAGS.patch
-debian/patches/Fix-timer-changes-in-Linux-6.15.patch
-create-ma-tree.sh, changing EXTRA_CFLAGS to ccflags-y

[ Regression potential ]

We may experience regressions in systems that are using the oss4 drivers, especially with kernels >= 6.8 kernel.

John Cabaj (john-cabaj)
description: updated
description: updated
Revision history for this message
John Cabaj (john-cabaj) wrote :

4.2-build2020-1ubuntu3 -> 4.2-build2020-1ubuntu3.1 debdiff

Revision history for this message
Massimiliano Pellizzer (mpellizzer) wrote :

Uploaded thanks

Changed in oss4 (Ubuntu):
status: New → Invalid
Changed in oss4 (Ubuntu Noble):
status: New → In Progress
Changed in oss4 (Ubuntu Questing):
status: New → Invalid
description: updated
Revision history for this message
Nick Rosbrook (enr0n) wrote :

Note that at the moment, this creates a sorting problem with plucky:

oss4 | 4.2-build2020-1ubuntu3 | noble/universe | source
oss4 | 4.2-build2020-1ubuntu3 | plucky/universe | source
oss4 | 4.2-build2020-1ubuntu3.1 | noble/unapproved/f15c988 | source
oss4 | 4.2-build2020-6 | questing/universe | source
oss4 | 4.2-build2020-6 | resolute/universe | source

However, since plucky is EOL on Jan 15, this is not really a problem in practice. Just in case, I will add block-proposed-noble until that time.

tags: added: block-proposed-noble
Changed in oss4 (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
Nick Rosbrook (enr0n) wrote : Please test proposed package

Hello John, or anyone else affected,

Accepted oss4 into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/oss4/4.2-build2020-1ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
John Cabaj (john-cabaj) wrote :

Modules built and installed successfully. Modules loaded successfully:

Noble 6.8 kernel:

root@noble-lts-vm:~# uname -r
6.8.0-90-generic
root@noble-lts-vm:~# modprobe osscore
root@noble-lts-vm:~#

Noble 6.14 kernel:

root@noble-614-vm:~# uname -r
6.14.0-37-generic
root@noble-614-vm:~# modprobe osscore
root@noble-614-vm:~#

Noble 6.17 kernel:

root@noble-hwe-vm:~# uname -r
6.17.0-7-generic
root@noble-hwe-vm:~# modprobe osscore
root@noble-hwe-vm:~#

tags: added: verification-done-noble
removed: verification-needed-noble
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.