Depmod: WARNING: could not open modules.builtin.modinfo

Updating a system just now, I get the following warning in the terminal. I don’t recall having seen this before. Is anyone else seeing this as well? Do you know why is that happening?

depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.T6W0XD/root/lib/modules/5.18.9-zen1-1-zen: No such file or directory

full terminal output
 Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (18)                    Old Version    New Version    Net Change  Download Size

extra/dmidecode                 3.3-1          3.4-1            0.01 MiB       0.07 MiB
extra/exempi                    2.6.1-1        2.6.2-1          0.02 MiB       0.52 MiB
extra/gjs                       2:1.72.0-1     2:1.72.0-2      -0.01 MiB       0.42 MiB
extra/gnome-shell               1:42.2-1       1:42.3-1         0.00 MiB       1.70 MiB
extra/gnome-shell-extensions    42.2-1         42.3-1           0.00 MiB       0.16 MiB
extra/gtk-update-icon-cache     1:4.6.5-1      1:4.6.6-1        0.00 MiB       0.02 MiB
extra/gtk4                      1:4.6.5-1      1:4.6.6-1        0.01 MiB       8.65 MiB
core/kmod                       29-3           30-1             0.00 MiB       0.12 MiB
community/libmfx                22.4.2-1       22.4.4-1         0.00 MiB       0.06 MiB
extra/libmtp                    1.1.19-2       1.1.20-1         0.02 MiB       0.56 MiB
extra/linux-zen                 5.18.8.zen1-1  5.18.9.zen1-1   -0.22 MiB     181.62 MiB
extra/linux-zen-headers         5.18.8.zen1-1  5.18.9.zen1-1    0.00 MiB      27.16 MiB
extra/llvm-libs                 13.0.1-6       14.0.6-1         7.82 MiB      27.55 MiB
extra/mesa                      22.1.2-1       22.1.3-1         0.00 MiB      12.62 MiB
extra/pango                     1:1.50.7-1     1:1.50.8-1       0.01 MiB       0.39 MiB
extra/webkit2gtk-4.1                           2.36.3-1        87.12 MiB      21.63 MiB
extra/xdg-desktop-portal-gnome  42.1-1         42.3-1           0.00 MiB       0.15 MiB
extra/zenity                    3.42.1-1       3.43.0-1         0.01 MiB       2.97 MiB

