Ninja can't fnish making *.elf file

jake.struck
Posts: 1
Joined: Thu Jun 08, 2023 7:08 pm

Ninja can't fnish making *.elf file

Postby jake.struck » Thu Jun 08, 2023 7:27 pm

I'm running VSCode with Espressif extension on a Win10 PC. When I run ESP IDF Build on my project, it fails to complete and exits with an error. The terminal output is as follows:

* Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -B c:\Users\jakes\Desktop\Airtime_VS\build -S c:\Users\jakes\Desktop\Airtime_VS

-- Found Git: C:/Users/jakes/.esp/esp-idf/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.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:/Users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- 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 esp32s3
-- Project sdkconfig file C:/Users/jakes/Desktop/Airtime_VS/sdkconfig
Loading defaults file C:/Users/jakes/Desktop/Airtime_VS/sdkconfig.defaults...
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Found Python3: C:/Users/jakes/.esp/esp-idf/python_env/idf5.0_py3.8_env/Scripts/python.exe (found version "3.8.7") found components: Interpreter
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS
-- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success
-- App "Airtime_V01" version: 1
-- Adding linker script C:/Users/jakes/Desktop/Airtime_VS/build/esp-idf/esp_system/ld/memory.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_system/ld/esp32s3/sections.ld.in
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Components: app_trace app_update bootloader bootloader_support bt cmock console cxx driver efuse esp-tls esp_adc esp_app_format 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_lcd esp_local_ctrl esp_netif esp_partition esp_phy esp_pm esp_psram esp_ringbuf esp_rom esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport touch_element ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/jakes/esp/esp-idf/components/app_trace C:/Users/jakes/esp/esp-idf/components/app_update C:/Users/jakes/esp/esp-idf/components/bootloader C:/Users/jakes/esp/esp-idf/components/bootloader_support C:/Users/jakes/esp/esp-idf/components/bt C:/Users/jakes/esp/esp-idf/components/cmock C:/Users/jakes/esp/esp-idf/components/console C:/Users/jakes/esp/esp-idf/components/cxx C:/Users/jakes/esp/esp-idf/components/driver C:/Users/jakes/esp/esp-idf/components/efuse C:/Users/jakes/esp/esp-idf/components/esp-tls C:/Users/jakes/esp/esp-idf/components/esp_adc C:/Users/jakes/esp/esp-idf/components/esp_app_format C:/Users/jakes/esp/esp-idf/components/esp_common C:/Users/jakes/esp/esp-idf/components/esp_eth C:/Users/jakes/esp/esp-idf/components/esp_event C:/Users/jakes/esp/esp-idf/components/esp_gdbstub C:/Users/jakes/esp/esp-idf/components/esp_hid C:/Users/jakes/esp/esp-idf/components/esp_http_client C:/Users/jakes/esp/esp-idf/components/esp_http_server C:/Users/jakes/esp/esp-idf/components/esp_https_ota C:/Users/jakes/esp/esp-idf/components/esp_https_server C:/Users/jakes/esp/esp-idf/components/esp_hw_support C:/Users/jakes/esp/esp-idf/components/esp_lcd C:/Users/jakes/esp/esp-idf/components/esp_local_ctrl C:/Users/jakes/esp/esp-idf/components/esp_netif C:/Users/jakes/esp/esp-idf/components/esp_partition C:/Users/jakes/esp/esp-idf/components/esp_phy C:/Users/jakes/esp/esp-idf/components/esp_pm C:/Users/jakes/esp/esp-idf/components/esp_psram C:/Users/jakes/esp/esp-idf/components/esp_ringbuf C:/Users/jakes/esp/esp-idf/components/esp_rom C:/Users/jakes/esp/esp-idf/components/esp_system C:/Users/jakes/esp/esp-idf/components/esp_timer C:/Users/jakes/esp/esp-idf/components/esp_wifi C:/Users/jakes/esp/esp-idf/components/espcoredump C:/Users/jakes/esp/esp-idf/components/esptool_py C:/Users/jakes/esp/esp-idf/components/fatfs C:/Users/jakes/esp/esp-idf/components/freertos C:/Users/jakes/esp/esp-idf/components/hal C:/Users/jakes/esp/esp-idf/components/heap C:/Users/jakes/esp/esp-idf/components/http_parser C:/Users/jakes/esp/esp-idf/components/idf_test C:/Users/jakes/esp/esp-idf/components/ieee802154 C:/Users/jakes/esp/esp-idf/components/json C:/Users/jakes/esp/esp-idf/components/log C:/Users/jakes/esp/esp-idf/components/lwip C:/Users/jakes/esp/esp-idf/components/mbedtls C:/Users/jakes/esp/esp-idf/components/mqtt C:/Users/jakes/esp/esp-idf/components/newlib C:/Users/jakes/esp/esp-idf/components/nvs_flash C:/Users/jakes/esp/esp-idf/components/openthread C:/Users/jakes/esp/esp-idf/components/partition_table C:/Users/jakes/esp/esp-idf/components/perfmon C:/Users/jakes/esp/esp-idf/components/protobuf-c C:/Users/jakes/esp/esp-idf/components/protocomm C:/Users/jakes/esp/esp-idf/components/pthread C:/Users/jakes/esp/esp-idf/components/sdmmc C:/Users/jakes/esp/esp-idf/components/soc C:/Users/jakes/esp/esp-idf/components/spi_flash C:/Users/jakes/esp/esp-idf/components/spiffs C:/Users/jakes/esp/esp-idf/components/tcp_transport C:/Users/jakes/esp/esp-idf/components/touch_element C:/Users/jakes/esp/esp-idf/components/ulp C:/Users/jakes/esp/esp-idf/components/unity C:/Users/jakes/esp/esp-idf/components/usb C:/Users/jakes/esp/esp-idf/components/vfs C:/Users/jakes/esp/esp-idf/components/wear_levelling C:/Users/jakes/esp/esp-idf/components/wifi_provisioning C:/Users/jakes/esp/esp-idf/components/wpa_supplicant C:/Users/jakes/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/jakes/Desktop/Airtime_VS/build

