Skip to content

Conflict between LOG_LOCAL_LEVEL in two sources (IDFGH-16800) #17877

@dannybackx

Description

@dannybackx

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

v6.0-beta1

Operating System used.

Linux

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

None

What is the expected behavior?

Compile

What is the actual behavior?

Conflict between two files that come with the distribution :

/home/danny/src/github/esp32/esp-idf-v6.0-beta1/components/esp_driver_i2c/i2c_master.c:18:9: error: 'LOG_LOCAL_LEVEL' redefined [-Werror]
   18 | #define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
      |         ^~~~~~~~~~~~~~~
In file included from /home/danny/src/github/esp32/esp-idf-v6.0-beta1/components/log/include/esp_log_config.h:13,
                 from /home/danny/src/github/esp32/esp-idf-v6.0-beta1/components/log/include/esp_log.h:14,
                 from /home/danny/src/github/esp32/esp-idf-v6.0-beta1/components/esp_common/include/esp_check.h:9,
                 from /home/danny/src/github/esp32/esp-idf-v6.0-beta1/components/esp_driver_i2c/i2c_master.c:14:
/home/danny/src/github/esp32/esp-idf-v6.0-beta1/components/log/include/esp_log_level.h:57:9: note: this is the location of the previous definition
   57 | #define LOG_LOCAL_LEVEL  CONFIG_LOG_MAXIMUM_LEVEL
      |         ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Steps to reproduce.

  1. Step
  2. Step
  3. Step
    ...

Build or installation Logs.


Diagnostic report archive.

No response

More Information.

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions