I would like to confirm that I can build the mainline kernel on jammy with the rust/bindgen packages in the proposed repository. However the kernel seems to have rust disabled due to incompatible configuration options (CONFIG_MODVERSIONS, CONFIG_DEBUG_INFO_BTF, and CONFIG_HAVE_GCC_PLUGINS).
If I patch debian.master/config/annotations (see attached) to disable those options, and enable RUST and the RUST sample code, then the build fails with:
***
*** Rust compiler 'rustc-1.62' is too new. This may or may not work.
*** Your version: 1.62.1
*** Expected version: 1.62.0
***
BINDGEN rust/bindings/bindings_generated.rs
BINDGEN rust/bindings/bindings_helpers_generated.rs
UPD rust/target.json
RUSTC L rust/core.o
error: '-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own peril for benchmarking purpose only with '-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang', err: true
thread 'main' panicked at 'Unable to generate bindings: ()', src/main.rs:54:36
stack backtrace:
0: 0x55dafce519ec - <unknown>
1: 0x55dafce6ceae - <unknown>
2: 0x55dafce315f1 - <unknown>
3: 0x55dafce35ff5 - <unknown>
4: 0x55dafce35c7a - <unknown>
5: 0x55dafce364fc - <unknown>
6: 0x55dafce525a7 - <unknown>
7: 0x55dafce51c84 - <unknown>
8: 0x55dafce361c2 - <unknown>
9: 0x55dafcc5abd3 - <unknown>
10: 0x55dafcc5acb3 - <unknown>
11: 0x55dafcc799ec - <unknown>
12: 0x55dafcc65854 - <unknown>
13: 0x55dafcc7ad03 - <unknown>
14: 0x55dafcc65d49 - <unknown>
15: 0x55dafce30f81 - <unknown>
16: 0x55dafcc65b08 - <unknown>
17: 0x7ff26d448d90 - <unknown>
18: 0x7ff26d448e40 - __libc_start_main
19: 0x55dafcc5ae25 - <unknown>
20: 0x0 - <unknown>
make[3]: *** [/home/source/rust/Makefile:310: rust/bindings/bindings_helpers_generated.rs] Error 1
make[3]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs'
make[3]: *** Waiting for unfinished jobs....
Hi all,
I would like to confirm that I can build the mainline kernel on jammy with the rust/bindgen packages in the proposed repository. However the kernel seems to have rust disabled due to incompatible configuration options (CONFIG_ MODVERSIONS, CONFIG_ DEBUG_INFO_ BTF, and CONFIG_ HAVE_GCC_ PLUGINS) .
If I patch debian. master/ config/ annotations (see attached) to disable those options, and enable RUST and the RUST sample code, then the build fails with:
*** bindings_ generated. rs bindings_ helpers_ generated. rs auto-var- init=zero' hasn't been enabled; enable it at your own peril for benchmarking purpose only with '-enable- trivial- auto-var- init-zero- knowing- it-will- be-removed- from-clang' , err: true source/ rust/Makefile: 310: rust/bindings/ bindings_ helpers_ generated. rs] Error 1 bindings_ helpers_ generated. rs'
*** Rust compiler 'rustc-1.62' is too new. This may or may not work.
*** Your version: 1.62.1
*** Expected version: 1.62.0
***
BINDGEN rust/bindings/
BINDGEN rust/bindings/
UPD rust/target.json
RUSTC L rust/core.o
error: '-ftrivial-
thread 'main' panicked at 'Unable to generate bindings: ()', src/main.rs:54:36
stack backtrace:
0: 0x55dafce519ec - <unknown>
1: 0x55dafce6ceae - <unknown>
2: 0x55dafce315f1 - <unknown>
3: 0x55dafce35ff5 - <unknown>
4: 0x55dafce35c7a - <unknown>
5: 0x55dafce364fc - <unknown>
6: 0x55dafce525a7 - <unknown>
7: 0x55dafce51c84 - <unknown>
8: 0x55dafce361c2 - <unknown>
9: 0x55dafcc5abd3 - <unknown>
10: 0x55dafcc5acb3 - <unknown>
11: 0x55dafcc799ec - <unknown>
12: 0x55dafcc65854 - <unknown>
13: 0x55dafcc7ad03 - <unknown>
14: 0x55dafcc65d49 - <unknown>
15: 0x55dafce30f81 - <unknown>
16: 0x55dafcc65b08 - <unknown>
17: 0x7ff26d448d90 - <unknown>
18: 0x7ff26d448e40 - __libc_start_main
19: 0x55dafcc5ae25 - <unknown>
20: 0x0 - <unknown>
make[3]: *** [/home/
make[3]: *** Deleting file 'rust/bindings/
make[3]: *** Waiting for unfinished jobs....