* Executing task: ninja

[71/889] 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,
*******************************************************************************
[691/889] Performing configure step for 'bootloader'
-- Found Git: C:/Users/jakes/.esp/esp-idf/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/Users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.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:/Users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/Users/jakes/Desktop/Airtime_VS/sdkconfig
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of time_t
-- Check size of time_t - done
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- App "bootloader" version: v5.0.2
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script C:/Users/jakes/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: C:/Users/jakes/esp/esp-idf/components/bootloader C:/Users/jakes/esp/esp-idf/components/bootloader_support C:/Users/jakes/esp/esp-idf/components/efuse C:/Users/jakes/esp/esp-idf/components/esp_app_format C:/Users/jakes/esp/esp-idf/components/esp_common C:/Users/jakes/esp/esp-idf/components/esp_hw_support C:/Users/jakes/esp/esp-idf/components/esp_rom C:/Users/jakes/esp/esp-idf/components/esp_system C:/Users/jakes/esp/esp-idf/components/esptool_py C:/Users/jakes/esp/esp-idf/components/freertos C:/Users/jakes/esp/esp-idf/components/hal C:/Users/jakes/esp/esp-idf/components/log C:/Users/jakes/esp/esp-idf/components/bootloader/subproject/main C:/Users/jakes/esp/esp-idf/components/bootloader/subproject/components/micro-ecc C:/Users/jakes/esp/esp-idf/components/newlib C:/Users/jakes/esp/esp-idf/components/partition_table C:/Users/jakes/esp/esp-idf/components/soc C:/Users/jakes/esp/esp-idf/components/spi_flash C:/Users/jakes/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/jakes/Desktop/Airtime_VS/build/bootloader
[883/889] Performing build step for 'bootloader'
[1/106] Generating project_elf_src_esp32s3.c
[2/106] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[3/106] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[4/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[5/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/dport_access_common.c.obj
[6/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gdma_periph.c.obj
[7/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/adc_periph.c.obj
[8/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/dedic_gpio_periph.c.obj
[9/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdm_periph.c.obj
[10/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gpio_periph.c.obj
[11/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2c_periph.c.obj
[12/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2s_periph.c.obj
[13/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/interrupts.c.obj
[14/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/lcd_periph.c.obj
[15/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/mcpwm_periph.c.obj
[16/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/ledc_periph.c.obj
[17/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/pcnt_periph.c.obj
[18/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rmt_periph.c.obj
[19/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdio_slave_periph.c.obj
[20/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rtc_io_periph.c.obj
[21/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/spi_periph.c.obj
[22/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdmmc_periph.c.obj
[23/106] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32s3.c.obj
[24/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/timer_periph.c.obj
[25/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/temperature_sensor_periph.c.obj
[26/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/uart_periph.c.obj
[27/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/touch_sensor_periph.c.obj
[28/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_otg_periph.c.obj
[29/106] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_periph.c.obj
[30/106] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mmu_hal.c.obj
[31/106] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/efuse_hal.c.obj
[32/106] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32s3/efuse_hal.c.obj
[33/106] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cache_hal.c.obj
[34/106] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[35/106] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[36/106] Building C object esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj
[37/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[38/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[39/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[40/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash.c.obj
[41/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[42/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[43/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32s3.c.obj
[44/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[45/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[46/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[47/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[48/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[49/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/flash_qio_mode.c.obj
[50/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash_config_esp32s3.c.obj
[51/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk_init.c.obj
[52/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[53/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_esp32s3.c.obj
[54/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_soc.c.obj
[55/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_sha.c.obj
[56/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj
[57/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[58/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[59/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[60/106] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[61/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu.c.obj
[62/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk.c.obj
[63/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/esp_memory_utils.c.obj
[64/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_rtc_calib.c.obj
[65/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_table.c.obj
[66/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_fields.c.obj
[67/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[68/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_utility.c.obj
[69/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c.obj
[70/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[71/106] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[72/106] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[73/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_time.c.obj
[74/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_init.c.obj
[75/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_sleep.c.obj
[76/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_pm.c.obj
[77/106] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/chip_info.c.obj
[78/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[79/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[80/106] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[81/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_efuse.c.obj
[82/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_regi2c.c.obj
[83/106] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[84/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[85/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_spiflash.c.obj
[86/106] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_systimer.c.obj
[87/106] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[88/106] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj[89/106] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[90/106] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[91/106] Linking C static library esp-idf\log\liblog.a
[92/106] Linking C static library esp-idf\esp_rom\libesp_rom.a
[93/106] Linking C static library esp-idf\esp_common\libesp_common.a
[94/106] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a
[95/106] Linking C static library esp-idf\esp_system\libesp_system.a
[96/106] Linking C static library esp-idf\efuse\libefuse.a
[97/106] Linking C static library esp-idf\bootloader_support\libbootloader_support.a
[98/106] Linking C static library esp-idf\esp_app_format\libesp_app_format.a
[99/106] Linking C static library esp-idf\hal\libhal.a
[100/106] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a
[101/106] Linking C static library esp-idf\soc\libsoc.a
[102/106] Linking C static library esp-idf\xtensa\libxtensa.a
[103/106] Linking C static library esp-idf\main\libmain.a
[104/106] Linking C executable bootloader.elf
[105/106] Generating binary image from built executable
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated C:/Users/jakes/Desktop/Airtime_VS/build/bootloader/bootloader.bin
[106/106] cmd.exe /C "cd /D C:\Users\jakes\Desktop\Airtime_VS\build\bootloader\esp-idf\esptool_py && C:\Users\jakes\.esp\esp-idf\python_env\idf5.0_py3.8_env\Scripts\python.exe C:/Users/jakes/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Users/jakes/Desktop/Airtime_VS/build/bootloader/bootloader.bin"
Bootloader binary size 0x5030 bytes. 0x2fd0 bytes (37%) free.
[887/889] Linking CXX executable Airtime_V01.elf
FAILED: Airtime_V01.elf
cmd.exe /C "cd . && C:\Users\jakes\.esp\esp-idf\tools\xtensa-esp32s3-elf\esp-2022r1-11.2.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-g++.exe -mlongcalls @CMakeFiles\Airtime_V01.elf.rsp -o Airtime_V01.elf && cd ."
c:/users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj):(.literal.main_task+0x18): undefined reference to `app_main'
c:/users/jakes/.esp/esp-idf/tools/xtensa-esp32s3-elf/esp-2022r1-11.2.0/xtensa-esp32s3-elf/bin/../lib/gcc/xtensa-esp32s3-elf/11.2.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(port_common.c.obj): in function `main_task':
C:/Users/jakes/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/port_common.c:128: undefined reference to `app_main'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

* The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja " terminated with exit code: 1.

I'd appreciate some help. Can you see why the build did not complete?
Thanks

MicroController
Posts: 1709
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Ninja can't fnish making *.elf file

Postby MicroController » Fri Jun 09, 2023 9:33 am

undefined reference to `app_main'
You have to provide the function "void app_main(void)" as the entry point for your application.
That function must be in a source file which is listed among the SRCS in idf_component_register in the CMakeLists.txt.
If the source file is C++, app_main needs to be declared as "extern "C" void app_main(void)".

Who is online

Users browsing this forum: No registered users and 124 guests