Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f

From: A FreeBSD User <freebsd_at_walstatt-de.de>
Date: Sun, 11 Oct 2026 15:52:45 UTC
Am Tage des Herren Sun, 11 Oct 2026 04:44:52 -0700
David Wolfskill <david@catwhisker.org> schrieb:

> On laptops, I have (e.g.):
> g1-119(16.0-C)[3] grep '^PORT' /etc/src.conf
> PORTS_MODULES+=graphics/drm-66-kmod
> PORTS_MODULES+=graphics/gpu-firmware-amd-kmod
> PORTS_MODULES+=graphics/gpu-firmware-intel-kmod
> 
> so those kmods get rebuilt whenever the kernel is rebuilt (nominally,
> daily).
> 
> This is normally routine (aka, "boring"); today, it was not:
> 
> ...
> --- dma-resv.o ---
> In file included from /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/common/ports
> /graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_14/drivers/dma-buf/dma-resv.c:36
> :
> In file included from /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/common/ports
> /graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_14/linuxkpi/bsd/include/linux/dm
> a-resv.h:42:
> In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/ww_mutex
> .h:34:
> In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/mutex.h:
> 37:
> /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:33:10: fatal error:
> 'opt_linuxkpi.h' file not found 33 | #include "opt_linuxkpi.h"
>       |          ^~~~~~~~~~~~~~~~
> --- dma-fence-chain.o ---
> ....
> 
> That was the first failure I found in the build typescript; things ...
> did not improve after that. :-}
> 
> The machines were running (e.g.):
> 
> g1-119(16.0-C)[4] uname -a
> FreeBSD g1-119.catwhisker.org 16.0-CURRENT FreeBSD 16.0-CURRENT #51
> main-n290014-7a48c3fd3e6e: Sat Oct 10 10:58:16 UTC 2026
> root@g1-119.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64
> 
> and I had updated sources to main-n290042-9f0432041b8f; the ports tree
> is at main-n770945-8a12a317c944 and all installed ports are up-to-date.
> 
> I did not see a problem when I updated the machines from
> stable/15-n285944-179dfe41bcfe to stable/15-n285972-63e5c83e8db3
> earlier today (which also updated the same kmods, but in a stable/15
> environment).
> 
> Peace,
> david

Hello,

same here on CURRENT with graphics/drm-621-kmod.

This seems du to recently updated linuxKPI.

Kind regards,

oh



-- 

A FreeBSD user