Hey all! I am working on rust project targeting the STM32MPU, (specifically the stm32MP135F-DK). ST has provided two layers for supporting os development on yocto:
their distro: https://github.com/STMicroelectronics/meta-st-openstlinux their BSP: https://github.com/STMicroelectronics/meta-st-stm32mp I have started to add rust support to the SDK by adding the following to my `local.conf`: ``` TOOLCHAIN_HOST_TASK:append = " \ packagegroup-rust-cross-canadian-${MACHINE} \ " ``` I can see this adding `rustc` and `cargo` binaries to the SDK (e.g `which rustc` after sourcing the environment file prints `<sdk-path>/sysroots/x86_64-ostl_sdk-linux/usr/bin/rustc`), but they are not letting me compile the default binary project created with `cargo new`: ``` Compiling demo v0.1.0 (/home/vboxuser/sdk-testing/demo) error[E0463]: can't find crate for `std` | = note: the `armv7-unknown-linux-gnueabihf` target may not be installed = help: consider downloading the target with `rustup target add armv7-unknown-linux-gnueabihf` error: cannot find macro `println` in this scope --> src/main.rs:2:5 | 2 | println!("Hello, world!"); | ^^^^^^^ error: requires `sized` lang_item For more information about this error, try `rustc --explain E0463`. error: could not compile `demo` due to 3 previous errors ``` Would anyone know how I can go about debugging what the problem is here? I originally thought it may have something to do with `TARGET_VENDOR`, but clearing that value out (so that we get `unknown` in the triple) did not seem to work. For reference, the build configuration looks like: ``` Build Configuration: BB_VERSION = "2.4.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "debian-11" TARGET_SYS = "arm-linux-gnueabi" MACHINE = "stm32mp13-disco" DISTRO = "openstlinux-weston" DISTRO_VERSION = "4.2.1-snapshot-20230912" TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard" TARGET_FPU = "hard" DISTRO_CODENAME = "mickledore" ACCEPT_EULA_stm32mp13-disco = "1" GCCVERSION = "12.%" PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp" meta-rauc = "HEAD:c0dcec7b1b0d20862806915e12b4f332e5bef58c" meta-python meta-oe meta-gnome meta-initramfs meta-multimedia meta-networking meta-webserver meta-filesystems meta-perl = "HEAD:57c516973978ca2667339bf1aae7dc722b5bcac7" meta-st-stm32mp = "HEAD:931b3f5be2c00f55d114c8f9122082a9d229b776" meta-qt5 = "HEAD:cf6ffcbad5275a3428f6046468a0c9d572e813d1" meta-st-openstlinux = "HEAD:8c780facff81d3c3878c5fdcd18bdd24fc36478d" meta = "HEAD:ab232138f633b0521867216570ff81fcdceb3be1" ``` I can provide as much additional information as needed! Thank you! - Danny
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#187544): https://lists.openembedded.org/g/openembedded-core/message/187544 Mute This Topic: https://lists.openembedded.org/mt/101320020/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-