[已解决] 编译官方例程报错,ninja: build stopped: subcommand failed.

张三三三三三
Posts: 5
Joined: Thu Oct 28, 2021 5:01 pm

[已解决] 编译官方例程报错,ninja: build stopped: subcommand failed.

Postby 张三三三三三 » Sat Oct 30, 2021 1:38 pm

使用VScode,按照官方教程安装idf插件,编译时报错,麻烦了,如下:
> Executing task in folder hello_world: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <

-- Found Git: C:/Users/Administrator/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- 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: C:/Users/Administrator/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Administrator/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Administrator/.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: C:/Users/Administrator/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/Administrator/.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
-- 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 esp32
-- Project sdkconfig file E:/ESP32/ESP32-IDF/hello_world/sdkconfig
-- Found PythonInterp: C:/Users/Administrator/.espressif/python_env/idf4.3_py3.8_env/Scripts/python.exe (found version "3.8.7")
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- App "hello-world" version: 1
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script E:/ESP32/ESP32-IDF/hello_world/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_local_ctrl esp_netif esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/Administrator/esp/esp-idf/components/app_trace C:/Users/Administrator/esp/esp-idf/components/app_update C:/Users/Administrator/esp/esp-idf/components/asio C:/Users/Administrator/esp/esp-idf/components/bootloader C:/Users/Administrator/esp/esp-idf/components/bootloader_support C:/Users/Administrator/esp/esp-idf/components/bt C:/Users/Administrator/esp/esp-idf/components/cbor C:/Users/Administrator/esp/esp-idf/components/cmock C:/Users/Administrator/esp/esp-idf/components/coap C:/Users/Administrator/esp/esp-idf/components/console C:/Users/Administrator/esp/esp-idf/components/cxx C:/Users/Administrator/esp/esp-idf/components/driver C:/Users/Administrator/esp/esp-idf/components/efuse C:/Users/Administrator/esp/esp-idf/components/esp-tls C:/Users/Administrator/esp/esp-idf/components/esp32 C:/Users/Administrator/esp/esp-idf/components/esp_adc_cal C:/Users/Administrator/esp/esp-idf/components/esp_common C:/Users/Administrator/esp/esp-idf/components/esp_eth C:/Users/Administrator/esp/esp-idf/components/esp_event C:/Users/Administrator/esp/esp-idf/components/esp_gdbstub C:/Users/Administrator/esp/esp-idf/components/esp_hid C:/Users/Administrator/esp/esp-idf/components/esp_http_client C:/Users/Administrator/esp/esp-idf/components/esp_http_server C:/Users/Administrator/esp/esp-idf/components/esp_https_ota C:/Users/Administrator/esp/esp-idf/components/esp_https_server C:/Users/Administrator/esp/esp-idf/components/esp_hw_support C:/Users/Administrator/esp/esp-idf/components/esp_ipc C:/Users/Administrator/esp/esp-idf/components/esp_local_ctrl C:/Users/Administrator/esp/esp-idf/components/esp_netif C:/Users/Administrator/esp/esp-idf/components/esp_pm C:/Users/Administrator/esp/esp-idf/components/esp_ringbuf C:/Users/Administrator/esp/esp-idf/components/esp_rom C:/Users/Administrator/esp/esp-idf/components/esp_serial_slave_link C:/Users/Administrator/esp/esp-idf/components/esp_system C:/Users/Administrator/esp/esp-idf/components/esp_timer C:/Users/Administrator/esp/esp-idf/components/esp_websocket_client C:/Users/Administrator/esp/esp-idf/components/esp_wifi C:/Users/Administrator/esp/esp-idf/components/espcoredump C:/Users/Administrator/esp/esp-idf/components/esptool_py C:/Users/Administrator/esp/esp-idf/components/expat C:/Users/Administrator/esp/esp-idf/components/fatfs C:/Users/Administrator/esp/esp-idf/components/freemodbus C:/Users/Administrator/esp/esp-idf/components/freertos C:/Users/Administrator/esp/esp-idf/components/hal C:/Users/Administrator/esp/esp-idf/components/heap C:/Users/Administrator/esp/esp-idf/components/idf_test C:/Users/Administrator/esp/esp-idf/components/jsmn C:/Users/Administrator/esp/esp-idf/components/json C:/Users/Administrator/esp/esp-idf/components/libsodium C:/Users/Administrator/esp/esp-idf/components/log C:/Users/Administrator/esp/esp-idf/components/lwip E:/ESP32/ESP32-IDF/hello_world/main C:/Users/Administrator/esp/esp-idf/components/mbedtls C:/Users/Administrator/esp/esp-idf/components/mdns C:/Users/Administrator/esp/esp-idf/components/mqtt C:/Users/Administrator/esp/esp-idf/components/newlib C:/Users/Administrator/esp/esp-idf/components/nghttp C:/Users/Administrator/esp/esp-idf/components/nvs_flash C:/Users/Administrator/esp/esp-idf/components/openssl C:/Users/Administrator/esp/esp-idf/components/partition_table C:/Users/Administrator/esp/esp-idf/components/perfmon C:/Users/Administrator/esp/esp-idf/components/protobuf-c C:/Users/Administrator/esp/esp-idf/components/protocomm C:/Users/Administrator/esp/esp-idf/components/pthread C:/Users/Administrator/esp/esp-idf/components/sdmmc C:/Users/Administrator/esp/esp-idf/components/soc C:/Users/Administrator/esp/esp-idf/components/spi_flash C:/Users/Administrator/esp/esp-idf/components/spiffs C:/Users/Administrator/esp/esp-idf/components/tcp_transport C:/Users/Administrator/esp/esp-idf/components/tcpip_adapter C:/Users/Administrator/esp/esp-idf/components/tinyusb C:/Users/Administrator/esp/esp-idf/components/ulp C:/Users/Administrator/esp/esp-idf/components/unity C:/Users/Administrator/esp/esp-idf/components/vfs C:/Users/Administrator/esp/esp-idf/components/wear_levelling C:/Users/Administrator/esp/esp-idf/components/wifi_provisioning C:/Users/Administrator/esp/esp-idf/components/wpa_supplicant C:/Users/Administrator/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: E:/ESP32/ESP32-IDF/hello_world/build

