Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'core_cm33.h' file not found #51

Open
cexianl opened this issue Mar 21, 2024 · 0 comments
Open

fatal error: 'core_cm33.h' file not found #51

cexianl opened this issue Mar 21, 2024 · 0 comments

Comments

@cexianl
Copy link

cexianl commented Mar 21, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant