将版本从v3.3更新至最新版本后,使用idf.menuconfig及idf.build报错

eric0924
Posts: 2
Joined: Fri Jan 17, 2020 3:21 pm

将版本从v3.3更新至最新版本后,使用idf.menuconfig及idf.build报错

Postby eric0924 » Fri Jan 17, 2020 3:31 pm

更新到最新版本后,使用idf.menuconfig命令报错,log如下:

Code: Select all

Executing action: menuconfig
Running cmake in directory /home/eric/esp/hello_world/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=0 /home/eric/esp/hello_world"...
Warn about uninitialized values.
-- Found Git: /usr/bin/git (found version "2.17.1") 
23:16:20.181465 git.c:576               trace: exec: git-submodule status
23:16:20.181505 run-command.c:646       trace: run_command: git-submodule status
23:16:20.189025 git.c:344               trace: built-in: git rev-parse --git-dir
23:16:20.190261 git.c:344               trace: built-in: git rev-parse --git-path objects
23:16:20.191193 git.c:344               trace: built-in: git rev-parse -q --git-dir
23:16:20.194047 git.c:344               trace: built-in: git rev-parse --show-prefix
23:16:20.195722 git.c:344               trace: built-in: git rev-parse --show-toplevel
23:16:20.197462 git.c:344               trace: built-in: git submodule--helper status
23:16:20.198631 run-command.c:646       trace: run_command: cd components/asio/asio; unset GIT_PREFIX; GIT_DIR=.git git describe 3b66e5b051381fb70de9c2791df70a06181c64e3
23:16:20.201386 run-command.c:646       trace: run_command: cd components/bootloader/subproject/components/micro-ecc/micro-ecc; unset GIT_PREFIX; GIT_DIR=.git git describe d037ec89546fad14b5c4d5456c2e23a71e554966
23:16:20.203553 run-command.c:646       trace: run_command: cd components/bootloader/subproject/components/micro-ecc/micro-ecc; unset GIT_PREFIX; GIT_DIR=.git git describe --tags d037ec89546fad14b5c4d5456c2e23a71e554966
23:16:20.204909 run-command.c:646       trace: run_command: cd components/bt/controller/lib; unset GIT_PREFIX; GIT_DIR=.git git describe e9b76dc715a2ab326633517c368ab0776c9a18e9
23:16:20.206042 run-command.c:646       trace: run_command: cd components/bt/controller/lib; unset GIT_PREFIX; GIT_DIR=.git git describe --tags e9b76dc715a2ab326633517c368ab0776c9a18e9
23:16:20.207394 run-command.c:646       trace: run_command: cd components/bt/controller/lib; unset GIT_PREFIX; GIT_DIR=.git git describe --contains e9b76dc715a2ab326633517c368ab0776c9a18e9
23:16:20.208756 run-command.c:646       trace: run_command: cd components/bt/controller/lib; unset GIT_PREFIX; GIT_DIR=.git git describe --all --always e9b76dc715a2ab326633517c368ab0776c9a18e9
23:16:20.211285 run-command.c:646       trace: run_command: cd components/bt/host/nimble/nimble; unset GIT_PREFIX; GIT_DIR=.git git describe 4a4be394951942cb86b8ed3f779d0c6e733f6e6b
23:16:20.233575 run-command.c:646       trace: run_command: cd components/bt/host/nimble/nimble; unset GIT_PREFIX; GIT_DIR=.git git describe --tags 4a4be394951942cb86b8ed3f779d0c6e733f6e6b
23:16:20.255819 run-command.c:646       trace: run_command: cd components/bt/host/nimble/nimble; unset GIT_PREFIX; GIT_DIR=.git git describe --contains 4a4be394951942cb86b8ed3f779d0c6e733f6e6b
23:16:20.257429 run-command.c:646       trace: run_command: cd components/bt/host/nimble/nimble; unset GIT_PREFIX; GIT_DIR=.git git describe --all --always 4a4be394951942cb86b8ed3f779d0c6e733f6e6b
23:16:20.258915 run-command.c:646       trace: run_command: cd components/cbor/tinycbor; unset GIT_PREFIX; GIT_DIR=.git git describe d2dd95cb8841d88d5a801e3ef9c328fd6200e7bd
23:16:20.260756 run-command.c:646       trace: run_command: cd components/coap/libcoap; unset GIT_PREFIX; GIT_DIR=.git git describe 98954eb30a2e728e172a6cd29430ae5bc999b585
23:16:20.263403 run-command.c:646       trace: run_command: cd components/esp_wifi/lib; unset GIT_PREFIX; GIT_DIR=.git git describe 9434d43c5ee712ce140da3183126dc7d17bc6c10
23:16:20.264611 run-command.c:646       trace: run_command: cd components/esp_wifi/lib; unset GIT_PREFIX; GIT_DIR=.git git describe --tags 9434d43c5ee712ce140da3183126dc7d17bc6c10
23:16:20.266473 run-command.c:646       trace: run_command: cd components/esp_wifi/lib; unset GIT_PREFIX; GIT_DIR=.git git describe --contains 9434d43c5ee712ce140da3183126dc7d17bc6c10
23:16:20.269995 run-command.c:646       trace: run_command: cd components/esp_wifi/lib; unset GIT_PREFIX; GIT_DIR=.git git describe --all --always 9434d43c5ee712ce140da3183126dc7d17bc6c10
23:16:20.276594 run-command.c:646       trace: run_command: cd components/esptool_py/esptool; unset GIT_PREFIX; GIT_DIR=.git git describe f04d34bcab29ace798d2d3800ba87020cccbbfdd
23:16:20.277866 run-command.c:646       trace: run_command: cd components/esptool_py/esptool; unset GIT_PREFIX; GIT_DIR=.git git describe --tags f04d34bcab29ace798d2d3800ba87020cccbbfdd
23:16:20.279464 run-command.c:646       trace: run_command: cd components/esptool_py/esptool; unset GIT_PREFIX; GIT_DIR=.git git describe --contains f04d34bcab29ace798d2d3800ba87020cccbbfdd
23:16:20.280872 run-command.c:646       trace: run_command: cd components/esptool_py/esptool; unset GIT_PREFIX; GIT_DIR=.git git describe --all --always f04d34bcab29ace798d2d3800ba87020cccbbfdd
23:16:20.282028 run-command.c:646       trace: run_command: cd components/expat/expat; unset GIT_PREFIX; GIT_DIR=.git git describe 20f3da24e5b5dd49ec0785cae68dcc4b149331c0
23:16:20.284181 run-command.c:646       trace: run_command: cd components/json/cJSON; unset GIT_PREFIX; GIT_DIR=.git git describe fa8b4545522a7b9031246158f12164ed5698fbf5
23:16:20.289870 run-command.c:646       trace: run_command: cd components/json/cJSON; unset GIT_PREFIX; GIT_DIR=.git git describe --tags fa8b4545522a7b9031246158f12164ed5698fbf5
23:16:20.292726 run-command.c:646       trace: run_command: cd components/libsodium/libsodium; unset GIT_PREFIX; GIT_DIR=.git git describe 41c7e47efd879e31504dbe9b2a46426f4551ac60
23:16:20.295474 run-command.c:646       trace: run_command: cd components/lwip/lwip; unset GIT_PREFIX; GIT_DIR=.git git describe 066ffe0abb83eee47808bf77c1bcfef51ad077fe
23:16:20.325764 run-command.c:646       trace: run_command: cd components/lwip/lwip; unset GIT_PREFIX; GIT_DIR=.git git describe --tags 066ffe0abb83eee47808bf77c1bcfef51ad077fe
23:16:20.356063 run-command.c:646       trace: run_command: cd components/lwip/lwip; unset GIT_PREFIX; GIT_DIR=.git git describe --contains 066ffe0abb83eee47808bf77c1bcfef51ad077fe
23:16:20.357544 run-command.c:646       trace: run_command: cd components/lwip/lwip; unset GIT_PREFIX; GIT_DIR=.git git describe --all --always 066ffe0abb83eee47808bf77c1bcfef51ad077fe
23:16:20.358919 run-command.c:646       trace: run_command: cd components/mbedtls/mbedtls; unset GIT_PREFIX; GIT_DIR=.git git describe 070e356476ae3df495c306c1bfc43c7ed9d32fc7
23:16:20.360511 run-command.c:646       trace: run_command: cd components/mqtt/esp-mqtt; unset GIT_PREFIX; GIT_DIR=.git git describe 616fa257fb44ba46e057e62f5ba6e507863838b7
23:16:20.362899 run-command.c:646       trace: run_command: cd components/mqtt/esp-mqtt; unset GIT_PREFIX; GIT_DIR=.git git describe --tags 616fa257fb44ba46e057e62f5ba6e507863838b7
23:16:20.365328 run-command.c:646       trace: run_command: cd components/nghttp/nghttp2; unset GIT_PREFIX; GIT_DIR=.git git describe 5e13274b7c533b00f2a14582de5f6b34c08b0018
23:16:20.367621 run-command.c:646       trace: run_command: cd components/protobuf-c/protobuf-c; unset GIT_PREFIX; GIT_DIR=.git git describe 1390409f4ee4e26d0635310995b516eb702c3f9e
23:16:20.371911 run-command.c:646       trace: run_command: cd components/protobuf-c/protobuf-c; unset GIT_PREFIX; GIT_DIR=.git git describe --tags 1390409f4ee4e26d0635310995b516eb702c3f9e
23:16:20.373572 run-command.c:646       trace: run_command: cd components/spiffs/spiffs; unset GIT_PREFIX; GIT_DIR=.git git describe 07e013056dd976d12ae36db5c54a275e1497f6c8
23:16:20.410951 run-command.c:646       trace: run_command: cd components/unity/unity; unset GIT_PREFIX; GIT_DIR=.git git describe 622918a7df5336b555ffd8e525d14872f7a0e8fa
23:16:20.417464 run-command.c:646       trace: run_command: cd components/unity/unity; unset GIT_PREFIX; GIT_DIR=.git git describe --tags 622918a7df5336b555ffd8e525d14872f7a0e8fa
23:16:20.423954 run-command.c:646       trace: run_command: cd examples/build_system/cmake/import_lib/main/lib/tinyxml2; unset GIT_PREFIX; GIT_DIR=.git git describe ff61650517cc32d524689366f977716e73d4f924
CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/expat/expat is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/json/cJSON is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/libsodium/libsodium is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/lwip/lwip is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/mbedtls/mbedtls is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/mqtt/esp-mqtt is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/nghttp/nghttp2 is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/protobuf-c/protobuf-c is out of date.  Run 'git
  submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/spiffs/spiffs is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule components/unity/unity is out of date.  Run 'git submodule
  update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/eric/esp/esp-idf/tools/cmake/git_submodules.cmake:52 (message):
  Git submodule examples/build_system/cmake/import_lib/main/lib/tinyxml2 is
  out of date.  Run 'git submodule update --init --recursive' to fix.
