`rustc` executable missing from sdk
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello all! I am working on integrating my application CI pipeline with the SDK generated by our yocto CI pipeline. So far, I have been able to build an SDK with cargo included by adding the following TOOLCHAIN_HOST_TASK assignment to our local.conf:
``` TOOLCHAIN_HOST_TASK:append = " nativesdk-cargo" ```
and building the SDK via
``` bitbake -k -c populate_sdk <our image name> ```
However, when our application CI picks up the SDK, it looks like it is missing the underlying rustc executable; a cargo build command fails with:
``` error: could not execute process `rustc -vV` (never executed) ```
I've manually sourced the SDK environment in a shell and confirmed that which does pick up cargo but not rustc:
``` $ which cargo /<SDK installation path>/.sdk/sysroots/x86_64-pokysdk-linux/usr/bin/cargo $ which rustc $ ```
Has anyone been able to populate the SDK on kirkstone with a working rustc/cargo toolchain?
I've also tried comparing langdale and kirkstone; it looks like on langdale some work was done to add nativesdk support to the rust recipe itself (via BBCLASSEXTEND in rust-target.inc). I've been trying to mirror those changes via .bbappend files but haven't quite figured out what strings to pull.
I'd be happy to provide any additional information that'd help triage.
Thanks!
- Danny
Quoted 39 lines · Danny Hadley via lists.yoctoproject.org
[kirkstone]
rustcexecutable missing from sdkHello all! I am working on integrating my application CI pipeline with the SDK generated by our yocto CI pipeline. So far, I have been able to build an SDK with cargo included by adding the following
TOOLCHAIN_HOST_TASKassignment to our local.conf:``` TOOLCHAIN_HOST_TASK:append = " nativesdk-cargo" ```and building the SDK via
``` bitbake -k -c populate_sdk <our image name> ```However, when our application CI picks up the SDK, it looks like it is missing the underlying
rustcexecutable; acargo buildcommand fails with:``` error: could not execute process `rustc -vV` (never executed) ```I've manually sourced the SDK environment in a shell and confirmed that
whichdoes pick up cargo but notrustc:``` $ which cargo /<SDK installation path>/.sdk/sysroots/x86_64-pokysdk-linux/usr/bin/cargo $ which rustc $ ```
Quoted 6 lines
Has anyone been able to populate the SDK on kirkstone with a working rustc/cargo toolchain?
I've also tried comparing langdale and kirkstone; it looks like on langdale some work was done to add
nativesdksupport to the rust recipe itself (via BBCLASSEXTEND in rust-target.inc). I've been trying to mirror those changes via.bbappendfiles but haven't quite figured out what strings to pull.I'd be happy to provide any additional information that'd help triage.
Hi Danny,
Sorry for the long delay in replying. Did you ever get this to work?
Sundeep is CCed and he can help a bit if not since I'm away next week.
../Randy
Quoted 13 lines
Thanks!
- Danny
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59310):https://lists.yoctoproject.org/g/yocto/message/59310 Mute This Topic:https://lists.yoctoproject.org/mt/97270242/3616765
Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
# Randy MacLeod # Wind River Linux