espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
257 stars 154 forks source link

esp-idf v4.4 and master report cmake errors for idf.py set-target (CA-214) #117

Closed andrew-elder closed 2 years ago

andrew-elder commented 2 years ago

IDF version

logix@andrew-ub1:~/esp/esp-idf$ git log
commit 8153bfe4125e6a608abccf1561fd10285016c90a (HEAD, tag: v4.4)
Author: Ivan Grokhotkov <ivan@espressif.com>

esp-aws-iot version

logix@andrew-ub1:~/projects/krado/sw/esp-aws-iot/examples/mqtt/tls_mutual_auth$ git log
commit 544e0d4ae86ab987263e8c88ef62349f77b8f686 (HEAD -> master, origin/master, origin/HEAD)
Merge: 249c573 4c374b5
Author: Piyush Shah <piyush@espressif.com>
Date:   Wed Mar 30 01:19:33 2022 +0800

Output from idf.py set-target running in Linux.

logix@andrew-ub1:~/projects/krado/sw/esp-aws-iot/examples/mqtt/tls_mutual_auth$ git submodule update --recursive
logix@andrew-ub1:~/projects/krado/sw/esp-aws-iot/examples/mqtt/tls_mutual_auth$ 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 '/home/logix/projects/krado/sw/esp-aws-iot/examples/mqtt/tls_mutual_auth/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 /home/logix/projects/krado/sw/esp-aws-iot/examples/mqtt/tls_mutual_auth/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/logix/projects/krado/sw/esp-aws-iot/examples/mqtt/tls_mutual_auth"...
-- Found Git: /usr/bin/git (found version "2.25.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: /home/logix/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/logix/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/logix/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/logix/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/logix/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
CMake Error at /home/logix/esp/esp-idf/tools/cmake/component.cmake:219 (message):
  CMake Warning (dev) at build_properties.temp.cmake:7:

    Syntax Warning in cmake code at column 51

other errors follow, but this is the first one.

andrew-elder commented 2 years ago

Trying

commit afb8251691ae499c4c68581fd828e7e95891c08d (HEAD -> release/beta, origin/release/beta)
Merge: e6b1afa 61685b4
Author: Piyush Shah <piyush@espressif.com>
Date:   Tue Mar 22 13:44:53 2022 +0800

gave the same result.

andrew-elder commented 2 years ago

I'm going to close this because I did a clean checkout to another directory and followed the instructions here and the compilation succeeded. I'll do more research on my side.