Page 1 of 1

Getting Error while building matter lighting app

Posted: Wed Apr 05, 2023 7:32 am
by Jayesh
I have clone the repositories esp-idf and esp-matter. And currently I am following this guide https://github.com/project-chip/connect ... mission.md
But while building I am facing these errors


error : "esp_heap_trace.h is included but heap tracing is disabled in menuconfig, functions are no-ops"

einfochips@PUNECPU0517:~/Desktop/matter/connectedhomeip/examples/lighting-app/esp32$ idf.py menuconfig
Executing action: menuconfig
Running ninja in directory /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/build
Executing "ninja menuconfig"...
[0/1] cd /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/build &&... config /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig
Loading defaults file /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig.defaults...
WARNING: Menuconfig may fail because of the TERM environment variable is set to "xterm". Please consult the documentation of your terminal to set it up. Some good, proved to been working setups include xterm-256color, screen-256color, rxvt-unicode-256color.
Loaded configuration '/home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig'
No changes to save (for '/home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig')
Loading defaults file /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig.defaults...
einfochips@PUNECPU0517:~/Desktop/matter/connectedhomeip/examples/lighting-app/esp32$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/build
Executing "ninja all"...
[0/1] Re-running CMake...
-- Component directory /home/einfochips/Desktop/ESP32/esp-idf/components/esp_coex does not contain a CMakeLists.txt file. No component will be added
-- Building ESP-IDF components for target esp32
Skipping optional dependency: espressif/mdns
Processing 2 dependencies:
[1/2] espressif/led_strip (1.1.0-alpha)
[2/2] idf (4.4.2)
-- Found Python3: /home/einfochips/Desktop/matter/connectedhomeip/.environment/pigweed-venv/bin/python3 (found version "3.8.10") found components: Interpreter
Skipping optional dependency: espressif/mdns
-- Project sdkconfig file /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig
Loading defaults file /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/sdkconfig.defaults...
-- App "chip-lighting-app" version: v1.0
-- Adding linker script /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /home/einfochips/Desktop/ESP32/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Configuring done
-- Generating done
-- Build files have been written to: /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/build
[5/1224] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
otadata,data,ota,0xf000,8K,
phy_init,data,phy,0x11000,4K,
ota_0,app,ota_0,0x20000,1500K,
ota_1,app,ota_1,0x1a0000,1500K,


[1143/1224] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/LEDWidget.cpp.obj
/home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/main/LEDWidget.cpp: In member function 'void LEDWidget::Init()':
/home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/main/LEDWidget.cpp:58:5: warning: missing initializer for member 'ledc_channel_config_t::flags' [-Wmissing-field-initializers]
};
^
[1152/1224] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/__/third_party/connectedhomeip/examples/platform/esp32/shell_extension/heap_trace.cpp.obj
In file included from /home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/third_party/connectedhomeip/examples/platform/esp32/shell_extension/heap_trace.cpp:31:
/home/einfochips/Desktop/ESP32/esp-idf/components/heap/include/esp_heap_trace.h:25:2: warning: #warning "esp_heap_trace.h is included but heap tracing is disabled in menuconfig, functions are no-ops" [-Wcpp]
#warning "esp_heap_trace.h is included but heap tracing is disabled in menuconfig, functions are no-ops"
^~~~~~~
[1154/1224] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/__/third_party/connectedhomeip/examples/platform/esp32/common/Esp32AppServer.cpp.obj
/home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/third_party/connectedhomeip/examples/platform/esp32/common/Esp32AppServer.cpp:65:15: warning: 'size_t hex_string_to_binary(const char*, uint8_t*, size_t)' defined but not used [-Wunused-function]
static size_t hex_string_to_binary(const char * hex_string, uint8_t * buf, size_t buf_size)
^~~~~~~~~~~~~~~~~~~~
/home/einfochips/Desktop/matter/connectedhomeip/examples/lighting-app/esp32/third_party/connectedhomeip/examples/platform/esp32/common/Esp32AppServer.cpp:41:16: warning: '{anonymous}::sTestEventTriggerEnableKey' defined but not used [-Wunused-variable]
static uint8_t sTestEventTriggerEnableKey[TestEventTriggerDelegate::kEnableKeyLength] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55,
^~~~~~~~~~~~~~~~~~~~~~~~~~
[1168/1224] Building CXX object esp-idf/main/CMakeFiles/__idf_main.dir/__/third_party/connectedhomeip/src/app/util/attribute-storage.cpp.obj