ESP32 Arduino Lib Builder fails because project depends on idf (>=5.0.0,<5.1.0)

labbrigercorny
Posts: 2
Joined: Thu Aug 10, 2023 2:22 pm

ESP32 Arduino Lib Builder fails because project depends on idf (>=5.0.0,<5.1.0)

Postby labbrigercorny » Thu Aug 10, 2023 2:46 pm

Hey,

I am trying to build a version of the Arduino-ESP32 because I need MbedTLS' CMAC, which is not compiled into the static Arduino version of IDF by default.

Unfortunately the build process fails with the following error message:

Code: Select all

Dependencies lock doesn't exist, solving dependencies.
Skipping optional dependency: espressif/mdns
Skipping optional dependency: espressif/mdns
.......Skipping optional dependency: espressif/mdns
CMake Error at esp-idf/tools/cmake/build.cmake:464 (message):
  ERROR: Because project depends on idf (>=5.0.0,<5.1.0) which doesn't match
  any versions, version solving failed.

Call Stack (most recent call first):
  esp-idf/tools/cmake/project.cmake:393 (idf_build_process)
  CMakeLists.txt:9 (project)
I use the following incantation to get the build process started:

Code: Select all

./build.sh \
  -A master \
  -I release/v4.4 \
  -i v4.4.5 \
  -c ~/.platformio/packages/framework-arduinoespressif32 \
  -t esp32s3 \
  -b build \
   mbedtls_cmac
I created a file config/defconfig.mbedtls_cmac that contains the following line to include CMAC in the build:

Code: Select all

CONFIG_MBEDTLS_CMAC_C=y
I tried to get as clode as possible to the current Arduino-ESP32 (2.0.11) requirements which should be based on ESP-IDF v4.4.5.

The error itself does not make any sense to me, since the idea is to explicitly compile for version 4.4.5 and _not_ 5.0.0.

I tried the same procedure with IDF release/v5.0 and commit tag v5.0.0, just to see what happens and got a message, that Arduino-ESP32 does not support IDF versions higher than 4.4 yet. Just as expected.

I tried the process without my modifications (mbedtls_cmac) and get the same results.

I have no clue which component causes these issues and a grep for any occurences of "5.0.0" did not reveal any obvious misconfigurations of dependency requirements that I could find.

I would be very thankful for any clues, hints or ideas that might help!

Thank you!

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 Arduino Lib Builder fails because project depends on idf (>=5.0.0,<5.1.0)

Postby lbernstone » Fri Aug 11, 2023 2:15 am

lib-builder has branches. If you check out https://github.com/espressif/esp32-ardu ... lease/v4.4 , it will be the appropriate version for the current arduino-esp32 master (the 2.x version). The master in lib-builder is currently ahead, because the espressif team is trying to get 3.0 rolled out, which goes with the https://github.com/espressif/arduino-es ... -v5.1-libs branch
or, you could just stop forcing the versions in your build :)

labbrigercorny
Posts: 2
Joined: Thu Aug 10, 2023 2:22 pm

Re: ESP32 Arduino Lib Builder fails because project depends on idf (>=5.0.0,<5.1.0)

Postby labbrigercorny » Fri Aug 11, 2023 9:09 am

Hey lbernstone,
thanks for your feedback. That seems to have done the trick. :roll:

I had checked out the correct branch for locally, but forgot to change the build script parameter, as you said.

Now with this configuration it runs through. Thank you! :mrgreen:

Code: Select all

./build.sh \
  -A idf-release/v4.4 \
  -I release/v4.4 \
  -i v4.4.5 \
  -c ~/.platformio/packages/framework-arduinoespressif32 \
  -t esp32s3 \
  -b build \
   mbedtls_cmac

Who is online

Users browsing this forum: No registered users and 51 guests