Skip to contentSkip to conversation

How to upgrade rust? #rust #scarthgap #sdk

DISCUSSION Tamás Soós 2 participants 3 messages May 25, 2025

lore
Share & tools
lore
#0 lore raw

Hi.

I'm trying to upgrade rust on Scarthgap. The current version is 1.75.0. So I tried to get to 1.76.0.
I ran devtool upgrade rust-llvm, which seemed to work. I resolved some conflicts and was able to build it.
Then I tried devtool upgrade rust. After getting past the conflicts again I get the following error:
ERROR: rust-1.76.0-r0 do_rust_setup_snapshot: ExecutionError('/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/run.do_rust_setup_snapshot.2027011', 127, None, None)
ERROR: Logfile of failure stored in: /home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/log.do_rust_setup_snapshot.2027011
Log data follows:

| DEBUG: Executing shell function do_rust_setup_snapshot
| /home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/run.do_rust_setup_snapshot.2027011: 152: /home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/rust-snapshot-components/*/install.sh: not found
| WARNING: exit code 127 from a shell command.

ERROR: Task (/home/tamas/poky/build/workspace/recipes/rust/rust_1.76.0.bb:do_rust_setup_snapshot) failed with exit code '1'

This part of the recipe didn't seem to have changed. I'm out of ideas. What could be going wrong here?

Ultimately I need nativesdk-rust for my app development. Trying to build that results in another error:
ERROR: nativesdk-rust-1.76.0-r0 do_patch: Applying patch 'zlib-off64_t.patch' on target directory '/home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/rustc-1.76.0-src' CmdError('quilt --quiltrc /home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch zlib-off64_t.patch patching file vendor/libz-sys/src/zlib/gzguts.h
patching file vendor/libz-sys/.cargo-checksum.json
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file vendor/libz-sys/.cargo-checksum.json
Patch zlib-off64_t.patch does not apply (enforce with -f)
stderr: ')
ERROR: Logfile of failure stored in: /home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/temp/log.do_patch.2028507
ERROR: Task (virtual:nativesdk:/home/tamas/poky/build/workspace/recipes/rust/rust_1.76.0.bb:do_patch) failed with exit code '1'

#1 lore raw
Quoted 19 lines · Tamás Soós via lists.yoctoproject.org

Hi.

I'm trying to upgrade rust on Scarthgap. The current version is
1.75.0. So I tried to get to 1.76.0.
I ran devtool upgrade rust-llvm, which seemed to work. I resolved some
conflicts and was able to build it.
Then I tried devtool upgrade rust. After getting past the conflicts
again I get the following error:
ERROR: rust-1.76.0-r0 do_rust_setup_snapshot:
ExecutionError('/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/run.do_rust_setup_snapshot.2027011', 127, None, None)
ERROR: Logfile of failure stored in:
/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/log.do_rust_setup_snapshot.2027011 Log data follows:
| DEBUG: Executing shell function do_rust_setup_snapshot
| /home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/run.do_rust_setup_snapshot.2027011:
152:
/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/rust-snapshot-components/*/install.sh:

Quoted 8 lines

not found
| WARNING: exit code 127 from a shell command.
ERROR: Task (/home/tamas/poky/build/workspace/recipes/rust/rust_1.76.0.bb:do_rust_setup_snapshot) failed with exit code '1'

This part of the recipe didn't seem to have changed. I'm out of ideas. What could be going wrong here?

The recommended way to upgrade Rust in Scarthgap would be to use the meta-lts-mixins layer[1]. It regularly backports the Rust updates from the master branch. Add it to your project, optionally add the oe-core's rust folder to BBMASK (or use PREFERRED_VERSION variables), and build away.

[1]: https://git.yoctoproject.org/meta-lts-mixins/ - "scarthgap/rust" branch

Quoted 33 lines


Ultimately I need nativesdk-rust for my app development. Trying to
build that results in another error:
ERROR: nativesdk-rust-1.76.0-r0 do_patch: Applying patch
'zlib-off64_t.patch' on target directory '/home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/rustc-1.76.0-src' CmdError('quilt --quiltrc /home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch zlib-off64_t.patch
patching file vendor/libz-sys/src/zlib/gzguts.h
patching file vendor/libz-sys/.cargo-checksum.json
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file
vendor/libz-sys/.cargo-checksum.json
Patch zlib-off64_t.patch does not apply (enforce with -f)
stderr: ')
ERROR: Logfile of failure stored in:
/home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/temp/log.do_patch.2028507
ERROR: Task (virtual:nativesdk:/home/tamas/poky/build/workspace/recipes/rust/rust_1.76.0.bb:do_patch)
failed with exit code '1'

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65418): https://lists.yoctoproject.org/g/yocto/message/65418
Mute This Topic: https://lists.yoctoproject.org/mt/113289446/6084445
Mute #rust:https://lists.yoctoproject.org/g/yocto/mutehashtag/rust Mute #scarthgap:https://lists.yoctoproject.org/g/yocto/mutehashtag/scarthgap Mute #sdk:https://lists.yoctoproject.org/g/yocto/mutehashtag/sdk Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw

That’s great! Cloned the layer, added a few PREFERRED_VERSION variables and it just worked. I’m so happy when stuff just works:) Thank you!

Quoted 70 lines · Gyorgy Sarvari
Quoted 25 lines · Tamás Soós via lists.yoctoproject.org

Hi.

I'm trying to upgrade rust on Scarthgap. The current version is
1.75.0. So I tried to get to 1.76.0.
I ran devtool upgrade rust-llvm, which seemed to work. I resolved some
conflicts and was able to build it.
Then I tried devtool upgrade rust. After getting past the conflicts
again I get the following error:
ERROR: rust-1.76.0-r0 do_rust_setup_snapshot:
ExecutionError('/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/run.do_rust_setup_snapshot.2027011', 127, None, None)
ERROR: Logfile of failure stored in:
/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/log.do_rust_setup_snapshot.2027011 Log data follows:
| DEBUG: Executing shell function do_rust_setup_snapshot
| /home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/temp/run.do_rust_setup_snapshot.2027011:
152:
/home/tamas/poky/build/tmp/work/cortexa8t2hf-neon-zeus-linux-gnueabi/rust/1.76.0/rust-snapshot-components/*/install.sh:
not found
| WARNING: exit code 127 from a shell command.
ERROR: Task
(/home/tamas/poky/build/workspace/recipes/rust/rust_1.76.0.bb:do_rust_setup_snapshot)
failed with exit code '1'

Quoted 2 lines

This part of the recipe didn't seem to have changed. I'm out of ideas. What could be going wrong here?

The recommended way to upgrade Rust in Scarthgap would be to use the meta-lts-mixins layer[1]. It regularly backports the Rust updates from the master branch. Add it to your project, optionally add the oe-core's rust folder to BBMASK (or use PREFERRED_VERSION variables), and build away.

[1]: https://git.yoctoproject.org/meta-lts-mixins/ - "scarthgap/rust" branch

Quoted 32 lines

Ultimately I need nativesdk-rust for my app development. Trying to
build that results in another error:
ERROR: nativesdk-rust-1.76.0-r0 do_patch: Applying patch
'zlib-off64_t.patch' on target directory '/home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/rustc-1.76.0-src' CmdError('quilt --quiltrc /home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch zlib-off64_t.patch
patching file vendor/libz-sys/src/zlib/gzguts.h
patching file vendor/libz-sys/.cargo-checksum.json
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- rejects in file
vendor/libz-sys/.cargo-checksum.json
Patch zlib-off64_t.patch does not apply (enforce with -f)
stderr: ')
ERROR: Logfile of failure stored in:
/home/tamas/poky/build/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-rust/1.76.0/temp/log.do_patch.2028507
ERROR: Task (virtual:nativesdk:/home/tamas/poky/build/workspace/recipes/rust/rust_1.76.0.bb:do_patch)
failed with exit code '1'

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65418): https://lists.yoctoproject.org/g/yocto/message/65418
Mute This Topic: https://lists.yoctoproject.org/mt/113289446/6084445
Mute #rust:https://lists.yoctoproject.org/g/yocto/mutehashtag/rust
Mute #scarthgap:https://lists.yoctoproject.org/g/yocto/mutehashtag/scarthgap
Mute #sdk:https://lists.yoctoproject.org/g/yocto/mutehashtag/sdk
Group Owner: [email protected] <mailto:[email protected]>
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected] <mailto:[email protected]>]
-=-=-=-=-=-=-=-=-=-=-=-