This issue is a (currently) low-information report about a bug I've hit. Trying to generate the assembly listing of a pretty big project, I get the error in the title.
Some details:
The project is based on this CMake-first template. Probably not related, it just makes my life awkward here :)
Build used to compile (without a few flags): cargo +esp rustc --target xtensa-esp32-espidf -Z build-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- --emit asm
Project compiles with thin LTO enabled.
Assembly is emitted with LTO off.
Build fails with full LTO on, regardless of whether I'm trying to emit ASM or not.
Rustc version:
rustc +esp -vV
rustc 1.61.0-nightly (7476f4919 2022-05-17)
binary: rustc
commit-hash: 7476f4919da0ae346f96abe5561a493e0ea6a660
commit-date: 2022-05-17
host: x86_64-pc-windows-msvc
release: 1.61.0-nightly
LLVM version: 14.0.0
I am not yet able to reproduce this issue by building up a minimal project, but I am able to configure my big one to succeed (and give me a 29MB .s file. Let's hope it's not a total code size related issue :) ). I'll keep investigating.
Update:
This might be some LTO related issue instead of ASM. I'm getting this when not trying to emit ASM but having enabled full LTO.
This issue is a (currently) low-information report about a bug I've hit. Trying to generate the assembly listing of a pretty big project, I get the error in the title.
Some details:
The project is based on this CMake-first template. Probably not related, it just makes my life awkward here :)
Build used to compile (without a few flags):
cargo +esp rustc --target xtensa-esp32-espidf -Z build-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort -- --emit asmProject compiles with thin LTO enabled.
Assembly is emitted with LTO off.
Build fails with full LTO on, regardless of whether I'm trying to emit ASM or not.
Rustc version:
I am not yet able to reproduce this issue by building up a minimal project, but I am able to configure my big one to succeed (and give me a 29MB
.sfile. Let's hope it's not a total code size related issue :) ). I'll keep investigating.Update:
This might be some LTO related issue instead of ASM. I'm getting this when not trying to emit ASM but having enabled full LTO.