Article View: muc.lists.freebsd.current
Article #20Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e -> main-n290042-9f0432041b8f
From: 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
Technical Details
Message-ID:
<20261013025525.04e2cac18270c17ec4ab765c@dec.sakura.ne.jp>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<> <20261012172109.1cc2bea9@thor.sb211.local>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Newsgroups: muc.lists.freebsd.current
Subject: Re: drm-66-kmod build fail during main-n290014-7a48c3fd3e6e ->
main-n290042-9f0432041b8f
Date: Tue, 13 Oct 2026 02:55:25 +0900
Organization: Junchoon corps
Sender: owner-freebsd-current@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <20261013025525.04e2cac18270c17ec4ab765c@dec.sakura.ne.jp>
References: <> <20261012172109.1cc2bea9@thor.sb211.local>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
logging-data="42864"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1791827778; h=from:from:sender:sender:reply-to:subject:subject:date:date:
message-id:message-id:to:to:cc:cc:mime-version:mime-version:
content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:list-id:list-help:
list-owner:list-unsubscribe:list-subscribe:list-post;
bh=YVrcGFRuxNSqPxOe30b+dRcVH2Gj//1i39YkK+sKhss=;
b=P5dDB5G4fkiHMEa4ACdvYivktCouRHp3NjYbtpzrpcPdo44Lsza4s4Ptt6bnfDUWmJgnR/
Ug0uzDwkZPjHSm4Nmgn4NEsnphtJFznKf5BdkqUAO11uwbM/C7q9NUlE34hc0r11bVeteH
3/Y5mxjjH3EyHGsr6TABiNrHWkp1AiiB4uJV22+v1dYmHBemlV/Rm5GpVgf7NDPx+V48ea
Dyru0aoUtEHTiHKIVDo601hdQ0cWtLEqS8jjkuJBooPKgTKzr2rMgr0HWS99IycqpvOKrI
5qD0ZFkIsIA0nRdDEdGs6XfrSCrpQ9GKGJgO6mYR3n4YuecxolGfiVhFDa3Arg==
X-Original-To: current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
dkim=fail ("headers rsa verify failed") header.d=dec.sakura.ne.jp header.s=s2405 header.b=sDay7fee;
spf=pass (mx1.freebsd.org: domain of junchoon@dec.sakura.ne.jp designates 153.125.133.21 as permitted sender) smtp.mailfrom=junchoon@dec.sakura.ne.jp;
dmarc=pass (policy=none) header.from=dec.sakura.ne.jp
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp;
s=s2405; t=1791827727;
bh=bInTyB36riOuvivLwIyj2PSr6XVUUUUnwTjCbvWu5Nc=;
h=Date:From:To:Cc:Subject:In-Reply-To:References;
b=sDay7fee3vZo3wvLVMeBrChuQXd63z5iGL/SkYiqZAzRDBMC4R6S151KVJYCO+QZr
AxpEL4mmgWth1ih7buRKpFBxdG67wV/smuyGR/z88QgEXzgPTLxWWwmL8thfRsRaMR
QqJvl5+J7rxLSBU8avVwYLBoiwlGZcCIx3EyEb1M=
In-Reply-To: <20261012172109.1cc2bea9@thor.sb211.local>
Precedence: list
X-Spamd-Bar: ++
X-Spamd-Result: default: False [2.30 / 15.00];
SUSPICIOUS_URL_IN_SUSPICIOUS_MESSAGE(1.00)[];
MV_CASE(0.50)[];
URIBL_RED(0.50)[dec.sakura.ne.jp:mid,dec.sakura.ne.jp:from_mime,dec.sakura.ne.jp:from_smtp,dec.sakura.ne.jp:email];
ONCE_RECEIVED(0.20)[];
HAS_ANON_DOMAIN(0.10)[];
MIME_GOOD(-0.10)[text/plain];
BAD_REP_POLICIES(0.10)[];
DMARC_POLICY_ALLOW(0.00)[dec.sakura.ne.jp,none];
DKIM_TRACE(0.00)[dec.sakura.ne.jp:-];
R_DKIM_REJECT(0.00)[dec.sakura.ne.jp:s=s2405];
RCVD_TLS_LAST(0.00)[];
HAS_ORG_HEADER(0.00)[];
ARC_NA(0.00)[];
TO_DN_SOME(0.00)[];
FROM_HAS_DN(0.00)[];
RCVD_COUNT_ONE(0.00)[1];
MIME_TRACE(0.00)[0:+];
MLMMJ_DEST(0.00)[current@freebsd.org];
TO_MATCH_ENVRCPT_SOME(0.00)[];
FROM_EQ_ENVFROM(0.00)[];
DMARC_POLICY_ALLOW_WITH_FAILURES(0.00)[];
MID_RHS_MATCH_FROM(0.00)[];
RCVD_VIA_SMTP_AUTH(0.00)[];
R_SPF_ALLOW(0.00)[+ip4:153.125.133.16/28];
ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP];
RCPT_COUNT_FIVE(0.00)[5]
X-Rspamd-Queue-Id: 4j3Q9q4h08z4YW7
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes