1
linux/Documentation/rust
Conor Dooley 33549fcf37
RISC-V: disallow gcc + rust builds
During the discussion before supporting rust on riscv, it was decided
not to support gcc yet, due to differences in extension handling
compared to llvm (only the version of libclang matching the c compiler
is supported). Recently Jason Montleon reported [1] that building with
gcc caused build issues, due to unsupported arguments being passed to
libclang. After some discussion between myself and Miguel, it is better
to disable gcc + rust builds to match the original intent, and
subsequently support it when an appropriate set of extensions can be
deduced from the version of libclang.

Closes: https://lore.kernel.org/all/20240917000848.720765-2-jmontleo@redhat.com/ [1]
Link: https://lore.kernel.org/all/20240926-battering-revolt-6c6a7827413e@spud/ [2]
Fixes: 70a57b2472 ("RISC-V: enable building 64-bit kernels with rust support")
Cc: stable@vger.kernel.org
Reported-by: Jason Montleon <jmontleo@redhat.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20241001-playlist-deceiving-16ece2f440f5@spud
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-10-25 06:18:37 -07:00
..
arch-support.rst RISC-V: disallow gcc + rust builds 2024-10-25 06:18:37 -07:00
coding-guidelines.rst docs: rust: remove unintended blockquote in Coding Guidelines 2024-08-21 13:29:36 +02:00
general-information.rst docs: rust: include other expressions in conditional compilation section 2024-09-05 22:45:01 +02:00
index.rst docs: rust: improve main page introducing a "Code documentation" section 2024-08-25 18:37:40 +02:00
quick-start.rst Rust changes for v6.12 2024-09-25 10:25:40 -07:00
testing.rst kbuild: rust: remove now-unneeded rusttest custom sysroot handling 2024-07-08 22:39:39 +02:00