Call Stack (most recent call first):
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:78 (git_submodule_check)
  /home/eric/esp/esp-idf/tools/cmake/build.cmake:160 (__build_get_idf_git_revision)
  /home/eric/esp/esp-idf/tools/cmake/idf.cmake:48 (__build_init)
  /home/eric/esp/esp-idf/tools/cmake/project.cmake:7 (include)
  CMakeLists.txt:5 (include)


-- IDF_TARGET not set, using default target: esp32
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: xtensa-esp32-elf-gcc
CMake Error at /home/eric/esp/esp-idf/tools/cmake/project.cmake:308 (__project):
  The CMAKE_C_COMPILER:

    xtensa-esp32-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at /home/eric/esp/esp-idf/tools/cmake/project.cmake:308 (__project):
  The CMAKE_CXX_COMPILER:

    xtensa-esp32-elf-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


CMake Error at /home/eric/esp/esp-idf/tools/cmake/project.cmake:308 (__project):
  The CMAKE_ASM_COMPILER:

    xtensa-esp32-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:6 (project)


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "/home/eric/esp/hello_world/build/CMakeFiles/CMakeOutput.log".
See also "/home/eric/esp/hello_world/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
根据报错信息使用

Code: Select all

git submodule update --init --recursive
后,错误信息依旧。希望您能在百忙之中给予指点,感激不尽!

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 将版本从v3.3更新至最新版本后,使用idf.menuconfig及idf.build报错

Postby ESP_Gargamel » Mon Jan 20, 2020 10:38 am

1、按照 https://docs.espressif.com/projects/esp ... index.html 重新搭建一下环境
2、把 hello_world 目录下的 build 和 sdkconfig 删除

Who is online

Users browsing this forum: No registered users and 187 guests