Skip to content

build: pin esp toolchain to 1.93.0.0 to avoid LLVM 21 miscompile - #17

Open
rkuester wants to merge 2 commits into
bitaxeorg:mainfrom
rkuester:fix/llvm21-toolchain-guard
Open

build: pin esp toolchain to 1.93.0.0 to avoid LLVM 21 miscompile#17
rkuester wants to merge 2 commits into
bitaxeorg:mainfrom
rkuester:fix/llvm21-toolchain-guard

Conversation

@rkuester

@rkuester rkuester commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

esp toolchains 1.94.x and 1.95.x ship LLVM 21, which fails to compile
release builds for the Xtensa target. cargo build --release aborts with
rustc-LLVM ERROR: Cannot select ... XtensaISD::PCREL_WRAPPER. Version
1.93.0.0, the last release on LLVM 20, builds correctly. See #16 for the
full writeup and upstream references (esp-rs/rust#277, candidate fix
espressif/llvm-project@39a5993).

Two commits, to be reverted once a fixed LLVM 21 toolchain is confirmed:

  • docs(readme): pin the espup install step to 1.93.0.0 and note the
    reason.
  • build: check the bundled LLVM version in the build script and stop the
    build with install instructions when it is 21 or newer, catching an
    accidental toolchain update.

rkuester added 2 commits July 2, 2026 15:41
esp toolchains 1.94.x and 1.95.x ship LLVM 21, which fails to
compile release builds for the Xtensa target. Version 1.93.0.0, the
last release on LLVM 20, builds correctly.

Pin the espup install step to 1.93.0.0 and note the reason.
esp toolchains 1.94.x and 1.95.x ship LLVM 21, which fails to
compile release builds for the Xtensa target with the error
`rustc-LLVM ERROR: Cannot select`. Version 1.93.0.0, the last
release on LLVM 20, builds correctly.

Check the LLVM version in the build script and stop the build with
instructions to install 1.93.0.0 when it is 21 or newer, catching an
accidental toolchain update.
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

Successfully merging this pull request may close these issues.

1 participant