espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.83k stars 7.32k forks source link

clang-check doesn't work (IDFGH-14104) #14913

Open LEI3550 opened 5 days ago

LEI3550 commented 5 days ago

Answers checklist.

IDF version.

esp-idf-v5.3.1

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

What is the expected behavior?

I followed the instruction to enable the function of clang-tidy in CMD.exe. The steps were shown as "Steps to reproduce".

What is the actual behavior?

The log showed "run-clang-tidy.py not found in your PATH". The clang-check didn't work.

Steps to reproduce.

  1. cd C:\Espressif\frameworks\esp-idf-v5.3.1
  2. set IDF_TOOLCHAIN=clang
  3. install.bat
  4. export.bat
  5. idf_tools.py install esp-clang
  6. export.bat
  7. cd C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world
  8. idf.py fullclean
  9. idf.py clang-check ...

Build or installation Logs.

Microsoft Windows [Version 10.0.22631.4317]
(c) Microsoft Corporation. All rights reserved.

C:\Windows\System32>set IDF_TOOLCHAIN=clang

C:\Windows\System32>cd C:\Espressif\frameworks\esp-idf-v5.3.1

C:\Espressif\frameworks\esp-idf-v5.3.1>set IDF_TOOLCHAIN=clang

C:\Espressif\frameworks\esp-idf-v5.3.1>install.bat
Installing ESP-IDF tools
Selected targets are: esp32p4, esp32c2, esp32s2, esp32c3, esp32h2, esp32s3, esp32c6, esp32, esp32c61, esp32c5
Current system platform: win64
Installing tools: xtensa-esp-elf-gdb, riscv32-esp-elf-gdb, xtensa-esp-elf, riscv32-esp-elf, esp32ulp-elf, cmake, openocd-esp32, ninja, idf-exe, ccache, dfu-util, esp-rom-elfs
Skipping xtensa-esp-elf-gdb@14.2_20240403 (already installed)
Skipping riscv32-esp-elf-gdb@14.2_20240403 (already installed)
Skipping xtensa-esp-elf@esp-13.2.0_20240530 (already installed)
Skipping riscv32-esp-elf@esp-13.2.0_20240530 (already installed)
Skipping esp32ulp-elf@2.38_20240113 (already installed)
Skipping cmake@3.24.0 (already installed)
Skipping openocd-esp32@v0.12.0-esp32-20240318 (already installed)
Skipping ninja@1.11.1 (already installed)
Skipping idf-exe@1.0.3 (already installed)
Skipping ccache@4.8 (already installed)
Skipping dfu-util@0.11 (already installed)
Skipping esp-rom-elfs@20240305 (already installed)
Setting up Python environment
Python 3.11.2
pip 24.3.1 from C:\Espressif\python_env\idf5.3_py3.11_env\Lib\site-packages\pip (python 3.11)
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'C:\\Espressif\\python_env\\idf5.3_py3.11_env\\idf_version.txt'. (Diagnostic information. It can be ignored.)
Downloading https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.3.txt
Destination: C:\Espressif\espidf.constraints.v5.3.txt.tmp
Done
Upgrading pip and setuptools...
Requirement already satisfied: pip in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (24.3.1)
Requirement already satisfied: setuptools in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (71.0.0)
Installing Python packages
 Constraint file: C:\Espressif\espidf.constraints.v5.3.txt
 Requirement files:
  - C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt
