Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1042993: dkms: DKMS fails to build amd64 kernel module in i386 userland

37 views
Skip to first unread message

Stefan Monnier

unread,
Aug 3, 2023, 7:30:06 PM8/3/23
to
Package: dkms
Version: 3.0.11-3
Severity: normal

Dear Maintainer,

My machine is running Debian testing i386 but with an amd64 kernel
(to make better use of my 8GB of RAM). I also have `dkms` and `tp-smapi-dkms`
installed.

Until recently this worked fine and built the `tp-smapi` kernel module
for my `amd64` kernel. But now installation of the
`linux-image-6.4.0-1-amd64:amd64` kernel encounters problems when dkms
tries to build the dkms package.

More specifically I get the following error:

dkms: running auto installation service for kernel 6.4.0-1-amd64.
Sign command: /lib/modules/6.4.0-1-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j2 KERNELRELEASE=6.4.0-1-amd64 -C /lib/modules/6.4.0-1-amd64/build
M=/var/lib/dkms/tp_smapi/0.43/build HDAPS=1...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.4.0-1-amd64 (x86_64)
Consult /var/lib/dkms/tp_smapi/0.43/build/make.log for more information.
dkms autoinstall on 6.4.0-1-amd64/x86_64 failed for tp_smapi(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.

and `/var/lib/dkms/tp_smapi/0.43/build/make.log` says:

DKMS make.log for tp_smapi-0.43 for kernel 6.4.0-1-amd64 (x86_64)
jeu 03 aoû 2023 18:35:09 EDT
make : on entre dans le répertoire « /usr/src/linux-headers-6.4.0-1-amd64 »
CC [M] /var/lib/dkms/tp_smapi/0.43/build/thinkpad_ec.o
/bin/bash: ligne 1: x86_64-linux-gnu-gcc-13 : commande introuvable
make[1]: *** [/usr/src/linux-
headers-6.4.0-1-common/scripts/Makefile.build:257 :
/var/lib/dkms/tp_smapi/0.43/build/thinkpad_ec.o] Erreur 127
make[1]: *** Attente des tâches non terminées....
CC [M] /var/lib/dkms/tp_smapi/0.43/build/tp_smapi.o
/bin/bash: ligne 1: x86_64-linux-gnu-gcc-13 : commande introuvable
make[1]: *** [/usr/src/linux-
headers-6.4.0-1-common/scripts/Makefile.build:257 :
/var/lib/dkms/tp_smapi/0.43/build/tp_smapi.o] Erreur 127
make: *** [/usr/src/linux-headers-6.4.0-1-common/Makefile:2051 :
/var/lib/dkms/tp_smapi/0.43/build] Erreur 2
make : on quitte le répertoire « /usr/src/linux-headers-6.4.0-1-amd64 »


-- Stefan


-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable-security'), (100, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 6.1.0-7-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_CH.UTF-8, LC_CTYPE=fr_CH.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dkms depends on:
ii build-essential 12.10
ii dpkg-dev 1.21.22
ii gcc [c-compiler] 4:13.1.0-4
ii gcc-10 [c-compiler] 10.4.0-7
ii gcc-11 [c-compiler] 11.4.0-2
ii gcc-12 [c-compiler] 12.3.0-6
ii gcc-13 [c-compiler] 13.1.0-9
ii gcc-9 [c-compiler] 9.3.0-22
ii kmod 30+20230519-1
ii lsb-release 12.0-2
ii make 4.3-4.1
ii patch 2.7.6-7

Versions of packages dkms recommends:
ii fakeroot 1.32.1-1
iu linux-headers-amd64 [linux-headers-generic] 6.4.4-1
ii sudo 1.9.14p2-1

Versions of packages dkms suggests:
ii e2fsprogs 1.47.0-2
ii menu 2.1.50

-- Configuration Files:
/etc/modprobe.d/dkms.conf changed:


-- no debconf information

Stefan Monnier

unread,
Sep 12, 2023, 10:10:04 AM9/12/23
to
Ping?

Any idea what change might have caused this? It worked fine for kernel 6.1.0-7.


Stefan


Stefan Monnier [2023-08-03 18:37:23] wrote:

> Package: dkms
> Version: 3.0.11-3
> Severity: normal
>
> Dear Maintainer,
>
> My machine is running Debian testing i386 but with an amd64 kernel
> (to make better use of my 8GB of RAM). I also have `dkms` and `tp-smapi-dkms`
> installed.
>
> Until recently this worked fine and built the `tp-smapi` kernel module for
> my `amd64` kernel. But now installation of the 6.4.0-1-amd64 kernel causes

Andreas Beckmann

unread,
Sep 13, 2023, 5:00:06 PM9/13/23
to
Control: reassign -1 src:linux
Control: affects -1 + src:dkms

On Thu, 03 Aug 2023 19:13:42 -0400 Stefan Monnier <mon...@iro.umontreal.ca> wrote:
> My machine is running Debian testing i386 but with an amd64 kernel
> (to make better use of my 8GB of RAM). I also have `dkms` and `tp-smapi-dkms`
> installed.
>
> Until recently this worked fine and built the `tp-smapi` kernel module
> for my `amd64` kernel. But now installation of the
> `linux-image-6.4.0-1-amd64:amd64` kernel encounters problems when dkms
> tries to build the dkms package.
...> and `/var/lib/dkms/tp_smapi/0.43/build/make.log` says:
>
> DKMS make.log for tp_smapi-0.43 for kernel 6.4.0-1-amd64 (x86_64)
> jeu 03 aoû 2023 18:35:09 EDT
> make : on entre dans le répertoire « /usr/src/linux-headers-6.4.0-1-amd64 »
> CC [M] /var/lib/dkms/tp_smapi/0.43/build/thinkpad_ec.o
> /bin/bash: ligne 1: x86_64-linux-gnu-gcc-13 : commande introuvable
> make[1]: *** [/usr/src/linux-
> headers-6.4.0-1-common/scripts/Makefile.build:257 :
> /var/lib/dkms/tp_smapi/0.43/build/thinkpad_ec.o] Erreur 127
> make[1]: *** Attente des tâches non terminées....
> CC [M] /var/lib/dkms/tp_smapi/0.43/build/tp_smapi.o
> /bin/bash: ligne 1: x86_64-linux-gnu-gcc-13 : commande introuvable
> make[1]: *** [/usr/src/linux-
> headers-6.4.0-1-common/scripts/Makefile.build:257 :
> /var/lib/dkms/tp_smapi/0.43/build/tp_smapi.o] Erreur 127
> make: *** [/usr/src/linux-headers-6.4.0-1-common/Makefile:2051 :
> /var/lib/dkms/tp_smapi/0.43/build] Erreur 2
> make : on quitte le répertoire « /usr/src/linux-headers-6.4.0-1-amd64 »

I can reproduce that in a minimal i386 chroot with dkms installed by
running this command:

dpkg --add-architecture amd64 && apt-get update && apt-get install -yf linux-headers-amd64 && /usr/lib/dkms/dkms-autopkgtest dkms-test-dkms

This causes the installation if these (foreign) header packages and friends:

Get:1 http://ftp.de.debian.org/debian unstable/main i386 libelf1 i386 0.189-4 [180 kB]
Get:2 http://ftp.de.debian.org/debian unstable/main i386 linux-compiler-gcc-13-x86 i386 6.4.13-1 [676 kB]
Get:3 http://ftp.de.debian.org/debian unstable/main i386 linux-headers-6.4.0-4-common all 6.4.13-1 [9997 kB]
Get:4 http://ftp.de.debian.org/debian unstable/main i386 linux-kbuild-6.4.0-4 i386 6.4.13-1 [967 kB]
Get:5 http://ftp.de.debian.org/debian unstable/main amd64 linux-headers-6.4.0-4-amd64 amd64 6.4.13-1 [1214 kB]
Get:6 http://ftp.de.debian.org/debian unstable/main amd64 linux-headers-amd64 amd64 6.4.13-1 [1416 B]

and dkms fails with

DKMS make.log for dkms_test-1.0 for kernel 6.4.0-4-amd64 (x86_64)
Wed Sep 13 20:27:19 UTC 2023
make: Entering directory '/usr/src/linux-headers-6.4.0-4-amd64'
CC [M] /var/lib/dkms/dkms_test/1.0/build/dkms_test.o
/bin/sh: 1: x86_64-linux-gnu-gcc-13: not found
make[1]: *** [/usr/src/linux-headers-6.4.0-4-common/scripts/Makefile.build:257: /var/lib/dkms/dkms_test/1.0/build/dkms_test.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make: *** [/usr/src/linux-headers-6.4.0-4-common/Makefile:2057: /var/lib/dkms/dkms_test/1.0/build] Error 2
make: Leaving directory '/usr/src/linux-headers-6.4.0-4-amd64'

since the wrong package: linux-compiler-gcc-13-x86
is isntalled.


Andreas

PS: I'll add this foreign arch module build to the dkms autopkgtest

Stefan Monnier

unread,
Sep 14, 2023, 12:40:05 PM9/14/23
to
> since the wrong package: linux-compiler-gcc-13-x86
> is isntalled.

Thanks... so this prompted me to dig again into the problem and this
time I found a workaround which consist in installing
`gcc-13-x86-64-linux-gnu` (which I found simply via `apt-file search
/usr/bin/x86_64-linux-gnu-gcc-13`. Not sure why it didn't occur to me
to try that earlier).

Hopefully someone here has an idea how this package should be
(automatically) brought in (and replaced when upgrading to a newer
version of GCC).


Stefan
0 new messages