espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.45k stars 7.38k forks source link

ESP IDF, Arduino as a component, doesn't compile (IDFGH-12940) #9776

Closed meakashrao closed 4 months ago

meakashrao commented 4 months ago

Answers checklist.

IDF version.

ESP-IDF v5.1.2-666-ga5e3e0b90e

Espressif SoC revision.

ESP32-WROOM-32E-N8

Operating System used.

Windows

How did you build your project?

VS Code IDE

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

None

Development Kit.

ESP-WROOM-32

Power Supply used.

USB

What is the expected behavior?

I expected that when using Arduino as a component, the Arduino core to compile, I had use one similar some 3 moths ago and it did compile.

I had to make some changes,

1) The Arduino Core I downloaded on 6th Feb 2024 did not have this line so I erased it after it threw the error. image

2) Same goes with this, earlier version does not have this and I had to comment this out. image

I also tried IDF Version 5.2.1, but it has some other error while downloading mdns as an component, so came back to idf version 5.1.2

What is the actual behavior?

Even after making those above changes, there are some errors in .h files of the Arduino cores.

IDF Bug.zip

Steps to reproduce.

  1. IDF Version 5.1.2, download Arduino as a Component
  2. Create a component called as OTA
  3. Use the below Files

Its a .c file, for uploading here made .txt file OTA.txt CMakeLists.txt

Debug Logs.

