Skip to content

Panic handler crate compilation fails in debug configuration  #5

Closed
@pacmancoder

Description

@pacmancoder

Hi, @MabezDev

I have the following issue:
Compilation of panic handlers (e.g. panic-abort, panic-halt) for esp8266 target fails in the debug mode with the following errors:

note: /home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s: Assembler messages:
/home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s:11: Error: CFI is not supported for this target
/home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s:12: Error: CFI is not supported for this target
/home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s:15: Error: CFI is not supported for this target
/home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s:25: Error: CFI is not supported for this target
/home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s: Error: unhandled local relocation fix BFD_RELOC_64
/home/pacmancoder/core/shelter-unicorn/firmware/target/xtensa-esp8266-none-elf/debug/deps/panic_abort-84b1cfdabd08f15b.panic_abort.5hi23ci5-cgu.0.rcgu.s: Error: unhandled local relocation fix BFD_RELOC_64

Interestingly enough, with release configuration it builds just fine 😕

I am building with the following commands/environment:

    export RUSTFLAGS="-C linker="$LINKER_PATH" -C target-cpu=esp8266 -C save-temps"
    xargo build --target xtensa-esp8266-none-elf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions