espressif / esp-matter

Espressif's SDK for Matter
Apache License 2.0
688 stars 155 forks source link

Failed to resolve component 'esp_adc_cal'. #91

Closed AchimPieters closed 1 year ago

AchimPieters commented 1 year ago

Keep getting this error:

achimpieters@Achims-iMac esp % cd ~/esp/esp-matter-demo/examples/light           
export IDF_CCACHE_ENABLE=1
idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/Users/achimpieters/esp/esp-matter-demo/examples/light/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /Users/achimpieters/esp/esp-matter-demo/examples/light/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 /Users/achimpieters/esp/esp-matter-demo/examples/light"...
-- Found Git: /usr/bin/git (found version "2.24.3 (Apple Git-128)") 
-- Component directory /Users/achimpieters/esp/esp-matter-demo/examples/common/external_platform does not contain a CMakeLists.txt file. No component will be added
CMake Warning at /Users/achimpieters/esp/esp-idf/tools/cmake/project.cmake:337 (message):
  enabled ccache in build but ccache program not found
Call Stack (most recent call first):
  CMakeLists.txt:41 (project)

-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/achimpieters/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/achimpieters/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - 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: /Users/achimpieters/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
Solving dependencies requirements
Updating lock file at /Users/achimpieters/esp/esp-matter-demo/examples/light/dependencies.lock
Processing 3 dependencies:
[1/3] espressif/button (2.0.1)
[2/3] espressif/led_strip (1.1.0-alpha)
[3/3] idf (5.0.0)
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.10/bin/python3.10 (found version "3.10.8") found components: Interpreter 
CMake Error at /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:245 (message):
  Failed to resolve component 'esp_adc_cal'.
Call Stack (most recent call first):
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:287 (__build_resolve_and_add_req)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:282 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:282 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:288 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/build.cmake:574 (__build_expand_requirements)
  /Users/achimpieters/esp/esp-idf/tools/cmake/project.cmake:440 (idf_build_process)
  CMakeLists.txt:41 (project)

-- Configuring incomplete, errors occurred!
See also "/Users/achimpieters/esp/esp-matter-demo/examples/light/build/CMakeFiles/CMakeOutput.log".
HINT: The component esp_adc_cal has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details.
cmake failed with exit code 1, output of the command is in the /Users/achimpieters/esp/esp-matter-demo/examples/light/build/log/idf_py_stderr_output_15805 and /Users/achimpieters/esp/esp-matter-demo/examples/light/build/log/idf_py_stdout_output_15805
achimpieters@Achims-iMac light % 

How can I fix it?

Already did:

dhrishi commented 1 year ago

@AchimPieters Can you please provide more info - i. If you see this intermittently or always ii. A set of steps that can recreate this along with the SoC used, exact commits and/or branches iii. Does this occur after changing branches in any of the repositories etc.