espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.79k stars 7.31k forks source link

esp32-s3 build fail. fatal error: driver/temperature_sensor.h: No such file or directory (IDFGH-9798) #11134

Closed AirWind001 closed 1 year ago

AirWind001 commented 1 year ago

Answers checklist.

IDF version.

IDFv4.4

Operating System used.

Windows

How did you build your project?

Command line with idf.py

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

CMD

What is the expected behavior?

build successfully

What is the actual behavior?

fatal error: driver/temperature_sensor.h: No such file or directory

Steps to reproduce.

  1. Create a new project using idf.py create-project temp
  2. copy main file from examples/peripherals/temperature_sensor/temp_sensor/ of current git repository
  3. idf.py set-target esp32-s3
  4. idf.py build ...

Build or installation Logs.

C:\Users\arvind\temp_sensor_test\temp>idf.py set-target esp32-s3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'c:\users\arvind\temp_sensor_test\temp\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32s3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory c:\users\arvind\temp_sensor_test\temp\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s3 -DCCACHE_ENABLE=1 c:\users\arvind\temp_sensor_test\temp"...
-- Found Git: C:/Users/arvind/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/arvind/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe

-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/arvind/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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/arvind/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/Users/arvind/temp_sensor_test/temp/sdkconfig
-- Found Python3: C:/Users/arvind/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter

-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "temp" version: 1
-- Adding linker script C:/Users/arvind/temp_sensor_test/temp/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib-time.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32s3 esp_adc_cal 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_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/app_trace C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/app_update C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/asio C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader_support C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bt C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/cbor C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/cmock C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/coap C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/console C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/cxx C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/driver C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/efuse C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp-tls C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp32s3 C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_adc_cal C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_common C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_eth C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_event C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_gdbstub C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hid C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_http_client C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_http_server C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_https_ota C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_https_server C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_ipc C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_lcd C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_local_ctrl C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_netif C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_phy C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_pm C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_ringbuf C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_serial_slave_link C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_system C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_timer C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_websocket_client C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_wifi C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/espcoredump C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esptool_py C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/expat C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/fatfs C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freemodbus C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freertos C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/hal C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/heap C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/idf_test C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/ieee802154 C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/jsmn C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/json C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/libsodium C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/log C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/lwip C:/Users/arvind/temp_sensor_test/temp/main C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mbedtls C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mdns C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mqtt C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/newlib C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/nghttp C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/nvs_flash C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/openssl C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/openthread C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/partition_table C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/perfmon C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/protobuf-c C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/protocomm C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/pthread C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/sdmmc C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/spi_flash C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/spiffs C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/tcp_transport C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/tcpip_adapter C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/tinyusb C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/ulp C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/unity C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/usb C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/vfs C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wear_levelling C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wifi_provisioning C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wpa_supplicant C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/arvind/temp_sensor_test/temp/build

