Re: [PATCH] rust: arch:um: Fix building 32-bit UML with GCC
Miguel Ojeda <[email protected]>
| Newsgroups | gmane.linux.uml.devel,gmane.linux.kernel.rust,gmane.linux.kernel |
|---|---|
| Message-ID | <CANiq72m_wJuy6XyPpZ8+BrF_kQTDH8bST2=C1-vcNcKGN4S-2A@mail.gmail.com> |
On Sat, Apr 25, 2026 at 5:42 AM David Gow <[email protected]> wrote: > > 32-bit UML builds can be configured either by setting CONFIG_64BIT=n or > with SUBARCH=i386. Both work with Rust-for-Linux when clang is the > compiler, but when SUBARCH=i386, we don't set a bindgen target correctly if > gcc is the compiler. > > Add the appropriate bindgen target configuration for i386, as is done in > Makefile.clang. > > Fixes: ab0f4cedc355 ("arch: um: rust: Add i386 support for Rust") > Signed-off-by: David Gow <[email protected]> Applied to `rust-fixes` -- thanks! [ For reference, the errors look like: BINDGEN rust/bindings/bindings_generated.rs error: unsupported option '-mno-sse' for target '' ... error: unknown target triple 'unknown' panicked at .../bindgen-0.72.1/ir/context.rs:562:15: libclang error; possible causes include: ... - Miguel ] [ Added space in title. - Miguel ] (I left the comment as-is to keep the match from `Makefile.clang`). Cheers, Miguel