Looking in indexes: https://pypi.org/simple, https://dl.espressif.com/pypi
Ignoring importlib_metadata: markers 'python_version < "3.8"' don't match your environment
Requirement already satisfied: setuptools in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 3)) (71.0.0)
Requirement already satisfied: packaging in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 4)) (24.2)
Requirement already satisfied: click in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 7)) (8.1.7)
Requirement already satisfied: pyserial in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 8)) (3.5)
Requirement already satisfied: cryptography in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 9)) (42.0.8)
Requirement already satisfied: pyparsing in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 10)) (3.2.0)
Requirement already satisfied: pyelftools in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 11)) (0.31)
Requirement already satisfied: idf-component-manager in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2.0.4)
Requirement already satisfied: esp-coredump in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 13)) (1.12.0)
Requirement already satisfied: esptool in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (4.8.1)
Requirement already satisfied: esp-idf-kconfig in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 15)) (2.3.0)
Requirement already satisfied: esp-idf-monitor in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 16)) (1.5.0)
Requirement already satisfied: esp-idf-nvs-partition-gen in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 17)) (0.1.6)
Requirement already satisfied: esp-idf-size in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 18)) (1.6.1)
Requirement already satisfied: esp-idf-panic-decoder in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 19)) (1.2.1)
Requirement already satisfied: pyclang in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 20)) (0.5.0)
Requirement already satisfied: construct in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 21)) (2.10.70)
Requirement already satisfied: freertos_gdb in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from -r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 24)) (1.0.3)
Requirement already satisfied: colorama in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from click->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 7)) (0.4.6)
Requirement already satisfied: cffi>=1.12 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from cryptography->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 9)) (1.17.1)
Requirement already satisfied: pyyaml in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (6.0.2)
Requirement already satisfied: requests in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2.32.3)
Requirement already satisfied: requests-file in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2.1.0)
Requirement already satisfied: requests-toolbelt in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (1.0.0)
Requirement already satisfied: tqdm in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (4.66.6)
Requirement already satisfied: jsonref in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (1.1.0)
Requirement already satisfied: pydantic in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2.9.2)
Requirement already satisfied: pydantic-core in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2.23.4)
Requirement already satisfied: pydantic-settings in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2.6.1)
Requirement already satisfied: typing-extensions in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (4.12.2)
Requirement already satisfied: pygdbmi>=0.9.0.2 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esp-coredump->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 13)) (0.11.0.0)
Requirement already satisfied: bitstring!=4.2.0,>=3.1.6 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esptool->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (4.2.3)
Requirement already satisfied: ecdsa>=0.16.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esptool->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (0.19.0)
Requirement already satisfied: reedsolo<1.8,>=1.5.3 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esptool->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (1.7.0)
Requirement already satisfied: intelhex in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esptool->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (2.3.0)
Requirement already satisfied: windows-curses in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esp-idf-kconfig->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 15)) (2.4.0)
Requirement already satisfied: rich in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from esp-idf-size->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 18)) (13.9.4)
Requirement already satisfied: bitarray<3.0.0,>=2.9.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from bitstring!=4.2.0,>=3.1.6->esptool->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (2.9.3)
Requirement already satisfied: pycparser in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from cffi>=1.12->cryptography->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 9)) (2.22)
Requirement already satisfied: six>=1.9.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from ecdsa>=0.16.0->esptool->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 14)) (1.16.0)
Requirement already satisfied: annotated-types>=0.6.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from pydantic->idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (0.7.0)
Requirement already satisfied: python-dotenv>=0.21.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from pydantic-settings->idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (1.0.1)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from requests->idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from requests->idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from requests->idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (1.26.20)
Requirement already satisfied: certifi>=2017.4.17 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from requests->idf-component-manager->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 12)) (2024.8.30)
Requirement already satisfied: markdown-it-py>=2.2.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from rich->esp-idf-size->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 18)) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from rich->esp-idf-size->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 18)) (2.18.0)
Requirement already satisfied: mdurl~=0.1 in c:\espressif\python_env\idf5.3_py3.11_env\lib\site-packages (from markdown-it-py>=2.2.0->rich->esp-idf-size->-r C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt (line 18)) (0.1.2)
All done! You can now run:
   export.bat

C:\Espressif\frameworks\esp-idf-v5.3.1>export.bat
Checking Python compatibility
Setting IDF_PATH: C:\Espressif\frameworks\esp-idf-v5.3.1

Adding ESP-IDF tools to PATH...
Not using an unsupported version of tool cmake found in PATH: 3.21.4.
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'C:\\Espressif\\python_env\\idf5.3_py3.11_env\\idf_version.txt'. (Diagnostic information. It can be ignored.)
    C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin
    C:\Espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin
    C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin
    C:\Espressif\tools\esp-clang\16.0.1-fe4f10a809\esp-clang\bin
    C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin
    C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin
    C:\Espressif\tools\cmake\3.24.0\bin
    C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin
    C:\Espressif\tools\ninja\1.11.1\
    C:\Espressif\tools\idf-exe\1.0.3\
    C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64
    C:\Espressif\python_env\idf5.3_py3.11_env\Scripts
    C:\Espressif\frameworks\esp-idf-v5.3.1\tools

Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.3.txt
Requirement files:
 - C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Python requirements are satisfied.

Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of amazon-corretto-11-x64-windows-jdk, espressif-ide, idf-driver, idf-python-wheels use command 'python.exe C:\Espressif\frameworks\esp-idf-v5.3.1\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Espressif\frameworks\esp-idf-v5.3.1\tools\idf_tools.py uninstall --remove-archives'.

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

  idf.py build

C:\Espressif\frameworks\esp-idf-v5.3.1>idf_tools.py install esp-clang
Current system platform: win64
Installing tools: esp-clang
Skipping esp-clang@16.0.1-fe4f10a809 (already installed)

C:\Espressif\frameworks\esp-idf-v5.3.1>export.bat
Checking Python compatibility
Setting IDF_PATH: C:\Espressif\frameworks\esp-idf-v5.3.1

Adding ESP-IDF tools to PATH...
WARNING: The following issue occurred while accessing the ESP-IDF version file in the Python environment: [Errno 2] No such file or directory: 'C:\\Espressif\\python_env\\idf5.3_py3.11_env\\idf_version.txt'. (Diagnostic information. It can be ignored.)
    C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin
    C:\Espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin
    C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20240530\xtensa-esp-elf\bin
    C:\Espressif\tools\esp-clang\16.0.1-fe4f10a809\esp-clang\bin
    C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20240530\riscv32-esp-elf\bin
    C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin
    C:\Espressif\tools\cmake\3.24.0\bin
    C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin
    C:\Espressif\tools\ninja\1.11.1\
    C:\Espressif\tools\idf-exe\1.0.3\
    C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64
    C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64

Checking if Python packages are up to date...
Constraint file: C:\Espressif\espidf.constraints.v5.3.txt
Requirement files:
 - C:\Espressif\frameworks\esp-idf-v5.3.1\tools\requirements\requirements.core.txt
Python being checked: C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe
Python requirements are satisfied.

Detected installed tools that are not currently used by active ESP-IDF version.
For removing old versions of amazon-corretto-11-x64-windows-jdk, espressif-ide, idf-driver, idf-python-wheels use command 'python.exe C:\Espressif\frameworks\esp-idf-v5.3.1\tools\idf_tools.py uninstall'
For free up even more space, remove installation packages of those tools. Use option 'python.exe C:\Espressif\frameworks\esp-idf-v5.3.1\tools\idf_tools.py uninstall --remove-archives'.

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

  idf.py build

C:\Espressif\frameworks\esp-idf-v5.3.1>cd C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world

C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world>idf.py fullclean
Executing action: fullclean
Executing action: remove_managed_components
Done