Total Download Size:   286.36 MiB
Total Installed Size:  683.72 MiB
Net Upgrade Size:       94.80 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 mesa-22.1.3-1-x86_64                                                                                               12.6 MiB  1570 KiB/s 00:08 [########################################################################################] 100%
 webkit2gtk-4.1-2.36.3-1-x86_64                                                                                     21.6 MiB  1837 KiB/s 00:12 [########################################################################################] 100%
 linux-zen-headers-5.18.9.zen1-1-x86_64                                                                             27.2 MiB  1971 KiB/s 00:14 [########################################################################################] 100%
 llvm-libs-14.0.6-1-x86_64                                                                                          27.5 MiB  1989 KiB/s 00:14 [########################################################################################] 100%
 gtk4-1:4.6.6-1-x86_64                                                                                               8.7 MiB  1895 KiB/s 00:05 [########################################################################################] 100%
 zenity-3.43.0-1-x86_64                                                                                              3.0 MiB  1336 KiB/s 00:02 [########################################################################################] 100%
 libmtp-1.1.20-1-x86_64                                                                                            571.0 KiB   306 KiB/s 00:02 [########################################################################################] 100%
 gnome-shell-1:42.3-1-x86_64                                                                                      1744.9 KiB   847 KiB/s 00:02 [########################################################################################] 100%
 exempi-2.6.2-1-x86_64                                                                                             534.7 KiB   303 KiB/s 00:02 [########################################################################################] 100%
 gjs-2:1.72.0-2-x86_64                                                                                             428.7 KiB   289 KiB/s 00:01 [########################################################################################] 100%
 gnome-shell-extensions-42.3-1-any                                                                                 166.1 KiB   133 KiB/s 00:01 [########################################################################################] 100%
 pango-1:1.50.8-1-x86_64                                                                                           402.5 KiB   316 KiB/s 00:01 [########################################################################################] 100%
 xdg-desktop-portal-gnome-42.3-1-x86_64                                                                            151.5 KiB   107 KiB/s 00:01 [########################################################################################] 100%
 kmod-30-1-x86_64                                                                                                  119.9 KiB  90.1 KiB/s 00:01 [########################################################################################] 100%
 libmfx-22.4.4-1-x86_64                                                                                             56.9 KiB  52.8 KiB/s 00:01 [########################################################################################] 100%
 dmidecode-3.4-1-x86_64                                                                                             69.7 KiB  64.7 KiB/s 00:01 [########################################################################################] 100%
 gtk-update-icon-cache-1:4.6.6-1-x86_64                                                                             16.3 KiB  15.3 KiB/s 00:01 [########################################################################################] 100%
 linux-zen-5.18.9.zen1-1-x86_64                                                                                    181.6 MiB  6.10 MiB/s 00:30 [########################################################################################] 100%
 Total (18/18)                                                                                                     286.4 MiB  9.61 MiB/s 00:30 [########################################################################################] 100%
(18/18) checking keys in keyring                                                                                                               [########################################################################################] 100%
(18/18) checking package integrity                                                                                                             [########################################################################################] 100%
(18/18) loading package files                                                                                                                  [########################################################################################] 100%
(18/18) checking for file conflicts                                                                                                            [########################################################################################] 100%
(18/18) checking available disk space                                                                                                          [########################################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
:: Processing package changes...
( 1/18) upgrading dmidecode                                                                                                                    [########################################################################################] 100%
( 2/18) upgrading exempi                                                                                                                       [########################################################################################] 100%
( 3/18) upgrading gjs                                                                                                                          [########################################################################################] 100%
( 4/18) upgrading pango                                                                                                                        [########################################################################################] 100%
( 5/18) upgrading gtk-update-icon-cache                                                                                                        [########################################################################################] 100%
( 6/18) upgrading llvm-libs                                                                                                                    [########################################################################################] 100%
( 7/18) upgrading mesa                                                                                                                         [########################################################################################] 100%
( 8/18) upgrading kmod                                                                                                                         [########################################################################################] 100%
( 9/18) upgrading gtk4                                                                                                                         [########################################################################################] 100%
(10/18) installing webkit2gtk-4.1                                                                                                              [########################################################################################] 100%
Optional dependencies for webkit2gtk-4.1
    geoclue: Geolocation support [installed]
    gst-plugins-good: media decoding
    gst-plugins-bad: media decoding
    gst-libav: nonfree media decoding
(11/18) upgrading zenity                                                                                                                       [########################################################################################] 100%
(12/18) upgrading gnome-shell                                                                                                                  [########################################################################################] 100%
(13/18) upgrading gnome-shell-extensions                                                                                                       [########################################################################################] 100%
(14/18) upgrading libmfx                                                                                                                       [########################################################################################] 100%
(15/18) upgrading libmtp                                                                                                                       [########################################################################################] 100%
(16/18) upgrading linux-zen                                                                                                                    [########################################################################################] 100%
(17/18) upgrading linux-zen-headers                                                                                                            [########################################################################################] 100%
(18/18) upgrading xdg-desktop-portal-gnome                                                                                                     [########################################################################################] 100%
:: Running post-transaction hooks...
(1/9) Updating udev hardware database...
(2/9) Reloading device manager configuration...
(3/9) Arming ConditionNeedsUpdate...
(4/9) Updating module dependencies...
(5/9) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: 5.18.9-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.e54yfL/root/lib/modules/5.18.9-zen1-1-zen: No such file or directory
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-zen.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: 5.18.9-zen1-1-zen
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
depmod: WARNING: could not open modules.builtin.modinfo at /tmp/mkinitcpio.T6W0XD/root/lib/modules/5.18.9-zen1-1-zen: No such file or directory
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-zen-fallback.img
==> Image generation successful
(6/9) Compiling GSettings XML schema files...
(7/9) Updating icon theme caches...
(8/9) Updating GTK4 module cache...
(9/9) Updating the desktop file MIME type cache...

It says at the end:

==> Image generation successful

so I guess things are fine but I just wonder how come that warning.

https://groups.google.com/g/linux.debian.bugs.dist/c/7hZiQYDXaiI

Seems to be related to the current version of kmod:

It seems to
be triggered when upgrading kmod (which provides depmod) to
30+20220630-1.

And downgrading to kmod 29-1+b1 makes this warning disappear.

There is a patch proposed.

2 Likes

Thanks for the info!
I appreciate it.
So hopefully it will be fixed with an update to kmod then?

2 Likes

It will probably be patched soon. As you noted, it doesn’t appear to be causing any great harm.

1 Like

No, it was all alright.
I trusted the “Image generation successful” message but of course I wondered if everything would be up and running after the reboot. And everything did!

Thanks again for the explanation and sharing the info!

1 Like

Looking at the patch, it appears that the missing file is a list of all the built-in kernel modules. The patch just creates the file, to suppress the warning that it is missing.

1 Like

I somehow “suspected” that would be about something like that seeing the following

Good that it will be addressed. Even though it wasn’t causing any issues, it is just a bit annoying to see the warning.

1 Like

https://bugs.archlinux.org/task/75218

Comment by Giancarlo Razzolini (grazzolini) - Tuesday, 05 July 2022, 13:51 GMT

The PR is merged, I’m patching it on the current package and it also should be on the next version.

2 Likes

Great!
Then soon in a repo close by!

1 Like

Patched (the patch was actually made to mkinitcpio). It’s already hit my mirror.

1 Like

Nice!
Same here:

Package (1)           Old Version  New Version  Net Change  Download Size
core/mkinitcpio       31-2         31-3           0.00 MiB       0.04 MiB

Then there are the other usual warnings but those I have learnt not to bother about:

==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.