Skip to content

esp32 multiple boards samples fail to link with undefined section 'tdata' #74852

@aescolar

Description

@aescolar

Describe the bug
Multiple esp32 boards' tests and samples fail to link with undefined section `tdata'
Affects at least: ttgo_t8c3, xiao_esp32c3, icev_wireless , stamp_c3, esp32c3_luatos_core, esp32c3_devkitm

To Reproduce
For ex:

  1. mkdir build; cd build
  2. cmake -GNinja -DBOARD=ttgo_t8c3 ../tests/kernel/common/ -DCONFIG_MINIMAL_LIBC=y
  3. ninja
  4. See error

Expected behavior
no link errors

Impact
Many (hundredths) of CI build failures in the weekly CI run. Likely to trigger also in PRs CI.

Logs and console output
https://github.com/zephyrproject-rtos/zephyr/runs/26572698834

zephyr-sdk-0.16.8/riscv64-zephyr-elf/bin/../lib/gcc/riscv64-zephyr-elf/12.2.0/../../../../riscv64-zephyr-elf/bin/ld.bfd:zephyr/linker_zephyr_pre0.cmd:612: undefined section `tdata' referenced in expression
collect2: error: ld returned 1 exit status

Environment (please complete the following information):

  • OS: Linux CI
  • Toolchain (e.g Zephyr SDK, ...): 0.16.8
  • Commit SHA or Version used: Main as of now 18ebfe5

Additional context
Issue introduced by b38d430

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: ESP32Espressif ESP32priority: highHigh impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions