esp32c3 set-target build errors

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

esp32c3 set-target build errors

Postby maggymtac » Wed Aug 04, 2021 7:55 am

Hello,


I get theses traces for this command idf.py set-target esp32c3:

Code: Select all

 idf.py set-target esp32c3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory '/home/james/Documents/esp-idf-master/esp_projects/hello_world/build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32c3, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory /home/james/Documents/esp-idf-master/esp_projects/hello_world/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /home/james/Documents/esp-idf-master/esp_projects/hello_world"...
-- Found Git: /usr/bin/git (found version "2.25.1") 
fatal: ni ceci ni aucun de ses répertoires parents (jusqu'au point de montage /) n'est un dépôt git
Arrêt à la limite du système de fichiers (GIT_DISCOVERY_ACROSS_FILESYSTEM n'est pas défini).
-- 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/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Check for working C compiler: /home/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Check for working C compiler: /home/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-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/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++
-- Check for working CXX compiler: /home/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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 esp32c3
-- Project sdkconfig file /home/james/Documents/esp-idf-master/esp_projects/hello_world/sdkconfig
CMake Error at ../../tools/cmake/component.cmake:306 (message):
  Include directory
  '/home/james/Documents/esp-idf-master/components/mbedtls/mbedtls/include'
  is not a directory.
Call Stack (most recent call first):
  ../../tools/cmake/component.cmake:478 (__component_add_include_dirs)
  ../../components/mbedtls/CMakeLists.txt:10 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "/home/james/Documents/esp-idf-master/esp_projects/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/james/Documents/esp-idf-master/esp_projects/hello_world/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1


and this command:

Code: Select all

james@james-Dell-System-XPS-15Z:~/Documents/esp-idf-master/esp_projects/hello_world$ idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/james/Documents/esp-idf-master/esp_projects/hello_world/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32c3 -DCCACHE_ENABLE=0 /home/james/Documents/esp-idf-master/esp_projects/hello_world"...
-- Found Git: /usr/bin/git (found version "2.25.1") 
fatal: ni ceci ni aucun de ses répertoires parents (jusqu'au point de montage /) n'est un dépôt git
Arrêt à la limite du système de fichiers (GIT_DISCOVERY_ACROSS_FILESYSTEM n'est pas défini).
-- 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/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Check for working C compiler: /home/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc
-- Check for working C compiler: /home/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-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/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++
-- Check for working CXX compiler: /home/james/.espressif/tools/riscv32-esp-elf/esp-2021r1-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- 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 esp32c3
-- Project sdkconfig file /home/james/Documents/esp-idf-master/esp_projects/hello_world/sdkconfig
CMake Error at ../../tools/cmake/component.cmake:306 (message):
  Include directory
  '/home/james/Documents/esp-idf-master/components/mbedtls/mbedtls/include'
  is not a directory.
Call Stack (most recent call first):
  ../../tools/cmake/component.cmake:478 (__component_add_include_dirs)
  ../../components/mbedtls/CMakeLists.txt:10 (idf_component_register)


-- Configuring incomplete, errors occurred!
See also "/home/james/Documents/esp-idf-master/esp_projects/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/james/Documents/esp-idf-master/esp_projects/hello_world/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

have you an idea about theses problems?

Thank you.

User avatar
ESP_Roland
Posts: 237
Joined: Tue Oct 09, 2018 10:28 am

Re: esp32c3 set-target build errors

Postby ESP_Roland » Wed Aug 04, 2021 5:42 pm

I think you haven't checked out the submodules. Try to run

Code: Select all

git submodule update --init --recursive

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 set-target build errors

Postby maggymtac » Thu Aug 05, 2021 7:46 am

I get project by .zip file from github not by git command.

chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32c3 set-target build errors

Postby chegewara » Thu Aug 05, 2021 9:44 am

That does not include submodules. Check "components\mbedtls" subfolder if it is empty r not.

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 set-target build errors

Postby maggymtac » Thu Aug 05, 2021 10:35 am

Code: Select all

ls -alh ../../components/mbedtls
total 80K
drwxrwxr-x  6 james james 4,0K août   2 21:58 .
drwxrwxr-x 90 james james 4,0K août   2 21:58 ..
-rw-rw-r--  1 james james 8,1K août   2 21:58 CMakeLists.txt
-rw-rw-r--  1 james james 2,7K août   2 21:58 component.mk
drwxrwxr-x  4 james james 4,0K août   2 21:58 esp_crt_bundle
-rw-rw-r--  1 james james  34K août   2 21:58 Kconfig
-rw-rw-r--  1 james james  308 août   2 21:58 Makefile.projbuild
drwxrwxr-x  2 james james 4,0K août   2 21:58 mbedtls
drwxrwxr-x 14 james james 4,0K août   2 21:58 port
drwxrwxr-x  3 james james 4,0K août   2 21:58 test



chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32c3 set-target build errors

Postby chegewara » Thu Aug 05, 2021 1:44 pm

Sorry, i mean mbedtls subfolder in "components/mbedtls", which is actually 3rd party library and submodule.

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 set-target build errors

Postby maggymtac » Thu Aug 05, 2021 2:41 pm

the subfolder is empty.

chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32c3 set-target build errors

Postby chegewara » Thu Aug 05, 2021 3:51 pm

Now you know the reason. It should be pulled from github. That also means you probably are missing all other submodules:
https://github.com/espressif/esp-idf/tr ... ts/mbedtls

maggymtac
Posts: 30
Joined: Wed Aug 04, 2021 7:47 am

Re: esp32c3 set-target build errors

Postby maggymtac » Fri Aug 06, 2021 8:03 pm

It's works now after get esp-idf by git.

Thank you for your help.

Who is online

Users browsing this forum: Yuricsson and 170 guests