rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* distribute linux-headers to build out-of-tree Rust modules
@ 2023-03-11 14:01 Andrea Righi
  2023-03-11 14:51 ` Geert Stappers
  2023-03-11 16:27 ` Björn Roy Baron
  0 siblings, 2 replies; 7+ messages in thread
From: Andrea Righi @ 2023-03-11 14:01 UTC (permalink / raw)
  To: rust-for-linux

Hello,

I'm trying to distribute a linux-headers package (deb) that would allow
to build out-of-tree Rust modules.

Everything looks fine, except for the following error:

error[E0461]: couldn't find crate `core` with expected target triple target-10951614936105594995
  |
  = note: the following crate versions were found:
          crate `core`, target triple target-3759196539525232825: /usr/src/linux-headers-6.2.0-16-generic/rust/libcore.rmeta

All I need to do is to "refresh" the headers by running a
"make modules_prepare" after installing my linux-headers package on my
system and then everything works perfectly.

Is this because my system, where I try to build the out-of-tree module,
has different toolchain versions (e.g., binutils) than the build host?

Any pointer/documentation to better understand how the target triple
version is determined?

Thanks,
-Andrea

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-13  1:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 14:01 distribute linux-headers to build out-of-tree Rust modules Andrea Righi
2023-03-11 14:51 ` Geert Stappers
2023-03-11 16:27 ` Björn Roy Baron
2023-03-11 20:03   ` Andrea Righi
2023-03-12 13:39     ` Vincenzo Palazzo
2023-03-12 22:08       ` Andrea Righi
2023-03-13  1:35       ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).