lkml.org 
[lkml]   [2023]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Rust for linux build error due to Clang (bindgen) version
On Tue, Jul 4, 2023 at 11:06 AM Yuta Hayama <hayama@lineo.co.jp> wrote:
>
> I am a beginner in Rust and LLVM, so sorry if this is a rudimentary question.

No need to apologize!

> But I think this patch is still in the rust-dev branch of the rust-for-linux
> tree and has not been merged into the mainline. The current mainline kernel
> seems to have a issue where if the Clang is too new (16 or later), the build
> fails even though `make rustavailable` passes.

The upgrade to `bindgen` will be merged after the merge window is over.

> Does this mean we need something like max-tool-version.sh? But that might be
> a bit silly... If such "error occurs because the tool is too new" is repeated
> in the future, I feel that it is necessary to check not only the lower limit of
> the tool version, but also the upper limit.

`make rustavailable` already warns for "too new" versions for `rustc`
and `bindgen`. We could add something like that (as error or warning)
for `libclang` too, but that particular issue goes away with the
upgrade in place, so (at least for mainline) it is OK.

Cheers,
Miguel

\
 
 \ /
  Last update: 2023-07-04 20:30    [W:0.056 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site