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

'esp32-s3' is not a recognized processor for this target #230

Closed
adrien3d opened this issue Aug 12, 2024 · 1 comment
Closed

'esp32-s3' is not a recognized processor for this target #230

adrien3d opened this issue Aug 12, 2024 · 1 comment

Comments

@adrien3d
Copy link

Not sure about where to post for my issue, as it seems related to rustc-std-workspace-core.
I started a project from the cargo generate with std, and, as I already have a functional esp32c6 project, I put the code and config to another one, targeting esp32s3.
Source of the new project is here
But, when running cargo build, I have the following errors:

Compiling rustc-std-workspace-core v1.99.0 (/home/achapelet/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
error: data-layout for target xtensa-esp32s3-espidf, e-m:e-p:32:32-v1:8:8-i64:64-i128:128-n32, differs from LLVM target's xtensa-none-elf default layout, e-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32

'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
error: could not compile rustc-std-workspace-core (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
error: could not compile core (lib) due to 1 previous error
error: could not compile libc (lib) due to 1 previous error
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
'esp32-s3' is not a recognized processor for this target (ignoring processor)
error: could not compile compiler_builtins (lib) due to 1 previous error

@SergioGasquez
Copy link
Member

Looks like you are not using the esp toolchain to build the project. You need to install the Xtensa Rust with espup, see https://docs.esp-rs.org/book/installation/riscv-and-xtensa.html. And you can override the cargo command with cargo +esp build....

As for the CI, you can add the +esp on the cargo command or add the override: true in the input of the toolchain.

Please, use the Matrix channel for similar questions.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants