Skip to content

soc/espressif/esp32s3: undefined reference to 'log_const_soc' when CONFIG_PM=y #100542

@SCOPEELIUS

Description

@SCOPEELIUS

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 re

Impact

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

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: ESP32Espressif ESP32

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions