ESP IDF长时间未使用后,工具链出错,卸载重装也不行

zuolongjun
Posts: 2
Joined: Sat Dec 19, 2020 6:59 am

ESP IDF长时间未使用后,工具链出错,卸载重装也不行

Postby zuolongjun » Fri Oct 17, 2025 11:33 pm

win10系统,使用esp-idf-tools-setup-2.3.exe安装,SDK版本是esp idf 4.1.

第一次安装ESP IDF工具链没有问题,一个月后便出错(中间安装卸载过esp adf等其它SDK、python从3.7升级到3.12).
错误为:No CMAKE_ASM_COMPILER could be found.

使用esp-idf-tools-setup-2.3.exe卸载工具链,然后重新安装,依然是下边错误。安装过程没有错误。

Using Python in C:\Python312\
Python 3.12.4
Using Git in C:\Program Files\Git\cmd\
git version 2.21.0.windows.1
Setting IDF_PATH: E:\evtek\esp_dsled\esp-idf

Adding ESP-IDF tools to PATH...
C:\Users\zuolo\.espressif\tools\xtensa-esp32-elf\esp-2020r2-8.2.0\xtensa-esp32-elf\bin
C:\Users\zuolo\.espressif\tools\xtensa-esp32s2-elf\esp-2020r2-8.2.0\xtensa-esp32s2-elf\bin
C:\Users\zuolo\.espressif\tools\esp32ulp-elf\2.28.51-esp-20191205\esp32ulp-elf-binutils\bin
C:\Users\zuolo\.espressif\tools\esp32s2ulp-elf\2.28.51-esp-20191205\esp32s2ulp-elf-binutils\bin
C:\Users\zuolo\.espressif\tools\cmake\3.13.4\bin
C:\Users\zuolo\.espressif\tools\openocd-esp32\v0.10.0-esp32-20191114\openocd-esp32\bin
C:\Users\zuolo\.espressif\tools\ninja\1.9.0\
C:\Users\zuolo\.espressif\tools\idf-exe\1.0.1\
C:\Users\zuolo\.espressif\tools\ccache\3.7\
C:\Users\zuolo\.espressif\python_env\idf4.1_py3.12_env\Scripts
E:\evtek\esp_dsled\esp-idf\tools

Checking if Python packages are up to date...
E:\evtek\esp_dsled\esp-idf\tools\check_python_dependencies.py:22: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
Python requirements from E:\evtek\esp_dsled\esp-idf\requirements.txt are satisfied.

Done! You can now compile ESP-IDF projects.
Go to the project directory and run:

idf.py build


E:\evtek\esp_dsled\esp-idf>idf.py build
E:\evtek\esp_dsled\esp-idf\tools\check_python_dependencies.py:22: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
E:\evtek\esp_dsled\esp-idf\tools\idf.py:364: DeprecationWarning: 'MultiCommand' is deprecated and will be removed in Click 9.0. Use 'Group' instead.
class CLI(click.MultiCommand):
Executing action: all (aliases: build)
Running cmake in directory e:\evtek\esp_dsled\esp-idf\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DCCACHE_ENABLE=1 e:\evtek\esp_dsled\esp-idf"...
Warn about uninitialized values.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.

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.


CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.

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.


CMake Error at CMakeLists.txt:2 (project):
No CMAKE_ASM_COMPILER could be found.

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.


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "E:/evtek/esp_dsled/esp-idf/build/CMakeFiles/CMakeOutput.log".
See also "E:/evtek/esp_dsled/esp-idf/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

E:\evtek\esp_dsled\esp-idf>

Who is online

Users browsing this forum: No registered users and 3 guests