C:\Users\arvind\temp_sensor_test\temp>idf.py build
Executing action: all (aliases: build)
Running ninja in directory c:\users\arvind\temp_sensor_test\temp\build
Executing "ninja all"...
[12/1057] 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,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[379/1057] Performing configure step for 'bootloader'
-- Found Git: C:/Users/arvind/tools/idf-git/2.34.2/cmd/git.exe (found version "2.34.1.windows.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/arvind/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/arvind/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-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/arvind/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/Users/arvind/temp_sensor_test/temp/sdkconfig
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32s3 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/arvind/frameworks/esp-idf-v4.4.1/components/bootloader C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader_support C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/efuse C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp32s3 C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_common C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_system C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esptool_py C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freertos C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/hal C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/log C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader/subproject/main C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader/subproject/components/micro-ecc C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/newlib C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/partition_table C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/spi_flash C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/arvind/temp_sensor_test/temp/build/bootloader
[470/1057] Performing build step for 'bootloader'
[1/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[2/101] Generating project_elf_src_esp32s3.c
[3/101] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj
[4/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[5/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gdma_periph.c.obj
[6/101] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[7/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gpio_periph.c.obj
[8/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2c_periph.c.obj
[9/101] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[10/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/adc_periph.c.obj
[11/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/lcd_periph.c.obj
[12/101] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32s3.c.obj
[13/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/dedic_gpio_periph.c.obj
[14/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rmt_periph.c.obj
[15/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2s_periph.c.obj
[16/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/mcpwm_periph.c.obj
[17/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/interrupts.c.obj
[18/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sigmadelta_periph.c.obj
[19/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/spi_periph.c.obj
[20/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdio_slave_periph.c.obj
[21/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/ledc_periph.c.obj
[22/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/timer_periph.c.obj
[23/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/pcnt_periph.c.obj
[24/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/touch_sensor_periph.c.obj
[25/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_phy_periph.c.obj
[26/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_periph.c.obj
[27/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdmmc_periph.c.obj
[28/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/uart_periph.c.obj
[29/101] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32s3/spi_flash_rom_patch.c.obj
[30/101] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rtc_io_periph.c.obj
[31/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[32/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[33/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[34/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[35/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32s3.c.obj
[36/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[37/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[38/101] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[39/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[40/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[41/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[42/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[43/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32s3.c.obj
[44/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[45/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[46/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[47/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_soc.c.obj
[48/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_sha.c.obj
[49/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32s3.c.obj
[50/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_esp32s3.c.obj
[51/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[52/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_table.c.obj
[53/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[54/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[55/101] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[56/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[57/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32xx.c.obj
[58/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_fields.c.obj
[59/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_rtc_calib.c.obj
[60/101] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[61/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[62/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk_init.c.obj
[63/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_utility.c.obj
[64/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[65/101] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[66/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[67/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_wdt.c.obj
[68/101] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[69/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_pm.c.obj
[70/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk.c.obj
[71/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_time.c.obj
[72/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[73/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_sleep.c.obj
[74/101] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[75/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[76/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/chip_info.c.obj
[77/101] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_init.c.obj
[78/101] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[79/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[80/101] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[81/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj
[82/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[83/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[84/101] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[85/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[86/101] Linking C static library esp-idf\log\liblog.a
[87/101] Linking C static library esp-idf\esp_rom\libesp_rom.a
[88/101] Linking C static library esp-idf\esp_common\libesp_common.a
[89/101] Linking C static library esp-idf\xtensa\libxtensa.a
[90/101] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[91/101] Linking C static library esp-idf\esp_system\libesp_system.a
[92/101] Linking C static library esp-idf\efuse\libefuse.a
[93/101] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[94/101] Linking C static library esp-idf\spi_flash\libspi_flash.a
[95/101] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[96/101] Linking C static library esp-idf\soc\libsoc.a
[97/101] Linking C static library esp-idf\hal\libhal.a
[98/101] Linking C static library esp-idf\main\libmain.a
[99/101] Linking C executable bootloader.elf
[100/101] Generating binary image from built executable
esptool.py v3.3-dev
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated C:/Users/arvind/temp_sensor_test/temp/build/bootloader/bootloader.bin
[101/101] cmd.exe /C "cd /D C:\Users\arvind\temp_sensor_test\temp\build\bootloader\esp-idf\esptool_py && C:\Users\arvind\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Users/arvind/frameworks/esp-idf-v4.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Users/arvind/temp_sensor_test/temp/build/bootloader/bootloader.bin"
Bootloader binary size 0x51a0 bytes. 0x2e60 bytes (36%) free.
[1048/1057] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/temp_sensor_main.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/temp_sensor_main.c.obj
ccache C:\Users\arvind\tools\xtensa-esp32s3-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -Iconfig -I../main -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/newlib/platform_include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freertos/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freertos/include/esp_additions/freertos -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freertos/port/xtensa/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freertos/include/esp_additions -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support/include/soc -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support/include/soc/esp32s3 -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support/port/esp32s3/. -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hw_support/port/esp32s3/private_include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/heap/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/log/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/lwip/include/apps -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/lwip/include/apps/sntp -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/lwip/lwip/src/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/lwip/port/esp32/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/lwip/port/esp32/include/arch -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc/esp32s3/. -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/soc/esp32s3/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/hal/esp32s3/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/hal/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/hal/platform_port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/include/esp32s3 -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_rom/esp32s3 -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_common/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_system/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_system/port/soc -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_system/port/public_compat -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/xtensa/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/xtensa/esp32s3/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/driver/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/driver/esp32s3/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_pm/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_ringbuf/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/efuse/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/efuse/esp32s3/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/vfs/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_wifi/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_event/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_netif/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_eth/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/tcpip_adapter/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_phy/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_phy/esp32s3/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_ipc/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/app_trace/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_timer/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mbedtls/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mbedtls/mbedtls/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mbedtls/esp_crt_bundle/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/app_update/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/spi_flash/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/bootloader_support/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/nvs_flash/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/pthread/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_gdbstub/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_gdbstub/xtensa -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_gdbstub/esp32s3 -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/espcoredump/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/espcoredump/include/port/xtensa -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wpa_supplicant/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wpa_supplicant/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wpa_supplicant/esp_supplicant/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/ieee802154/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/console -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/asio/asio/asio/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/asio/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/cbor/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/unity/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/unity/unity/src -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/cmock/CMock/src -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/coap/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/coap/libcoap/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/nghttp/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/nghttp/nghttp2/lib/includes -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp-tls -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp-tls/esp-tls-crypto -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_adc_cal/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_hid/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/tcp_transport/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_http_client/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_http_server/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_https_ota/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_lcd/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_lcd/interface -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/protobuf-c/protobuf-c -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/protocomm/include/common -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/protocomm/include/security -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/protocomm/include/transports -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mdns/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_local_ctrl/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/sdmmc/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_serial_slave_link/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/esp_websocket_client/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/expat/expat/expat/lib -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/expat/port/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wear_levelling/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/fatfs/diskio -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/fatfs/vfs -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/fatfs/src -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/freemodbus/common/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/idf_test/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/idf_test/include/esp32s3 -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/jsmn/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/json/cJSON -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/libsodium/libsodium/src/libsodium/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/libsodium/port_include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/mqtt/esp-mqtt/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/openssl/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/perfmon/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/spiffs/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/usb/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/ulp/include -IC:/Users/arvind/frameworks/esp-idf-v4.4.1/components/wifi_provisioning/include -mlongcalls -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=C:/Users/arvind/temp_sensor_test/temp=. -fmacro-prefix-map=C:/Users/arvind/frameworks/esp-idf-v4.4.1=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4.1-dirty\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/temp_sensor_main.c.obj -MF esp-idf\main\CMakeFiles\__idf_main.dir\temp_sensor_main.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/temp_sensor_main.c.obj -c ../main/temp_sensor_main.c
../main/temp_sensor_main.c:10:10: fatal error: driver/temperature_sensor.h: No such file or directory
 #include "driver/temperature_sensor.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[1050/1057] Building C object esp-idf/wifi_provisioning/CMakeFiles/__idf_wifi_provisioning.dir/src/manager.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

C:\Users\arvind\temp_sensor_test\temp>

More Information.

I'm trying to run an example code that's present on idf v5.0 on my toolchain which is v4.4 because the example file from v4.4 doesn't support esp32s3. same error when setting the target to esp32-s2.

gmdriscoll commented 1 year ago

Not sure if this is a bug or a general pathing issue, but have the same problem with any files that used to be in the framework-espidf/components/driver/include directory. The header files all seem to be in the framework-espidf/components/driver/include/driver directory. I can't figure out how to get the compiler to look in the driver/include/driver directory. I can copy the files back to the driver directory and/or the driver/include directory and it all compiles, but this is not a solution going forward.

AirWind001 commented 1 year ago

Uninstall and clean reinstall fixes the issue

Aecnoril commented 1 year ago

I tried reinstalling esp-idf and it did nothing. Some of my includes work, but some don't. Currently I'm stuck on the esp_tls.h even though the folder is right there next to other components that I cán include..

I can manually add the path to my cmakelists, but I'd have to do that manually for about a third of all the components.. It seems completely random which includes it will accept and which it will simply spit out

igrr commented 1 year ago

@Aecnoril have you added esp_tls component to REQUIRES or PRIV_REQUIRES list in your CMakeLists.txt?