Skip to content

Failed to compile as "'CORE_DEBUG_LEVEL' was not declared in this scope" in master (and 3.4.1) #1140

@HAmamiya

Description

@HAmamiya

Environment:
-Windows
-VS code with arduino-esp32 v3.3.0 & ESP-IDF 5.5
-CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y in menuconfig due to espressif/arduino-esp32#11661

Console output during compiling:

In file included from H:/Project/components/ESP32-audioI2S/src/Audio.cpp:22:        
H:/Project/components/ESP32-audioI2S/src/vorbis_decoder/vorbis_decoder.h: In function 'void VORBIS_LOG_IMPL(uint8_t, const char*, int, const char*, Args&& ...)':
E:/ESP32/VS-RPiDisplay/components/ESP32-audioI2S/src/vorbis_decoder/vorbis_decoder.h:356:31: error: 'CORE_DEBUG_LEVEL' was not declared in this scope; did you mean 'XCHAL_DEBUGLEVEL'?
  356 |         if     (level == 1 && CORE_DEBUG_LEVEL >= 1) snprintf(dest, total_len + 1, "%s:%d:" ANSI_ESC_RED " %s" ANSI_ESC_RESET, file.c_get(), line, dst);
      |                               ^~~~~~~~~~~~~~~~
      |                               XCHAL_DEBUGLEVEL
ninja: build stopped: subcommand failed.

Recommended fix:
if detected CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP=y i.e. #ifdef CONFIG_DIAG_USE_EXTERNAL_LOG_WRAP, skip checking CORE_DEBUG_LEVEL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions