-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Description
Describe the bug
When building any application for ESP32-S3 with power management enabled (CONFIG_PM=y – which is the default), the linker fails with: undefined reference to log_const_soc
Target platform SoC: Espressif ESP32-S3
Work around is manually adding the following two lines to zephyr/soc/espressif/esp32s3/soc.c "#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);"
Temporary alternative: disable power management with CONFIG_PM=n in prj.conf
Regression
- This is a regression.
Steps to reproduce
No response
Relevant log output
/zephyr-sdk-0.17.4/xtensa-espressif_esp32s3_zephyr-elf/bin/../lib/gcc/xtensa-espressif_esp32s3_zephyr-elf/12.2.0/../../../../xtensa-espressif_esp32s3_zephyr-elf/bin/ld.bfd: zephyr/libzephyr.a(power.c.obj):(.literal.pm_state_set+0xc): undefined reference to `log_const_soc'
collect2: error: ld reImpact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
Windows
Zephyr SDK
Zephyr version: 4.3.99
Additional Context
When building any application for ESP32-S3 with power management enabled (CONFIG_PM=y – which is the default), the linker fails with: undefined reference to log_const_soc
Target platform SoC: Espressif ESP32-S3
Work around is manually adding the following two lines to zephyr/soc/espressif/esp32s3/soc.c "#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL);"
Temporary alternative: disable power management with CONFIG_PM=n in prj.conf