Thread View: muc.lists.freebsd.current
7 messages
7 total messages
Started by David Wolfskill
Sun, 11 Oct 2026 11:44
drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: David Wolfskill
Date: Sun, 11 Oct 2026 11:44
Date: Sun, 11 Oct 2026 11:44
86 lines
5690 bytes
5690 bytes
--RvzeqjNpR2wurG0r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On laptops, I have (e.g.):
g1-119(16.0-C)[3] grep '^PORT' /etc/src.conf
PORTS_MODULES+=3Dgraphics/drm-66-kmod
PORTS_MODULES+=3Dgraphics/gpu-firmware-amd-kmod
PORTS_MODULES+=3Dgraphics/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:
=2E..
--- 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=
=2Ec: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/lin=
ux/dm
a-resv.h:42:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/ww_=
mutex
=2Eh:34:
In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/mut=
ex.h:
37:
/usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:33:10: fatal err=
or: 'opt_linuxkpi.h' file not found
33 | #include "opt_linuxkpi.h"
| ^~~~~~~~~~~~~~~~
--- dma-fence-chain.o ---
=2E...
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-n2=
90014-7a48c3fd3e6e: Sat Oct 10 10:58:16 UTC 2026 root@g1-119.catwhisker=
=2Eorg:/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
--=20
David H. Wolfskill david@catwhisker.org
See https://www.catwhisker.org/~david/publickey.gpg for my public key.
--RvzeqjNpR2wurG0r
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iPEEARYKAJkWIQRCec5RsK7Enudh3yGB9MJ9AwUELQUCast2tBsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwyLDNfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMu
b3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQyNzlDRTUxQjBBRUM0OUVFNzYxREYy
MTgxRjRDMjdEMDMwNTA0MkQACgkQgfTCfQMFBC2rJQD/VsSvMhMouEVrc2+Kbx69
WBgYW+/qcePSdLB8R/ri38oBAKJOoi/yp4GleG15oTout2LI69NZwYuN5pGf7Dfw
eJQJ
=YzGW
-----END PGP SIGNATURE-----
--RvzeqjNpR2wurG0r--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: A FreeBSD User
Date: Sun, 11 Oct 2026 15:52
Date: Sun, 11 Oct 2026 15:52
100 lines
6734 bytes
6734 bytes
--Sig_/vq.54aiOZTH7Fvxhx1OENAZ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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+=3Dgraphics/drm-66-kmod > PORTS_MODULES+=3Dgraphics/gpu-firmware-amd-kmod > PORTS_MODULES+=3Dgraphics/gpu-firmware-intel-kmod >=20 > so those kmods get rebuilt whenever the kernel is rebuilt (nominally, > daily). >=20 > This is normally routine (aka, "boring"); today, it was not: >=20 > ... > --- dma-resv.o --- > In file included from /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/commo= n/ports > /graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_14/drivers/dma-buf/dma-re= sv.c:36 > : > In file included from /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/commo= n/ports > /graphics/drm-66-kmod/work/drm-kmod-drm_v6.6.25_14/linuxkpi/bsd/include/l= inux/dm > a-resv.h:42: > In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/w= w_mutex > .h:34: > In file included from /usr/src/sys/compat/linuxkpi/common/include/linux/m= utex.h: > 37: > /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:33:10: fatal e= rror: > 'opt_linuxkpi.h' file not found 33 | #include "opt_linuxkpi.h" > | ^~~~~~~~~~~~~~~~ > --- dma-fence-chain.o --- > .... >=20 > That was the first failure I found in the build typescript; things ... > did not improve after that. :-} >=20 > The machines were running (e.g.): >=20 > 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 >=20 > 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. >=20 > 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). >=20 > Peace, > david Hello, same here on CURRENT with graphics/drm-621-kmod. This seems du to recently updated linuxKPI. Kind regards, oh --=20 A FreeBSD user --Sig_/vq.54aiOZTH7Fvxhx1OENAZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iJEEARYKADkWIQRQheDybVktG5eW/1Kxzvs8OqokrwUCasuw6BsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDMACgkQsc77PDqqJK//ggD9GJl1MfJH62A5IKpdUJpV ZS7d1hWvxo8hkTIG13xAz3sA/3/vJF5sa98pkUHsJKqeiQpPxaCjerfBpdhKLtHE 9dAB =taKa -----END PGP SIGNATURE----- --Sig_/vq.54aiOZTH7Fvxhx1OENAZ-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: Nuno Teixeira
Date: Sun, 11 Oct 2026 21:07
Date: Sun, 11 Oct 2026 21:07
51 lines
4428 bytes
4428 bytes
--00000000000040f02a065d96f980 Content-Type: text/plain; charset="UTF-8" Hello, 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" > | ^~~~~~~~~~~~~~~~ I've reported today at https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/082012.html Cheers, -- Nuno Teixeira FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org --00000000000040f02a065d96f980 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div>Hello,<div><br><div class=3D"gm= ail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex"> 37:<br> /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h:33:10: fatal err= or: 'opt_linuxkpi.h' file not found<br> =C2=A0 =C2=A033 | #include "opt_linuxkpi.h"<br> =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~~~~~~~~~~~~~</= blockquote></div><br></div><div>I've reported today at=C2=A0<a href=3D"= https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/082012.= html">https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/0= 82012.html</a><br><br></div><div>Cheers,</div><div><br></div><div><span cla= ss=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail= _signature"><div dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</fo= nt></div><div><div><font color=3D"#888888"> FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div></div></div> --00000000000040f02a065d96f980-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: A FreeBSD User
Date: Mon, 12 Oct 2026 15:21
Date: Mon, 12 Oct 2026 15:21
54 lines
5199 bytes
5199 bytes
--Sig_/0Pxws4jOU.bXYEu4pYNPNYk Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Tage des Herren Sun, 11 Oct 2026 22:07:36 +0100 Nuno Teixeira <eduardo@freebsd.org> schrieb: > Hello, >=20 > 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" > > | ^~~~~~~~~~~~~~~~ =20 >=20 >=20 > I've reported today at > https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/08201= 2.html >=20 > Cheers, >=20 Ups. I did also for port graphics/drm-612-kmod a few minutes ago. The heade= r file in question is simply not in the most recent source tree ... very strange ;-) Kind regards, oh --=20 A FreeBSD user --Sig_/0Pxws4jOU.bXYEu4pYNPNYk Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iJEEARYKADkWIQRQheDybVktG5eW/1Kxzvs8OqokrwUCasz7HhsUgAAAAAAEAA5t YW51MiwyLjUrMS4xMiwyLDMACgkQsc77PDqqJK+8+wD+KnqAq0pg9muUoVPihAG6 dykbFU6eomcDZEJNJ2THxO8A/Rvj4p3tq2J/mJd5MZ1wouYuFwBxALkYhtJF8pC3 kp8F =KRw0 -----END PGP SIGNATURE----- --Sig_/0Pxws4jOU.bXYEu4pYNPNYk-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: Rainer Hurling
Date: Mon, 12 Oct 2026 17:15
Date: Mon, 12 Oct 2026 17:15
47 lines
5620 bytes
5620 bytes
Am 12.10.26 um 17:21 schrieb A FreeBSD User: > Am Tage des Herren Sun, 11 Oct 2026 22:07:36 +0100 > Nuno Teixeira <eduardo@freebsd.org> schrieb: > >> Hello, >> >> 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" >>> | ^~~~~~~~~~~~~~~~ >> >> >> I've reported today at >> https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/082012.html >> >> Cheers, >> > > Ups. I did also for port graphics/drm-612-kmod a few minutes ago. The header file in question > is simply not in the most recent source tree ... very strange ;-) That happens to me, too. I can no longer compile the drm-kmods on the very latest CURRENT version. As far as I can tell, there have recently been two commits[1][2] in the base repository that contain changes, including some to opt_linuxkpi.h: [1] https://freshbsd.org/freebsd/src/commit/bbfd52dcbeb7b6e540220b3b24b664df6d200200 [2] https://freshbsd.org/freebsd/src/commit/9820afb99e6fdc471cb820f321530c52ed2c31ac Regards, Rainer > Kind regards, > > oh > -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: Tomoaki AOKI
Date: Mon, 12 Oct 2026 17:55
Date: Mon, 12 Oct 2026 17:55
74 lines
5945 bytes
5945 bytes
On Mon, 12 Oct 2026 17:21:39 +0200 A FreeBSD User <freebsd@walstatt-de.de> wrote: > Am Tage des Herren Sun, 11 Oct 2026 22:07:36 +0100 > Nuno Teixeira <eduardo@freebsd.org> schrieb: > > > Hello, > > > > 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" > > > | ^~~~~~~~~~~~~~~~ > > > > > > I've reported today at > > https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/082012.html > > > > Cheers, > > > > Ups. I did also for port graphics/drm-612-kmod a few minutes ago. The header file in question > is simply not in the most recent source tree ... very strange ;-) Good point. It SHOULDN'T be under /usr/src/, but under /usr/obj/, as it's generated on "kernel build time". This means, it shouldn't exist unless you built kernel yourself locally. Thus, I believe it SHOULDN'T be required for out-of-tree kmods (in ports or in the wild). If it's REALLY mandatory for out-of-tree kmod builds and fix in out-of-tree kmod side, error message to request local kernel builds first should be needed. If not, guards for #include NOT to be included except for kernel builds in src side would be the best fix. IIRC, it's the way usually done for this kind of situations, but I'm not enough sure if opt_linuxkpi.h is really mandatory or not for out-of-tree kmod builds. Note that, as far as I could confirm, there are 3 headers attempting to include opt_linuxkpi.h in offending commits (at least). And LINUXKPI_DEBUG could be appropreate to be used for safeguard? /usr/src/sys/compat/linuxkpi/common/include/linux/spinlock.h /usr/src/sys/compat/linuxkpi/common/include/linux/kconfig.h /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h Regards. > > Kind regards, > > oh > > -- > > A FreeBSD user -- Tomoaki AOKI <junchoon@dec.sakura.ne.jp> -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
Author: Bjoern A. Zeeb
Date: Mon, 12 Oct 2026 18:13
Date: Mon, 12 Oct 2026 18:13
81 lines
4921 bytes
4921 bytes
On Tue, 13 Oct 2026, Tomoaki AOKI wrote: > On Mon, 12 Oct 2026 17:21:39 +0200 > A FreeBSD User <freebsd@walstatt-de.de> wrote: > >> Am Tage des Herren Sun, 11 Oct 2026 22:07:36 +0100 >> Nuno Teixeira <eduardo@freebsd.org> schrieb: >> >>> Hello, >>> >>> 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" >>>> | ^~~~~~~~~~~~~~~~ >>> >>> >>> I've reported today at >>> https://lists.freebsd.org/archives/dev-commits-src-all/2026-October/082012.html >>> >>> Cheers, >>> >> >> Ups. I did also for port graphics/drm-612-kmod a few minutes ago. The header file in question >> is simply not in the most recent source tree ... very strange ;-) > > Good point. > > It SHOULDN'T be under /usr/src/, but under /usr/obj/, as it's generated > on "kernel build time". > > This means, it shouldn't exist unless you built kernel > yourself locally. > > Thus, I believe it SHOULDN'T be required for out-of-tree > kmods (in ports or in the wild). > > If it's REALLY mandatory for out-of-tree kmod builds > and fix in out-of-tree kmod side, error message to request > local kernel builds first should be needed. > > If not, guards for #include NOT to be included except for > kernel builds in src side would be the best fix. > > IIRC, it's the way usually done for this kind of situations, > but I'm not enough sure if opt_linuxkpi.h is really mandatory > or not for out-of-tree kmod builds. > > Note that, as far as I could confirm, there are 3 headers > attempting to include opt_linuxkpi.h in offending commits > (at least). And LINUXKPI_DEBUG could be appropreate to be > used for safeguard? > > /usr/src/sys/compat/linuxkpi/common/include/linux/spinlock.h > /usr/src/sys/compat/linuxkpi/common/include/linux/kconfig.h > /usr/src/sys/compat/linuxkpi/common/include/linux/kernel.h The sole problem here is that drm-kmod is handrolling stuff instead of using the kmod,mk provided defines. Apply the changes from the pull request and what's in drm-kmod master already and it'll build along with a kernel, as a standalone git checkout or from ports. If there's a 4th method, please let me know. As a plus (once cleanup gets done beyond initial repair), in the future this kind of breakage shouldn't happen anymore and there's going to be a single place to track SRCS+= and CFLAGS+= dependencies needed to use LinuxKPI. So yes, please see https://github.com/freebsd/drm-kmod/pull/524 -- For there shall arise false Christs, and false prophets, and shall shew great signs and wonders; insomuch that, if it were possible, they shall deceive the very elect. Behold, I have told you before. [Mat. 24:24-25] -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads