From: Greg KH <gregkh@linuxfoundation.org>
To: rust-for-linux@vger.kernel.org
Subject: ABI mismatch build error for 6.17.y and rustc 1.91.0
Date: Tue, 4 Nov 2025 14:27:06 +0900 [thread overview]
Message-ID: <2025110452-diligence-share-98d3@gregkh> (raw)
My laptop just upgraded rustc to 1.91.0 and now I get the following
build error in 6.17.y when doing a 'allmodconfig' build:
RUSTDOC TK rust/kernel/lib.rs
error: mixing `-Zsanitizer` will cause an ABI mismatch in crate `kernel`
--> rust/kernel/lib.rs:3:1
|
3 | //! The `kernel` crate.
| ^
|
= help: the `-Zsanitizer` flag modifies the ABI so Rust crates compiled with different values of this flag cannot be used together safely
= note: unset `-Zsanitizer` in this crate is incompatible with `-Zsanitizer=kernel-address` in dependency `core`
= help: set `-Zsanitizer=kernel-address` in this crate or unset `-Zsanitizer` in `core`
= help: if you are sure this will not cause problems, you may use `-Cunsafe-allow-abi-mismatch=sanitizer` to silence this error
I don't see that on Linus's branch, but maybe I don't have the same
build options enabled there. Is 6.17.y missing a patch that is in
6.18-rc to resolve this that I just can't seem to find?
thanks,
greg k-h
next reply other threads:[~2025-11-04 5:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-04 5:27 Greg KH [this message]
2025-11-04 7:07 ` ABI mismatch build error for 6.17.y and rustc 1.91.0 Dirk Behme
2025-11-04 7:39 ` Greg KH
2025-11-04 10:39 ` Miguel Ojeda
2025-11-04 14:26 ` Greg KH
2025-11-04 15:10 ` Miguel Ojeda
2025-11-08 5:28 ` Greg KH
2025-11-09 17:31 ` Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2025110452-diligence-share-98d3@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=rust-for-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox