You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using idf-as-lib build method, enabling CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=y causes an undefined reference to `esp_gdbstub_panic_handler' during linkage of esp_system
Expected Behavior
esp_system should link with esp_gdbstub when this flag is set (manually updating esp_system to include this dep 'fixes' the problem)
Actual Behavior
esp_system doesn't link with esp_gdbstub causing undefined reference
Steps to reproduce
step1
clone esp-idf
build examples/build_system/cmake/idf_as_lib according to README.md (this should work)
change ESP System settings to use CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=y
build again, this will fail with the undefined reference described above
Debug Logs
l -u pthread_include_pthread_cond_impl -u pthread_include_pthread_local_storage_impl -u vfs_include_syscalls_impl -L /Users/meros/git/above/ahhbe-fw-esp32/external/esp-idf/components/esp_wifi/lib/esp32 && :
/Volumes/git/above/ahhbe-fw-esp32/external/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/esp_system/libesp_system.a(panic.c.obj):(.literal.esp_panic_handler+0x30): undefined reference to `esp_gdbstub_panic_handler'
/Volumes/git/above/ahhbe-fw-esp32/external/espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: esp-idf/esp_system/libesp_system.a(panic.c.obj): in function `esp_panic_handler':
/Users/meros/git/above/ahhbe-fw-esp32/external/esp-idf/components/esp_system/panic.c:287: undefined reference to `esp_gdbstub_panic_handler'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
esp-as-lib with CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=y doesn't build
esp-as-lib with CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=y doesn't build (IDFGH-4444)
Dec 15, 2020
Environment
git describe --tags
to find it):v4.3-dev-2136-gb0150615d
xtensa-esp32-elf-gcc --version
to find it):xtensa-esp32-elf-gcc (crosstool-NG esp-2020r3) 8.4.0
Problem Description
Using idf-as-lib build method, enabling CONFIG_ESP_SYSTEM_PANIC_GDBSTUB=y causes an undefined reference to `esp_gdbstub_panic_handler' during linkage of esp_system
Expected Behavior
esp_system should link with esp_gdbstub when this flag is set (manually updating esp_system to include this dep 'fixes' the problem)
Actual Behavior
esp_system doesn't link with esp_gdbstub causing undefined reference
Steps to reproduce
clone esp-idf
Debug Logs
Other items if possible
sdkconfig.zip
The text was updated successfully, but these errors were encountered: