Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

build error #56

Closed
evilbinary opened this issue Jun 24, 2023 · 1 comment
Closed

build error #56

evilbinary opened this issue Jun 24, 2023 · 1 comment

Comments

@evilbinary
Copy link

[evil]$cargo build --features esp32
info: syncing channel updates for 'nightly-2023-03-27-x86_64-apple-darwin'
info: latest update on 2023-03-27, rust version 1.70.0-nightly (db0cbc48d 2023-03-26)
info: component 'rustc-dev' for target 'x86_64-apple-darwin' is up to date
info: component 'rustfmt' for target 'x86_64-apple-darwin' is up to date
warning: Force-skipping unavailable component 'rust-std-esp32'
   Compiling xtensa-lx-rt v0.15.0 (/Users/evil/Downloads/xtensa-lx-rt-master)
warning: formatting may not be suitable for sub-register argument
   --> src/lib.rs:98:28
    |
98  |             "wsr.ccompare0 {0}",
    |                            ^^^
99  |             #[cfg(XCHAL_HAVE_TIMER1)]
100 |             "wsr.ccompare1 {0}",
    |                            ^^^
101 |             #[cfg(XCHAL_HAVE_TIMER2)]
102 |             "wsr.ccompare2 {0}",
    |                            ^^^
...
106 |         }, in(reg) value, options(nostack));
    |                    ----- for this argument
    |
    = help: use `{0:e}` to have the register formatted as `eax`
    = help: or use `{0:r}` to keep the default formatting of `rax`
    = note: `#[warn(asm_sub_register)]` on by default

LLVM ERROR: Global variable 'save_context' has an invalid section specifier '.rwtext': mach-o section specifier requires a segment and section separated by a comma.
warning: `xtensa-lx-rt` (lib) generated 1 warning
error: could not compile `xtensa-lx-rt` (lib); 1 warning emitted
@MabezDev
Copy link
Member

You're building for your host machine, not an Xtensa target.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants