[Bug 1993183] Re: NEW SRU rustc linux kernel requirements
TuxInvader
1993183 at bugs.launchpad.net
Fri Apr 14 08:47:44 UTC 2023
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:
***
*** 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....
** Patch added: "modifications to annotations file"
https://bugs.launchpad.net/ubuntu/+source/rustc-1.62/+bug/1993183/+attachment/5663937/+files/rust-samples.patch
--
You received this bug notification because you are a member of Ubuntu
Package Archive Administrators, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1993183
Title:
NEW SRU rustc linux kernel requirements
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-bindgen-0.56/+bug/1993183/+subscriptions
More information about the ubuntu-archive
mailing list