idf.py build 报错

CAIXINWEI
Posts: 1
Joined: Sat Nov 20, 2021 9:21 am

idf.py build 报错

Postby CAIXINWEI » Sat Nov 20, 2021 9:29 am

忙活了好几天走到这一步,第一次接触该开发环境,望大家指点
D:\work\IDF\esp-idf\examples\get-started\hello_world>idf.py build
Executing action: all (aliases: build)
Running cmake in directory d:\work\idf\esp-idf\examples\get-started\hello_world\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 d:\work\idf\esp-idf\examples\get-started\hello_world"...
-- Found Git: D:/Program Files/Git/cmd/git.exe (found version "2.33.0.windows.2")
-- Unexpected file in components directory: D:/work/IDF/esp-idf/components/README.md
-- Component directory D:/work/IDF/esp-idf/components/README.md does not contain a CMakeLists.txt file. No component will be added
-- ccache will be used for faster recompilation
-- 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: D:/work/IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: D:/work/IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: D:/work/IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe -- 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: D:/work/IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: D:/work/IDF/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe -- 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
-- Project sdkconfig file D:/work/IDF/esp-idf/examples/get-started/hello_world/sdkconfig
warning: the int symbol HAL_DEFAULT_ASSERTION_LEVEL (defined at D:/work/IDF/esp-idf/components/hal/Kconfig:27) has a non-int default COMPILER_OPTIMIZATION_ASSERTION_LEVEL (undefined)
Traceback (most recent call last):
File "D:/work/IDF/esp-idf/tools/kconfig_new/confgen.py", line 637, in <module>
main()
File "D:/work/IDF/esp-idf/tools/kconfig_new/confgen.py", line 323, in main
output_function(deprecated_options, config, temp_file)
File "D:/work/IDF/esp-idf/tools/kconfig_new/confgen.py", line 470, in write_json
config_dict = get_json_values(config)
File "D:/work/IDF/esp-idf/tools/kconfig_new/confgen.py", line 465, in get_json_values
write_node(n)
File "D:/work/IDF/esp-idf/tools/kconfig_new/confgen.py", line 462, in write_node
val = int(val)
ValueError: invalid literal for int() with base 10: 'COMPILER_OPTIMIZATION_ASSERTION_LEVEL'
CMake Error at D:/work/IDF/esp-idf/tools/cmake/kconfig.cmake:228 (message):
Failed to run confgen.py
(D:/work/IDF/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe;D:/work/IDF/esp-idf/tools/kconfig_new/confgen.py;--kconfig;D:/work/IDF/esp-idf/Kconfig;--sdkconfig-rename;D:/work/IDF/esp-idf/sdkconfig.rename;--config;D:/work/IDF/esp-idf/examples/get-started/hello_world/sdkconfig;--env-file;D:/work/IDF/esp-idf/examples/get-started/hello_world/build/config.env).
Error 1
Call Stack (most recent call first):
D:/work/IDF/esp-idf/tools/cmake/build.cmake:457 (__kconfig_generate_config)
D:/work/IDF/esp-idf/tools/cmake/project.cmake:399 (idf_build_process)
CMakeLists.txt:6 (project)


-- Configuring incomplete, errors occurred!
See also "D:/work/IDF/esp-idf/examples/get-started/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: idf.py build 报错

Postby ESP_ICY » Tue Nov 30, 2021 2:59 am

你这边是直接运行的例程吗,有修改过menuconfig和程序内容吗

Who is online

Users browsing this forum: No registered users and 52 guests