zephyr-rust
zephyr-rust copied to clipboard
fatal error: 'core_cm33.h' file not found
I tried to use the west build command to compile rust-app and it prompted that the core_cm33.h header file could not be found.
Caused by:
process didn't exit successfully: `/home/jeffrey/share/duomotai/modules/lib/zephyr_rust/samples/rust-app/build/modules/zephyr_rust/sysroot-build-stage1/release/build/zephyr-sys-752043e7dea2b466/build-script-build` (exit status: 101)
--- stderr
cflags: -I/home/jeffrey/share/duomotai/zephyr/include -I/home/jeffrey/share/duomotai/modules/lib/zephyr_rust/samples/rust-app/build/zephyr/include/generated -I/home/jeffrey/share/duomotai/csk/soc/arm/csk6 -I/home/jeffrey/share/duomotai/zephyr/lib/libc/minimal/include -I/home/jeffrey/share/duomotai/zephyr/lib/cpp/minimal/include -I/home/jeffrey/share/duomotai/csk/include -I/home/jeffrey/share/duomotai/csk/include/drivers -I/home/jeffrey/share/duomotai/modules/lib/zephyr_rust/uart-buffered/src -DKERNEL -D__ZEPHYR__=1 -isystem/home/jeffrey/share/duomotai/zephyr/lib/libc/minimal/include -isystem/home/jeffrey/share/duomotai/zephyr/lib/cpp/minimal/include -imacros /home/jeffrey/share/duomotai/modules/lib/zephyr_rust/samples/rust-app/build/zephyr/include/generated/autoconf.h --target=thumbv7m-none-eabi
userspace: true
/home/jeffrey/share/duomotai/zephyr/include/zephyr/arch/arm/aarch32/cortex_m/cmsis.h:101:10: fatal error: 'core_cm33.h' file not found
thread 'main' panicked at 'Unable to generate bindings: ClangDiagnostic("/home/jeffrey/share/duomotai/zephyr/include/zephyr/arch/arm/aarch32/cortex_m/cmsis.h:101:10: fatal error: 'core_cm33.h' file not found\n")', src/main.rs:53:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at 'assertion failed: rc.success()', /home/jeffrey/share/duomotai/modules/lib/zephyr_rust/rust/zephyr-sys/build.rs:11:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
ninja: build stopped: subcommand failed