C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world>idf.py clang-check
Executing action: clang-check
Running command: "C:\Espressif\tools\idf-exe\1.0.3\idf.py.EXE -B build reconfigure"...
Executing action: reconfigure
Running cmake in directory C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=C:\Espressif\python_env\idf5.3_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world"...
-- IDF_TARGET is not set, guessed 'esp32' from sdkconfig 'C:/Espressif/frameworks/esp-idf-v5.3.1/examples/get-started/hello_world/sdkconfig'
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.40.1.windows.1")
-- ccache will be used for faster recompilation
-- The C compiler identification is Clang 16.0.1
-- The CXX compiler identification is Clang 16.0.1
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: C:/Espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin/clang.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin/clang.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file C:/Espressif/frameworks/esp-idf-v5.3.1/examples/get-started/hello_world/sdkconfig
-- Compiler supported targets:
  Registered Targets:
    riscv32 - 32-bit RISC-V
    riscv64 - 64-bit RISC-V
    x86     - 32-bit X86: Pentium-Pro and above
    x86-64  - 64-bit X86: EM64T and AMD64
    xtensa  - Xtensa 32

-- Found Python3: C:/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe (found version "3.11.2") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Could NOT find Threads (missing: Threads_FOUND)
-- App "hello_world" version: v5.3.1-dirty
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/examples/get-started/hello_world/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/examples/get-started/hello_world/build/esp-idf/esp_system/ld/sections.ld.in
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Espressif/frameworks/esp-idf-v5.3.1/components/soc/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format esp_bootloader_format esp_coex esp_common esp_driver_ana_cmpr esp_driver_cam esp_driver_dac esp_driver_gpio esp_driver_gptimer esp_driver_i2c esp_driver_i2s esp_driver_isp esp_driver_jpeg esp_driver_ledc esp_driver_mcpwm esp_driver_parlio esp_driver_pcnt esp_driver_ppa esp_driver_rmt esp_driver_sdio esp_driver_sdm esp_driver_sdmmc esp_driver_sdspi esp_driver_spi esp_driver_touch_sens esp_driver_tsens esp_driver_uart esp_driver_usb_serial_jtag esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_lcd esp_local_ctrl esp_mm esp_netif esp_netif_stack esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_vfs_console esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash nvs_sec_provider openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Espressif/frameworks/esp-idf-v5.3.1/components/app_trace C:/Espressif/frameworks/esp-idf-v5.3.1/components/app_update C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader C:/Espressif/frameworks/esp-idf-v5.3.1/components/bootloader_support C:/Espressif/frameworks/esp-idf-v5.3.1/components/bt C:/Espressif/frameworks/esp-idf-v5.3.1/components/cmock C:/Espressif/frameworks/esp-idf-v5.3.1/components/console C:/Espressif/frameworks/esp-idf-v5.3.1/components/cxx C:/Espressif/frameworks/esp-idf-v5.3.1/components/driver C:/Espressif/frameworks/esp-idf-v5.3.1/components/efuse C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp-tls C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_adc C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_app_format C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_bootloader_format C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_coex C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_common C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_ana_cmpr C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_cam C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_dac C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_gpio C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_gptimer C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_i2c C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_i2s C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_isp C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_jpeg C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_ledc C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_mcpwm C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_parlio C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_pcnt C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_ppa C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_rmt C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_sdio C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_sdm C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_sdmmc C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_sdspi C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_spi C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_touch_sens C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_tsens C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_uart C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_driver_usb_serial_jtag C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_eth C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_event C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_gdbstub C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_hid C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_http_client C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_http_server C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_https_ota C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_https_server C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_hw_support C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_lcd C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_local_ctrl C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_mm C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_netif C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_netif_stack C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_partition C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_phy C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_pm C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_psram C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_ringbuf C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_rom C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_system C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_timer C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_vfs_console C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_wifi C:/Espressif/frameworks/esp-idf-v5.3.1/components/espcoredump C:/Espressif/frameworks/esp-idf-v5.3.1/components/esptool_py C:/Espressif/frameworks/esp-idf-v5.3.1/components/fatfs C:/Espressif/frameworks/esp-idf-v5.3.1/components/freertos C:/Espressif/frameworks/esp-idf-v5.3.1/components/hal C:/Espressif/frameworks/esp-idf-v5.3.1/components/heap C:/Espressif/frameworks/esp-idf-v5.3.1/components/http_parser C:/Espressif/frameworks/esp-idf-v5.3.1/components/idf_test C:/Espressif/frameworks/esp-idf-v5.3.1/components/ieee802154 C:/Espressif/frameworks/esp-idf-v5.3.1/components/json C:/Espressif/frameworks/esp-idf-v5.3.1/components/log C:/Espressif/frameworks/esp-idf-v5.3.1/components/lwip C:/Espressif/frameworks/esp-idf-v5.3.1/examples/get-started/hello_world/main C:/Espressif/frameworks/esp-idf-v5.3.1/components/mbedtls C:/Espressif/frameworks/esp-idf-v5.3.1/components/mqtt C:/Espressif/frameworks/esp-idf-v5.3.1/components/newlib C:/Espressif/frameworks/esp-idf-v5.3.1/components/nvs_flash C:/Espressif/frameworks/esp-idf-v5.3.1/components/nvs_sec_provider C:/Espressif/frameworks/esp-idf-v5.3.1/components/openthread C:/Espressif/frameworks/esp-idf-v5.3.1/components/partition_table C:/Espressif/frameworks/esp-idf-v5.3.1/components/perfmon C:/Espressif/frameworks/esp-idf-v5.3.1/components/protobuf-c C:/Espressif/frameworks/esp-idf-v5.3.1/components/protocomm C:/Espressif/frameworks/esp-idf-v5.3.1/components/pthread C:/Espressif/frameworks/esp-idf-v5.3.1/components/sdmmc C:/Espressif/frameworks/esp-idf-v5.3.1/components/soc C:/Espressif/frameworks/esp-idf-v5.3.1/components/spi_flash C:/Espressif/frameworks/esp-idf-v5.3.1/components/spiffs C:/Espressif/frameworks/esp-idf-v5.3.1/components/tcp_transport C:/Espressif/frameworks/esp-idf-v5.3.1/components/ulp C:/Espressif/frameworks/esp-idf-v5.3.1/components/unity C:/Espressif/frameworks/esp-idf-v5.3.1/components/usb C:/Espressif/frameworks/esp-idf-v5.3.1/components/vfs C:/Espressif/frameworks/esp-idf-v5.3.1/components/wear_levelling C:/Espressif/frameworks/esp-idf-v5.3.1/components/wifi_provisioning C:/Espressif/frameworks/esp-idf-v5.3.1/components/wpa_supplicant C:/Espressif/frameworks/esp-idf-v5.3.1/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Espressif/frameworks/esp-idf-v5.3.1/examples/get-started/hello_world/build
command "C:\Espressif\tools\idf-exe\1.0.3\idf.py.EXE -B build reconfigure" gives the following warnings with exitcode 0:
CMake Warning at C:/Espressif/frameworks/esp-idf-v5.3.1/components/esp_common/project_include.cmake:14 (message):
  Building ESP-IDF with clang is an experimental feature and is not yet
  officially supported.
Call Stack (most recent call first):
  C:/Espressif/frameworks/esp-idf-v5.3.1/tools/cmake/build.cmake:400 (include)
  C:/Espressif/frameworks/esp-idf-v5.3.1/tools/cmake/build.cmake:632 (__build_process_project_includes)
  C:/Espressif/frameworks/esp-idf-v5.3.1/tools/cmake/project.cmake:710 (idf_build_process)
  CMakeLists.txt:6 (project)

****** Filter files and dirs ******
Files to be analysed:
+ > C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world\main\hello_world_main.c
***********************************
run-clang-tidy.py not found in your PATH

C:\Espressif\frameworks\esp-idf-v5.3.1\examples\get-started\hello_world>

More Information.

No response

dobairoland commented 5 days ago

Hi @LEI3550. Thank you for your report. I can confirm that it is reproducible.

run-clang-tidy.py not found in your PATH

run-clang-tidy without any file extension is available in the esp-clang install directory. We can solve this issue by invoking this file with the Python from venv directly.

We will take care of this issue soon.