Skip to contentSkip to conversation

nativesdk-rust not producing working toolchain in SDK for me

DISCUSSION Diez B. Roggisch 1 participant 1 message Dec 9, 2023

lore
Share & tools
lore
#0 lore raw

Hi,

I'm running a Poky Middledore for the raspberrypi4-64 machine from meta-raspberry. I can successfully build a rust hello-world example within the image build.

I added

TOOLCHAIN_HOST_TASK:append = "\
        nativesdk-rust \
        nativesdk-cargo \
        nativesdk-libstd-rs \
        nativesdk-rust-llvm \
        "

to my image and that gets me rustc and cargo superficially working, as in they are part of the SDK. But attempting to use them fails with

11:36 $ /../sdk/sysroots/x86_64-pokysdk-linux/usr/bin/rustc --print target-list
error: Error loading target specification: Could not find specification for target "x86_64-pokysdk-linux-gnu". Run rustc --print target-list for a list of built-in targets

Any pointers are welcome,

Diez