-- Found Git: C:/Users/Akash/esp/Tools_Directory/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Akash/esp/Tools_Directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/Akash/esp/Tools_Directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/Akash/esp/Tools_Directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
NOTICE: Skipping optional dependency: espressif/esp-sr
Processing 20 dependencies:
[1/20] chmorgan/esp-libhelix-mp3 (1.0.3)
[2/20] espressif/cbor (0.6.0~1)
[3/20] espressif/esp-dsp (1.4.12)
[4/20] espressif/esp-zboss-lib (1.3.2)
[5/20] espressif/esp-zigbee-lib (1.3.2)
[6/20] espressif/esp_diag_data_store (1.0.1)
[7/20] espressif/esp_diagnostics (1.1.0)
[8/20] espressif/esp_insights (1.1.0)
[9/20] espressif/esp_modem (1.1.0)
[10/20] espressif/esp_rainmaker (1.1.0)
[11/20] espressif/esp_schedule (1.1.1)
[12/20] espressif/esp_secure_cert_mgr (2.4.1)
[13/20] espressif/jsmn (1.1.0)
[14/20] espressif/json_generator (1.1.2)
[15/20] espressif/json_parser (1.0.3)
[16/20] espressif/mdns (1.2.3)
[17/20] espressif/qrcode (0.1.0~2)
[18/20] espressif/rmaker_common (1.4.5)
[19/20] idf (5.1.2)
[20/20] joltwallet/littlefs (1.14.4)
NOTICE: Skipping optional dependency: espressif/esp-sr
-- Project sdkconfig file D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: c:/Users/Akash/esp/Tools_Directory/python_env/idf5.1_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "DelishUP-RTOS" version: 3f82ff9-dirty
-- Adding linker script D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/ld/esp32/sections.ld.in
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld      
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld     
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
ESP Insights Project commit: 3f82ff9-dirty
ESP RainMaker Project commit: 3f82ff9-dirty
-- Components: ESP_Nuvoton_UART GPIO_Definitions LoadMeter OTA app_trace app_update arduino bootloader bootloader_support bt chmorgan__esp-libhelix-mp3 cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_coex esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump espressif__cbor espressif__esp-dsp espressif__esp-zboss-lib espressif__esp-zigbee-lib espressif__esp_diag_data_store espressif__esp_diagnostics espressif__esp_insights espressif__esp_modem espressif__esp_rainmaker espressif__esp_schedule espressif__esp_secure_cert_mgr espressif__jsmn espressif__json_generator espressif__json_parser espressif__mdns espressif__qrcode espressif__rmaker_common esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 joltwallet__littlefs json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/ESP_Nuvoton_UART D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/GPIO_Definitions D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/LoadMeter D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA C:/Users/Akash/esp/v5.1/esp-idf/components/app_trace C:/Users/Akash/esp/v5.1/esp-idf/components/app_update D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader_support C:/Users/Akash/esp/v5.1/esp-idf/components/bt D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/chmorgan__esp-libhelix-mp3 C:/Users/Akash/esp/v5.1/esp-idf/components/cmock C:/Users/Akash/esp/v5.1/esp-idf/components/console C:/Users/Akash/esp/v5.1/esp-idf/components/cxx C:/Users/Akash/esp/v5.1/esp-idf/components/driver C:/Users/Akash/esp/v5.1/esp-idf/components/efuse C:/Users/Akash/esp/v5.1/esp-idf/components/esp-tls C:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc C:/Users/Akash/esp/v5.1/esp-idf/components/esp_app_format C:/Users/Akash/esp/v5.1/esp-idf/components/esp_coex C:/Users/Akash/esp/v5.1/esp-idf/components/esp_common C:/Users/Akash/esp/v5.1/esp-idf/components/esp_eth C:/Users/Akash/esp/v5.1/esp-idf/components/esp_event C:/Users/Akash/esp/v5.1/esp-idf/components/esp_gdbstub C:/Users/Akash/esp/v5.1/esp-idf/components/esp_hid C:/Users/Akash/esp/v5.1/esp-idf/components/esp_http_client C:/Users/Akash/esp/v5.1/esp-idf/components/esp_http_server C:/Users/Akash/esp/v5.1/esp-idf/components/esp_https_ota C:/Users/Akash/esp/v5.1/esp-idf/components/esp_https_server C:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support C:/Users/Akash/esp/v5.1/esp-idf/components/esp_lcd C:/Users/Akash/esp/v5.1/esp-idf/components/esp_local_ctrl C:/Users/Akash/esp/v5.1/esp-idf/components/esp_mm C:/Users/Akash/esp/v5.1/esp-idf/components/esp_netif C:/Users/Akash/esp/v5.1/esp-idf/components/esp_netif_stack C:/Users/Akash/esp/v5.1/esp-idf/components/esp_partition C:/Users/Akash/esp/v5.1/esp-idf/components/esp_phy C:/Users/Akash/esp/v5.1/esp-idf/components/esp_pm C:/Users/Akash/esp/v5.1/esp-idf/components/esp_psram C:/Users/Akash/esp/v5.1/esp-idf/components/esp_ringbuf C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom C:/Users/Akash/esp/v5.1/esp-idf/components/esp_system C:/Users/Akash/esp/v5.1/esp-idf/components/esp_timer C:/Users/Akash/esp/v5.1/esp-idf/components/esp_wifi C:/Users/Akash/esp/v5.1/esp-idf/components/espcoredump D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__cbor D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp-dsp D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp-zboss-lib D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp-zigbee-lib D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_diag_data_store D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_diagnostics D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_insights D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_modem D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_rainmaker D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_schedule D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__esp_secure_cert_mgr D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__jsmn D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__json_generator D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__json_parser D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__mdns D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__qrcode D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/espressif__rmaker_common C:/Users/Akash/esp/v5.1/esp-idf/components/esptool_py C:/Users/Akash/esp/v5.1/esp-idf/components/fatfs C:/Users/Akash/esp/v5.1/esp-idf/components/freertos C:/Users/Akash/esp/v5.1/esp-idf/components/hal C:/Users/Akash/esp/v5.1/esp-idf/components/heap C:/Users/Akash/esp/v5.1/esp-idf/components/http_parser C:/Users/Akash/esp/v5.1/esp-idf/components/idf_test C:/Users/Akash/esp/v5.1/esp-idf/components/ieee802154 D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/joltwallet__littlefs C:/Users/Akash/esp/v5.1/esp-idf/components/json C:/Users/Akash/esp/v5.1/esp-idf/components/log C:/Users/Akash/esp/v5.1/esp-idf/components/lwip D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/main C:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls C:/Users/Akash/esp/v5.1/esp-idf/components/mqtt C:/Users/Akash/esp/v5.1/esp-idf/components/newlib C:/Users/Akash/esp/v5.1/esp-idf/components/nvs_flash C:/Users/Akash/esp/v5.1/esp-idf/components/openthread C:/Users/Akash/esp/v5.1/esp-idf/components/partition_table C:/Users/Akash/esp/v5.1/esp-idf/components/perfmon C:/Users/Akash/esp/v5.1/esp-idf/components/protobuf-c C:/Users/Akash/esp/v5.1/esp-idf/components/protocomm C:/Users/Akash/esp/v5.1/esp-idf/components/pthread C:/Users/Akash/esp/v5.1/esp-idf/components/sdmmc C:/Users/Akash/esp/v5.1/esp-idf/components/soc C:/Users/Akash/esp/v5.1/esp-idf/components/spi_flash C:/Users/Akash/esp/v5.1/esp-idf/components/spiffs C:/Users/Akash/esp/v5.1/esp-idf/components/tcp_transport C:/Users/Akash/esp/v5.1/esp-idf/components/ulp C:/Users/Akash/esp/v5.1/esp-idf/components/unity C:/Users/Akash/esp/v5.1/esp-idf/components/usb C:/Users/Akash/esp/v5.1/esp-idf/components/vfs C:/Users/Akash/esp/v5.1/esp-idf/components/wear_levelling C:/Users/Akash/esp/v5.1/esp-idf/components/wifi_provisioning C:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant C:/Users/Akash/esp/v5.1/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build

 *  Executing task: ninja  