终端将被任务重用,按任意键关闭。

> Executing task in folder hello_world: cmake --build . <

[10/966] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[537/966] Performing configure step for 'bootloader'
-- Found Git: C:/Users/Administrator/.espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- 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: C:/Users/Administrator/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Administrator/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/Users/Administrator/.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: C:/Users/Administrator/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++.exe
-- Check for working CXX compiler: C:/Users/Administrator/.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 E:/ESP32/ESP32-IDF/hello_world/sdkconfig
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld
-- Adding linker script C:/Users/Administrator/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_hw_support esp_rom esp_system esptool_py hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Users/Administrator/esp/esp-idf/components/bootloader C:/Users/Administrator/esp/esp-idf/components/bootloader_support C:/Users/Administrator/esp/esp-idf/components/efuse C:/Users/Administrator/esp/esp-idf/components/esp32 C:/Users/Administrator/esp/esp-idf/components/esp_common C:/Users/Administrator/esp/esp-idf/components/esp_hw_support C:/Users/Administrator/esp/esp-idf/components/esp_rom C:/Users/Administrator/esp/esp-idf/components/esp_system C:/Users/Administrator/esp/esp-idf/components/esptool_py C:/Users/Administrator/esp/esp-idf/components/hal C:/Users/Administrator/esp/esp-idf/components/log C:/Users/Administrator/esp/esp-idf/components/bootloader/subproject/main C:/Users/Administrator/esp/esp-idf/components/bootloader/subproject/components/micro-ecc C:/Users/Administrator/esp/esp-idf/components/newlib C:/Users/Administrator/esp/esp-idf/components/partition_table C:/Users/Administrator/esp/esp-idf/components/soc C:/Users/Administrator/esp/esp-idf/components/spi_flash C:/Users/Administrator/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: E:/ESP32/ESP32-IDF/hello_world/build/bootloader
[629/966] Performing build step for 'bootloader'
[1/86] Generating project_elf_src_esp32.c
[2/86] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[3/86] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj
[4/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/memory_layout_utils.c.obj
[5/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj
[6/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[7/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/gpio_periph.c.obj
[8/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/dac_periph.c.obj
[9/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/adc_periph.c.obj
[10/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2c_periph.c.obj
[11/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/interrupts.c.obj
[12/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/pcnt_periph.c.obj
[13/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/ledc_periph.c.obj
[14/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rtc_io_periph.c.obj
[15/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/rmt_periph.c.obj
[16/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/i2s_periph.c.obj
[17/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdmmc_periph.c.obj
[18/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sigmadelta_periph.c.obj
[19/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/soc_memory_layout.c.obj
[20/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/sdio_slave_periph.c.obj
[21/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/spi_periph.c.obj
[22/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/timer_periph.c.obj
[23/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/touch_sensor_periph.c.obj
[24/86] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32/uart_periph.c.obj
[25/86] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32/spi_flash_rom_patch.c.obj
[26/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[27/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[28/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[29/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[30/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[31/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj
[32/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32.c.obj
[33/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[34/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[35/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[36/86] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[37/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj
[38/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[39/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32.c.obj
[40/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[41/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[42/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[43/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32.c.obj
[44/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[45/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[46/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[47/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/flash_encrypt.c.obj
[48/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_sha.c.obj
[49/86] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32.c.obj
[50/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[51/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[52/86] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32/bootloader_esp32.c.obj
[53/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32/esp_efuse_table.c.obj
[54/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj
[55/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_api.c.obj
[56/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_fields.c.obj
[57/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_pm.c.obj
[58/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[59/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj
[60/86] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp32/esp_efuse_utility.c.obj
[61/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_init.c.obj
[62/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk_init.c.obj
[63/86] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[64/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_wdt.c.obj
[65/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_time.c.obj
[66/86] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[67/86] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[68/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_sleep.c.obj
[69/86] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[70/86] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[71/86] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[72/86] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[73/86] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[74/86] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32/rtc_clk.c.obj
[75/86] Linking C static library esp-idf\log\liblog.a
[76/86] Linking C static library esp-idf\esp_rom\libesp_rom.a
[77/86] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[78/86] Linking C static library esp-idf\efuse\libefuse.a
[79/86] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[80/86] Linking C static library esp-idf\spi_flash\libspi_flash.a
[81/86] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[82/86] Linking C static library esp-idf\soc\libsoc.a
[83/86] Linking C static library esp-idf\hal\libhal.a
[84/86] Linking C static library esp-idf\main\libmain.a
[85/86] Linking C executable bootloader.elf
[86/86] Generating binary image from built executable
esptool.py v3.1-dev
Merged 1 ELF section
Generated E:/ESP32/ESP32-IDF/hello_world/build/bootloader/bootloader.bin
[663/966] Generating x509_crt_bundle
FAILED: esp-idf/mbedtls/x509_crt_bundle
cmd.exe /C "cd /D E:\ESP32\ESP32-IDF\hello_world\build\esp-idf\mbedtls && c:\Users\Administrator\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:/Users/Administrator/esp/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/Administrator/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"
gen_crt_bundle.py: Invalid certificate in C:/Users/Administrator/esp/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem
Invalid certificate
ninja: build stopped: subcommand failed.
终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build .”已终止,退出代码: 1。

终端将被任务重用,按任意键关闭。

xjbwd001
Posts: 1
Joined: Sun Oct 31, 2021 5:17 am

Re: 编译官方例程报错,ninja: build stopped: subcommand failed.

Postby xjbwd001 » Sun Oct 31, 2021 5:26 am

参考https://github.com/espressif/esp-idf/issues/7621#issuecomment-931241064

张三三三三三
Posts: 5
Joined: Thu Oct 28, 2021 5:01 pm

Re: 编译官方例程报错,ninja: build stopped: subcommand failed.

Postby 张三三三三三 » Sun Oct 31, 2021 11:54 am

xjbwd001 wrote:
Sun Oct 31, 2021 5:26 am
参考https://github.com/espressif/esp-idf/issues/7621#issuecomment-931241064
谢谢,问题解决了

Who is online

Users browsing this forum: No registered users and 98 guests