V2.6.1 Build Errors for LOG_PRINTK

Code that compiles just fine under V2.5.3 fails when using V2.6.1. It appears we have all the conditions met, not sure what we are missing.

warning: LOG_PRINTK (defined at subsys/logging\Kconfig.processing:8) has direct dependencies !USERSPACE && !LOG_MODE_MINIMAL && LOG with value n, but is currently being y-selected by the following symbols:
- LOG_BACKEND_RTT_FORCE_PRINTK (defined at subsys/logging\backends\Kconfig.rtt:103), with value y, direct dependencies LOG_BACKEND_RTT && !LOG_FRONTEND_ONLY && !LOG_MODE_MINIMAL && LOG (value: y), and select condition LOG_BACKEND_RTT && !LOG_FRONTEND_ONLY && !LOG_MODE_MINIMAL && LOG (value: y)

Here is our prj.conf for logging:

# Logging
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_LOG_BACKEND_RTT=y
CONFIG_PRINTK=y
CONFIG_LOG_MODE_IMMEDIATE=y
# If below config is enabled, printk logs are
# buffered. For unbuffered messages, disable this.
CONFIG_LOG_PRINTK=y
CONFIG_STDOUT_CONSOLE=y # For using printk
CONFIG_CONSOLE=y
CONFIG_RTT_CONSOLE=y
#CONFIG_UART_RTT=y
CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=2048
CONFIG_LOG_MODE_MINIMAL=n
#CONFIG_LOG_BUFFER_SIZE=4096
CONFIG_UART_CONSOLE=n
CONFIG_DEBUG_COREDUMP=n
CONFIG_SERIAL=n

Parents
  • Hello,

    I added the configuration settings you posted to the "Hello World" sample in SDK v2.6.1, but I was not able to reproduce these Kconfig warnings here. I recommend you check the generated .config file in the build/zephyr directory to determine which configuration dependency the CONFIG_LOG_PRINTK symbol is missing since it does not end up being selected. I.e., if either CONFIG_USERSPACE or CONFIG_LOG_MODE_MINIMAL is set to '=y'.

    Best regards,

    Vidar

Reply
  • Hello,

    I added the configuration settings you posted to the "Hello World" sample in SDK v2.6.1, but I was not able to reproduce these Kconfig warnings here. I recommend you check the generated .config file in the build/zephyr directory to determine which configuration dependency the CONFIG_LOG_PRINTK symbol is missing since it does not end up being selected. I.e., if either CONFIG_USERSPACE or CONFIG_LOG_MODE_MINIMAL is set to '=y'.

    Best regards,

    Vidar

Children
Related