[7/1643] 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,20K,
otadata,data,ota,0xe000,8K,
app0,app,ota_0,0x10000,3264K,
app1,app,ota_1,0x340000,3264K,
spiffs,data,spiffs,0x670000,1600K,
*******************************************************************************
[399/1643] Performing configure step for 'bootloader'
-- Found Git: C:/Users/Akash/esp/Tools_Directory/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/Akash/esp/Tools_Directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/Akash/esp/Tools_Directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Users/Akash/esp/Tools_Directory/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/sdkconfig
Compiler supported targets: xtensa-esp32-elf

-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld
-- App "bootloader" version: v5.1.2-666-ga5e3e0b90e
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld     
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader_support C:/Users/Akash/esp/v5.1/esp-idf/components/efuse C:/Users/Akash/esp/v5.1/esp-idf/components/esp_app_format C:/Users/Akash/esp/v5.1/esp-idf/components/esp_common C:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support C:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom C:/Users/Akash/esp/v5.1/esp-idf/components/esp_system C:/Users/Akash/esp/v5.1/esp-idf/components/esptool_py C:/Users/Akash/esp/v5.1/esp-idf/components/freertos C:/Users/Akash/esp/v5.1/esp-idf/components/hal C:/Users/Akash/esp/v5.1/esp-idf/components/log C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader/subproject/main C:/Users/Akash/esp/v5.1/esp-idf/components/bootloader/subproject/components/micro-ecc C:/Users/Akash/esp/v5.1/esp-idf/components/newlib C:/Users/Akash/esp/v5.1/esp-idf/components/partition_table C:/Users/Akash/esp/v5.1/esp-idf/components/soc C:/Users/Akash/esp/v5.1/esp-idf/components/spi_flash C:/Users/Akash/esp/v5.1/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build/bootloader   
[629/1643] Performing build step for 'bootloader'
[1/104] Generating project_elf_src_esp32.c
[2/104] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[3/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[4/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj
[5/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj
[6/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/dport_access_common.c.obj
[7/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[8/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dport_access.c.obj
[9/104] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj
[10/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj
[11/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj
[12/104] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[13/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj
[14/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj
[15/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj
[16/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdm_periph.c.obj
[17/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj
[18/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[19/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj
[20/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj
[21/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[22/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/mcpwm_periph.c.obj
[23/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/lcd_periph.c.obj
[24/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[25/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/twai_periph.c.obj
[26/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj
[27/104] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj
[28/104] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/efuse_hal.c.obj
[29/104] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[30/104] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[31/104] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32/efuse_hal.c.obj
[32/104] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mmu_hal.c.obj
[33/104] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32/cache_hal_esp32.c.obj
[34/104] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[35/104] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/spi_flash_wrap.c.obj
[36/104] Building C object esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj
[37/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[38/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj
[39/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[40/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[41/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[42/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[43/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj
[44/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[45/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/flash_qio_mode.c.obj
[46/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash.c.obj
[47/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[48/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[49/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[50/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[51/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[52/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[53/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash_config_esp32.c.obj
[54/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_soc.c.obj
[55/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[56/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[57/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[58/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[59/104] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[60/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu.c.obj
[61/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/esp_memory_utils.c.obj      
[62/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/cpu_region_protect.c.obj
[63/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_fields.c.obj
[64/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj
[65/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[66/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_utility.c.obj
[67/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[68/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[69/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj    
[70/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/efuse_controller/keys/without_key_purposes/three_key_blocks/esp_efuse_api_key.c.obj
[71/104] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[72/104] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[73/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj   
[74/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj   
[75/104] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[76/104] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[77/104] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[78/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/chip_info.c.obj  
[79/104] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_efuse.c.obj
[80/104] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[81/104] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj  
[82/104] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[83/104] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_spiflash.c.obj
[84/104] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[85/104] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[86/104] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[87/104] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[88/104] Linking C static library esp-idf\log\liblog.a
[89/104] Linking C static library esp-idf\esp_rom\libesp_rom.a
[90/104] Linking C static library esp-idf\esp_common\libesp_common.a
[91/104] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[92/104] Linking C static library esp-idf\esp_system\libesp_system.a
[93/104] Linking C static library esp-idf\efuse\libefuse.a
[94/104] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[95/104] Linking C static library esp-idf\esp_app_format\libesp_app_format.a
[96/104] Linking C static library esp-idf\spi_flash\libspi_flash.a
[97/104] Linking C static library esp-idf\hal\libhal.a
[98/104] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[99/104] Linking C static library esp-idf\soc\libsoc.a
[100/104] Linking C static library esp-idf\xtensa\libxtensa.a
[101/104] Linking C static library esp-idf\main\libmain.a
[102/104] Linking C executable bootloader.elf
[103/104] Generating binary image from built executable
esptool.py v4.7.0
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Generated D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build/bootloader/bootloader.bin
[104/104] cmd.exe /C "cd /D D:\UP\GitHubVSArea\ESP_IDF\ESP32FW-IDF-RTOS\DelishUP-RTOS\build\bootloader\esp-idf\esptool_py && c:\Users\Akash\esp\Tools_Directory\python_env\idf5.1_py3.11_env\Scripts\python.exe C:/Users/Akash/esp/v5.1/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build/bootloader/bootloader.bin"
Bootloader binary size 0x6840 bytes. 0x7c0 bytes (7%) free.
[1575/1643] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/Ethernet/src/ETH.cpp.obj   
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src/ETH.cpp: In member function 'bool ETHClass::beginSPI(eth_phy_type_t, int32_t, uint8_t*, int, int, int, SPIClass*, int, int, int, spi_host_device_t, uint8_t)':
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src/ETH.cpp:578:20: warning: unused variable 'eth_mac_config' [-Wunused-variable]
  578 |   eth_mac_config_t eth_mac_config = ETH_MAC_DEFAULT_CONFIG();
      |                    ^~~~~~~~~~~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src/ETH.cpp:579:20: warning: variable 'phy_config' set but not used [-Wunused-but-set-variable]
  579 |   eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();
      |                    ^~~~~~~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src/ETH.cpp: At global scope:
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src/ETH.cpp:365:18: warning: 'esp_err_t _eth_spi_deinit(void*)' defined but not used [-Wunused-function]
  365 | static esp_err_t _eth_spi_deinit(void *ctx) {
      |                  ^~~~~~~~~~~~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src/ETH.cpp:361:14: warning: 'void* _eth_spi_init(const void*)' defined but not used [-Wunused-function]
  361 | static void *_eth_spi_init(const void *ctx) {
      |              ^~~~~~~~~~~~~
[1629/1643] Building C object esp-idf/OTA/CMakeFiles/__idf_OTA.dir/OTA.c.obj
FAILED: esp-idf/OTA/CMakeFiles/__idf_OTA.dir/OTA.c.obj
C:\Users\Akash\esp\Tools_Directory\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DESP_PLATFORM -DIDF_VER=\"v5.1.2-666-ga5e3e0b90e\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build/config -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/newlib/platform_include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/esp_additions/include/freertos -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/esp_additions/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/esp_additions/arch/xtensa/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/include/soc -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/port/esp32/private_include -IC:/Users/Akash/esp/v5.1/esp-idf/components/heap/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/log/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/soc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/soc/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/soc/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/hal/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/hal/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/hal/platform_port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/include/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_common/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/port/soc -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/port/include/private -IC:/Users/Akash/esp/v5.1/esp-idf/components/xtensa/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/xtensa/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/include/apps -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/include/apps/sntp -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/lwip/src/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/freertos/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/esp32xx/include/arch -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/variants/esp32 -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32 -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ArduinoOTA/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/AsyncUDP/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/BLE/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/BluetoothSerial/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/DNSServer/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/EEPROM/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESP_I2S/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESP_NOW/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESP_SR/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESPmDNS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/FFat/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/FS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/HTTPClient/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/HTTPUpdate/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Insights/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/LittleFS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/NetBIOS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Network/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/PPP/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Preferences/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/RainMaker/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SD_MMC/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SD/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SimpleBLE/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SPIFFS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SPI/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ticker/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Update/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/USB/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WebServer/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/NetworkClientSecure/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFiProv/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Wire/src -IC:/Users/Akash/esp/v5.1/esp-idf/components/spi_flash/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_partition/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/library -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -IC:/Users/Akash/esp/v5.1/esp-idf/components/wifi_provisioning/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/common -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/security -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/transports -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/crypto/srp6a -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/include/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/osi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/api/include/api -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/btc/profile/esp/blufi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/btc/profile/esp/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/host/bluedroid/api/include/api -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/porting/ext/tinycrypt/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_timer/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_wifi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_wifi/wifi_apps/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_event/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_phy/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_phy/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_netif/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant/port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant/esp_supplicant/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/interface -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/deprecated/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_eth/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/deprecated -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/analog_comparator/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/dac/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/gpio/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/gptimer/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/i2c/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/i2s/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/ledc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/mcpwm/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/parlio/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/pcnt/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/rmt/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/sdio_slave/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/sdmmc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/sigma_delta/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/spi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/temperature_sensor/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/touch_sensor/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/twai/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/uart/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/usb_serial_jtag/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/touch_sensor/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_pm/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_ringbuf/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/http_parser -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/chmorgan__esp-libhelix-mp3/libhelix-mp3/pub -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_https_ota/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_http_client/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bootloader_support/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bootloader_support/bootloader_flash/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_app_format/include -mlongcalls -Wno-frame-address  -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS=. -fmacro-prefix-map=C:/Users/Akash/esp/v5.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=\"ESP32_DEV\" -DARDUINO_VARIANT=\"esp32\" -DESP32 -MD -MT esp-idf/OTA/CMakeFiles/__idf_OTA.dir/OTA.c.obj -MF esp-idf\OTA\CMakeFiles\__idf_OTA.dir\OTA.c.obj.d -o esp-idf/OTA/CMakeFiles/__idf_OTA.dir/OTA.c.obj -c D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/OTA.c
In file included from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Print.h:28,
                 from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src/WiFi.h:29,
                 from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/OTA.c:24:
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Printable.h:25:1: error: 
unknown type name 'class'
   25 | class Print;
      | ^~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Printable.h:33:1: error: 
unknown type name 'class'
   33 | class Printable {
      | ^~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Printable.h:33:17: error:
 expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   33 | class Printable {
      |                 ^
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Print.h:35:1: error: unknown type name 'class'
   35 | class Print {
      | ^~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Print.h:35:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   35 | class Print {
      |             ^
In file included from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src/WiFi.h:30:
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/IPAddress.h:38:1: error: 
unknown type name 'class'
   38 | class IPAddress : public Printable {
      | ^~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/IPAddress.h:38:17: error:
 expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
   38 | class IPAddress : public Printable {
      |                 ^
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/IPAddress.h:136:14: error: unknown type name 'IPAddress'
  136 | extern const IPAddress IN6ADDR_ANY;
      |              ^~~~~~~~~
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/IPAddress.h:137:14: error: unknown type name 'IPAddress'
  137 | extern const IPAddress INADDR_NONE;
      |              ^~~~~~~~~
In file included from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src/WiFiSTA.h:29,
                 from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src/WiFi.h:33:
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src/WiFiGeneric.h:30:10: fatal error: functional: No such file or directory
   30 | #include <functional>
      |          ^~~~~~~~~~~~
compilation terminated.
[1635/1643] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/WiFi/src/STA.cpp.obj       
ninja: build stopped: subcommand failed.

 *  The terminal process "C:\WINDOWS\System32\cmd.exe /d /c ninja " terminated with exit code: 1.

More Information.

No response

meakashrao commented 4 months ago

The old build uses mdns build 1.2.1

igrr commented 4 months ago
In file included from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Print.h:28,
                 from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src/WiFi.h:29,
                 from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/OTA.c:24:
D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32/Printable.h:25:1: error: 
unknown type name 'class'

From the log, the error occurs because you are including a C++ header file (WiFi.h) from a C source file (DelishUP-RTOS/components/OTA/OTA.c).

meakashrao commented 4 months ago

@igrr Thanks, That solved it

Now please help with this as well, I have mdns 1.3.1 as a managed component. So, why this? I can hower and open this .h file

image

[1630/1643] Building CXX object esp-idf/OTA/CMakeFiles/idf_OTA.dir/OTA.cpp.obj FAILED: esp-idf/OTA/CMakeFiles/__idf_OTA.dir/OTA.cpp.obj C:\Users\Akash\esp\Tools_Directory\tools\xtensa-esp32-elf\esp-12.2.0_20230208\xtensa-esp32-elf\bin\xtensa-esp32-elf-g++.exe -DESP_PLATFORM -DIDF_VER=\"v5.1.2-666-ga5e3e0b90e\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/build/config -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/newlib/platform_include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/FreeRTOS-Kernel/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/esp_additions/include/freertos -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/esp_additions/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/freertos/esp_additions/arch/xtensa/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/include/soc -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/include/soc/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/port/esp32/. -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_hw_support/port/esp32/private_include -IC:/Users/Akash/esp/v5.1/esp-idf/components/heap/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/log/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/soc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/soc/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/soc/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/hal/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/hal/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/hal/platform_port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/include/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_rom/esp32 -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_common/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/port/soc -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_system/port/include/private -IC:/Users/Akash/esp/v5.1/esp-idf/components/xtensa/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/xtensa/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/include/apps -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/include/apps/sntp -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/lwip/src/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/freertos/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/esp32xx/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/lwip/port/esp32xx/include/arch -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/variants/esp32 -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/cores/esp32 -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ArduinoOTA/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/AsyncUDP/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/BLE/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/BluetoothSerial/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/DNSServer/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/EEPROM/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESP_I2S/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESP_NOW/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESP_SR/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESPmDNS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ethernet/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/FFat/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/FS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/HTTPClient/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/HTTPUpdate/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Insights/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/LittleFS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/NetBIOS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Network/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/PPP/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Preferences/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/RainMaker/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SD_MMC/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SD/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SimpleBLE/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SPIFFS/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/SPI/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Ticker/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Update/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/USB/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WebServer/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/NetworkClientSecure/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFi/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/WiFiProv/src -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/Wire/src -IC:/Users/Akash/esp/v5.1/esp-idf/components/spi_flash/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_partition/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/library -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/esp_crt_bundle/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -IC:/Users/Akash/esp/v5.1/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -IC:/Users/Akash/esp/v5.1/esp-idf/components/wifi_provisioning/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/common -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/security -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/transports -IC:/Users/Akash/esp/v5.1/esp-idf/components/protocomm/include/crypto/srp6a -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/include/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/osi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/api/include/api -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/btc/profile/esp/blufi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/common/btc/profile/esp/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/host/bluedroid/api/include/api -IC:/Users/Akash/esp/v5.1/esp-idf/components/bt/porting/ext/tinycrypt/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_timer/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_wifi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_wifi/wifi_apps/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_event/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_phy/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_phy/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_netif/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant/port/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/wpa_supplicant/esp_supplicant/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/interface -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_adc/deprecated/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_eth/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/deprecated -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/analog_comparator/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/dac/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/gpio/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/gptimer/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/i2c/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/i2s/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/ledc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/mcpwm/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/parlio/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/pcnt/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/rmt/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/sdio_slave/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/sdmmc/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/sigma_delta/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/spi/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/temperature_sensor/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/touch_sensor/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/twai/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/uart/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/usb_serial_jtag/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/driver/touch_sensor/esp32/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_pm/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_ringbuf/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/http_parser -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/managed_components/chmorganesp-libhelix-mp3/libhelix-mp3/pub -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_https_ota/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_http_client/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bootloader_support/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/bootloader_support/bootloader_flash/include -IC:/Users/Akash/esp/v5.1/esp-idf/components/esp_app_format/include -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/GPIO_Definitions/include -ID:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/ESP_Nuvoton_UART/include -mlongcalls -Wno-frame-address -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS=. -fmacro-prefix-map=C:/Users/Akash/esp/v5.1/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu++2b -fno-exceptions -fno-rtti -DARDUINO=10812 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD=\"ESP32_DEV\" -DARDUINO_VARIANT=\"esp32\" -DESP32 -MD -MT esp-idf/OTA/CMakeFiles/idf_OTA.dir/OTA.cpp.obj -MF esp-idf\OTA\CMakeFiles__idf_OTA.dir\OTA.cpp.obj.d -o esp-idf/OTA/CMakeFiles/idf_OTA.dir/OTA.cpp.obj -c D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/OTA.cpp In file included from D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/OTA/OTA.cpp:30: D:/UP/GitHubVSArea/ESP_IDF/ESP32FW-IDF-RTOS/DelishUP-RTOS/components/arduino/libraries/ESPmDNS/src/ESPmDNS.h:45:10: fatal error: mdns.h: No such file or directory 45 | #include "mdns.h" | ^~~~ compilation terminated. [1635/1643] Building CXX object esp-idf/arduino/CMakeFiles/__idf_arduino.dir/libraries/WiFi/src/STA.cpp.obj ninja: build stopped: subcommand failed.

igrr commented 4 months ago

Seems like mdns dependency in arduino-esp32 has to be declared as public because mdns.h is included from a public header file.

https://github.com/espressif/arduino-esp32/blob/8b4c1303f41f9a2b03ac73b5c37b3bd02b62c5dd/idf_component.yml#L47

https://github.com/espressif/arduino-esp32/blob/8b4c1303f41f9a2b03ac73b5c37b3bd02b62c5dd/libraries/ESPmDNS/src/ESPmDNS.h#L45

@meakashrao You can work around the issue by adding espressif__mdns to the list of requirements of your OTA component (in DelishUP-RTOS/components/OTA/CMakeLists.txt).

meakashrao commented 4 months ago

@igrr

You can work around the issue by adding espressif__mdns to the list of requirements of your OTA component (in DelishUP-RTOS/components/OTA/CMakeLists.txt).

Thank you, this helps.

What about these two issues image image

Deleting and commenting, helped me solve them, is this the right thing to do, doesn't look like it asking for clarity

igrr commented 4 months ago

I think the latest Arduino-esp32 uses a more recent bug fix release of IDF v5.1.x where these fields/types are introduced. Please try updating your IDF to latest release/v5.1 branch, that should solve the remaining issues.

everslick commented 4 months ago

This seems to be a mismatch between Arduino Core 3.0.0 and the IDF version it comes with, then. I have the same two issues:

cores/esp32/chip-debug-report.cpp:197:18: error: 'ESP_PARTITION_SUBTYPE_DATA_LITTLEFS' was not declared in this scope

and

libraries/WiFi/src/WiFiGeneric.cpp:668:3: error: 'wifi_ftm_initiator_cfg_t' has no non-static data member named 'use_get_report_api'

The first one is easy to work around by defining -DESP_PARTITION_SUBTYPE_DATA_LITTLEFS=0x83 on the command line, but the second one requires patching the source.

I use makeEspArduino, if this makes any difference.

Jason2866 commented 4 months ago

@everslick which exact version or better commit is used for IDF 5.1? I do successfully compile Arduino 3.0.0 as an component (using my Platformio, Arduino and IDF fork) The issues you encounter looks like an old IDF 5.1 version is used. LittleFS Partition is added sometime this year. The second one looks like a reference to a newer / changed function call in source wifi lib

IDF commit from release 3.0.0 can be seen here https://github.com/espressif/arduino-esp32/blob/b3ad98cbf6162b07719c6f9e587cdef0ed00ea2b/package/package_esp32_index.template.json#L45

Jason2866 commented 4 months ago

@meakashrao Your IDF version is to old. ESP-IDF v5.1.2-666-ga5e3e0b90e Best to use commit where the core 3.0.0 is compiled with IDF. Using the release version IDF 5.1.4 will probably work too.

everslick commented 4 months ago

hmm, I never had to worry about this. I was under the impression, that a specific IDF version comes with a specific CORE version (i.e. they are version pinned to each other). Installing IDF was never a separate thing to do. CORE and IDF came as one.

@Jason2866 The contents of the file you posted above is the same as yours, btw.

"version": "idf-release_v5.1-442a798083"

maybe something is wrong with get.py?

me-no-dev commented 4 months ago

That is true. Are you sure that when you update the core you also run get.py? You must have the wrong libs to get those errors (or you use as IDF component and have the wrong IDF version)

everslick commented 4 months ago

I just realized that this might be exactly the issue. I DID NOT run get.py again after git pulling from master...

System: Linux, Bits: 64, Info: Linux-6.5.0-28-generic-x86_64-with-glibc2.35
Platform: x86_64-pc-linux-gnu
Downloading 'esp32-arduino-libs-951ade74d7886e1ce931ea46614c4ac47ae3a6c0.zip' ...
Downloading... 194.94 MB downloaded - Elapsed Time: 02:33.53 - Speed: 1.27 MB/s
me-no-dev commented 4 months ago

@everslick with previous versions, the libs used to come inside the core. We changed this for v3.x, so it's usually critical to run get.py when updating the core.

me-no-dev commented 4 months ago

@meakashrao can we close this issue?

everslick commented 4 months ago

Thx, @me-no-dev ! Iwill update my build scripts to handle this!

BTW, good work on the 3.0.0 release, the migration was pretty straight forward and you managed to keep it pretty API compatible. I'm very impressed! :+1:

meakashrao commented 4 months ago

@meakashrao can we close this issue?

Hey I have just sometime started using IDF, I use IDF in VS Code, what do I need to do?

idf.py --version
ESP-IDF v5.1.2-666-ga5e3e0b90e

me-no-dev commented 4 months ago

@meakashrao get ESP-IDF v5.1.4 instead (or pull branch release/v5.1) and use that

@everslick glad to hear! I hope the new APIs make more sense in Arduino also :)

meakashrao commented 4 months ago

Sure. Thanks will do that