Skip to contentSkip to conversation

cbindgen unable to unpack it using meta-rust layer (dunfell)

DISCUSSION sateesh m 2 participants 2 messages May 20, 2025

lore
Share & tools
lore

sateesh m

author
#0 lore raw

Hi team,

I am facing issue cbindgen unable to unpack issue. I am not clear what could be the reason? any updated patch is avilabale or hostools do I need to install please let me know. I want some leads here.

ERROR: cbindgen-0.24.5-r0 do_unpack: Unpack failure for URL: 'https://crates.io/api/v1/crates/cbindgen/0.24.5/download'. Unpack command PATH="/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/p_6012/hdd/Basic/subcore/poky/scripts:/home/p_60120/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/usr/bin/arm-telechips-linux-gnueabi:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot/usr/bin/crossscripts:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/usr/sbin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/usr/bin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/sbin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/bin:/home/p_6012/hdd/Basic/subcore/poky/bitbake/bin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/hosttools" tar -xz --no-same-owner -f /home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/downloads/cbindgen-0.24.5.crate failed with return value 2
ERROR: Logfile of failure stored in: /home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/temp/log.do_unpack.25960
ERROR: Task (/home/p_60120/hdd/Basic/subcore/poky/meta-rust/recipes-devtools/cbindgen/cbindgen_0.24.5.bb:do_unpack) failed with exit code '1'

Thanking you in advance.

Regards,
Sateesh

#1 lore raw
Quoted 7 lines · sateesh m via lists.yoctoproject.org

Hi team,

I am facing issue cbindgen unable to unpack issue. I am not clear what could be the reason? any updated patch is avilabale or hostools do I need to install please let me know. I want some leads here.
ERROR: cbindgen-0.24.5-r0 do_unpack: Unpack failure for URL:

Quoted 8 lines

'https://crates.io/api/v1/crates/cbindgen/0.24.5/download'. Unpack
command PATH="/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/p_6012/hdd/Basic/subcore/poky/scripts:/home/p_60120/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/usr/bin/arm-telechips-linux-gnueabi:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot/usr/bin/crossscripts:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/usr/sbin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/usr/bin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/sbin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/recipe-sysroot-native/bin:/home/p_6012/hdd/Basic/subcore/poky/bitbake/bin:/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/hosttools" tar -xz --no-same-owner -f
/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/downloads/cbindgen-0.24.5.crate
failed with return value 2
ERROR: Logfile of failure stored in:
/home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/tmp/work/cortexa7hf-neon-telechips-linux-gnueabi/cbindgen/0.24.5-r0/temp/log.do_unpack.25960

It is trying to execute "tar -xz --no-same-owner -f /home/p_6012/hdd/Basic/subcore/build/tcc8030-sub/downloads/cbindgen-0.24.5.crate" command. Check what happens when you try it manually. You could also add "v" option for verbose output. Also, check the integrity of the crate, i.e. compare it's hash with a freshly downloaded crate from crates.io. (If I remember well, Dunfell didn't enforce downloaded artifact hash-checking). If it looks broken, do a "bitbake -c cleanall cbindgen" and try tp build again.

Quoted 17 lines

ERROR: Task (/home/p_60120/hdd/Basic/subcore/poky/meta-rust/recipes-devtools/cbindgen/cbindgen_0.24.5.bb:do_unpack) failed with exit code '1'

Thanking you in advance.

Regards,
Sateesh

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