-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to solve the Kirkstone branch aziotctl cargo error while building Yocto Image? #144
Comments
Hi @manojrampur , did you add the BBMASK lines as mentioned in the local.conf.sample to your local.conf? |
Hi, I have the same issue I , here is my configuration:
My build configuration, I try with the latest from meta-rust and also the issue is there.
And the error:
|
What I figured out so far is that the in the poky repo (kirkstone branch https://github.com/yoctoproject/poky/tree/kirkstone/meta/recipes-devtools/rust), the rust devtools recipes (in the meta/recipes-devtools/rust subfolder) contain rust 1.59.0 bitbake files. The "dep:" prefix mentioned in the error messages posted in earlier posts is supported in rust versions 1.60 and newer. |
Replacing rust and cargo did the trick for me: a newer rust/cargo version shipped with yocto langdale (find the devtools folder here https://github.com/yoctoproject/poky/tree/langdale/meta/recipes-devtools/) worked fine. After replacing the folder contents of the rust and the cargo folders with the contents shipped with langdale and adding the rust-target-config.bbclass (https://github.com/yoctoproject/poky/blob/langdale/meta/classes-recipe/rust-target-config.bbclass) to the corresponding meta/classes-recipe folder, the build succeeded. Any thoughts on my solution? Thanks! |
Hi @mile-mwebert based on your answer, I try another approach using kas, I also remove completely the .cargo folder from my machine, not sure if both are related but now is working: This config:
With this lock:
|
@hurtadosanti Nice! I don't use kas but do you really need to pin all those commits? |
The solution is:
meta-rust commit ID: 5656b5ad104bbbbe1b711e3bbe35c88f0d9c9a05 The issue will be resolved. |
I'm building the Yocto Image using the Kirkstone branch using meta-iotedge layers and its dependency layers. While building the image. I have provided the layer details along with the commit IDs and the error as well below. Please have a look into it.
Layers with commit IDs:
meta-virtualization = "HEAD:478a91800c4a95c7410dc8ef52e229a81be24b4e"
meta-iotedge = "HEAD:1276528e537c2cc5a7342eecf4643e686d1c5978"
meta-rust = "HEAD:083f6103b914c2f162b3f966822d9aeaf8cb6b99"
meta-intel = "HEAD:3f0115e9e59f94af54b74838f4f33339ea7584ae"
meta-clang = "HEAD:79169d9be565b7a87310ca280d3a21aaf608ce33"
meta-security
meta-tpm = "HEAD:1a3e42cedbd94ca73be45800d0e902fec35d0f0f"
Error:
ERROR: aziotctl-1.4.3.AUTOINC+cfa39b58ec-r0 do_compile: ExecutionError('/home/azureuser/poky-kirkstone/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/temp/run.do_compile.3017269', 101, None, None)
ERROR: Logfile of failure stored in: /home/azureuser/poky-kirkstone/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/temp/log.do_compile.3017269
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: cargo = /home/azureuser/poky-kirkstone/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/recipe-sysroot-native/usr/bin/cargo
| NOTE: rustc =
| NOTE: cargo build -v --target arm-poky-linux-gnueabi --release --manifest-path=/home/azureuser/poky-kirkstone/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/git/aziotctl/Cargo.toml
| error: failed to get
anyhow
as a dependency of packageaziotctl v1.4.3 (/home/azureuser/poky-kirkstone/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/git/aziotctl)
|
| Caused by:
| failed to load source for dependency
anyhow
|
| Caused by:
| Unable to update registry
crates-io
|
| Caused by:
| failed to update replaced source registry
crates-io
|
| Caused by:
| failed to parse manifest at
/home/azureuser/poky-kirkstone/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/aziotctl/1.4.3.AUTOINC+cfa39b58ec-r0/cargo_home/bitbake/toml-0.7.2/Cargo.toml
|
| Caused by:
| namespaced features with the
dep:
prefix are only allowed on the nightly channel and requires the-Z namespaced-features
flag on the command-line| WARNING: exit code 101 from a shell command.
ERROR: Task (/home/azureuser/poky-kirkstone/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.3.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5684 tasks of which 5666 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/azureuser/poky-kirkstone/meta-iotedge/recipes-core/aziotctl/aziotctl_1.4.3.bb:do_compile
Summary: There were 2 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code.
Please respond asap to resolve the issue.
Thanks in Advance!!
The text was updated successfully, but these errors were encountered: