Rust ESP32-S3 ビルド問題: xtensa-lx-rt (lib) をコンパイルできませんでした


cargo build --release
Compiling xtensa-lx-rt v0.16.0
Compiling esp-hal-common v0.14.1
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.
error: could not compile xtensa-lx-rt (lib)
warning: build failed, waiting for other jobs to finish...
error: invalid instruction mnemonic 'rsr.ccount'
--> /Users/georgik/.cargo/registry/src/
81 | unsafe { asm!("rsr.ccount {0}", out(reg) x, options(nostack)) };



[target.'cfg(target_arch = "xtensa")']
runner = "espflash flash --monitor"
rustflags = [
"-C", "link-arg=-Tlinkall.x",
"-C", "link-arg=-nostartfiles",

target = "xtensa-esp32s3-none-elf"

build-std = [ "core", "alloc" ]