espressif / esp-idf

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

FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/blufi_init.c.obj (IDFGH-12529) #13534

Closed qianxiaojun1 closed 7 months ago

qianxiaojun1 commented 7 months ago

Answers checklist.

IDF version.

v5.3-dev-2815-gbe06a6f5ff

Operating System used.

Linux

How did you build your project?

VS Code IDE

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

None

What is the expected behavior?

Build esp-idf/examples/bluetooth/blufi success

What is the actual behavior?

Build faild [1238/1245] Building C object esp-idf/main/CMakeFiles/idf_main.dir/blufi_init.c.obj FAILED: esp-idf/main/CMakeFiles/idf_main.dir/blufi_init.c.obj

Steps to reproduce.

  1. cd /esp-idf/examples/bluetooth/blufi
  2. git pull and git submodule update --init --recusive
  3. ctrl+shift+P and chose ESP-IDF:Set Espressif Deivce Target ->chose esp32s3
  4. build failed

Build or installation Logs.

[5/1245] 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,1500K,
*******************************************************************************
[404/1245] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/xiaojunqian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/xiaojunqian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc - 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: /home/xiaojunqian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/sdkconfig
Compiler supported targets: xtensa-esp32s3-elf

-- 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 /home/xiaojunqian/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- App "bootloader" version: v5.1.2-dirty
-- Adding linker script /home/xiaojunqian/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /home/xiaojunqian/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /home/xiaojunqian/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /home/xiaojunqian/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /home/xiaojunqian/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /home/xiaojunqian/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: /home/xiaojunqian/esp/esp-idf/components/bootloader /home/xiaojunqian/esp/esp-idf/components/bootloader_support /home/xiaojunqian/esp/esp-idf/components/efuse /home/xiaojunqian/esp/esp-idf/components/esp_app_format /home/xiaojunqian/esp/esp-idf/components/esp_common /home/xiaojunqian/esp/esp-idf/components/esp_hw_support /home/xiaojunqian/esp/esp-idf/components/esp_rom /home/xiaojunqian/esp/esp-idf/components/esp_system /home/xiaojunqian/esp/esp-idf/components/esptool_py /home/xiaojunqian/esp/esp-idf/components/freertos /home/xiaojunqian/esp/esp-idf/components/hal /home/xiaojunqian/esp/esp-idf/components/log /home/xiaojunqian/esp/esp-idf/components/bootloader/subproject/main /home/xiaojunqian/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/xiaojunqian/esp/esp-idf/components/newlib /home/xiaojunqian/esp/esp-idf/components/partition_table /home/xiaojunqian/esp/esp-idf/components/soc /home/xiaojunqian/esp/esp-idf/components/spi_flash /home/xiaojunqian/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/build/bootloader
[498/1245] Performing build step for 'bootloader'
[1/110] Generating project_elf_src_esp32s3.c
[2/110] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/eri.c.obj
[3/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/dport_access_common.c.obj
[4/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj
[5/110] Building C object esp-idf/xtensa/CMakeFiles/__idf_xtensa.dir/xt_trax.c.obj
[6/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gdma_periph.c.obj
[7/110] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32s3.c.obj
[8/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/adc_periph.c.obj
[9/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/interrupts.c.obj
[10/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdm_periph.c.obj
[11/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rmt_periph.c.obj
[12/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/temperature_sensor_periph.c.obj
[13/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/lcd_periph.c.obj
[14/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/dedic_gpio_periph.c.obj
[15/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/ledc_periph.c.obj
[16/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/spi_periph.c.obj
[17/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/gpio_periph.c.obj
[18/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/uart_periph.c.obj
[19/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/pcnt_periph.c.obj
[20/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2c_periph.c.obj
[21/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/twai_periph.c.obj
[22/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/i2s_periph.c.obj
[23/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/timer_periph.c.obj
[24/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/sdmmc_periph.c.obj
[25/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_otg_periph.c.obj
[26/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/mcpwm_periph.c.obj
[27/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/usb_periph.c.obj
[28/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/touch_sensor_periph.c.obj
[29/110] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32s3/rtc_io_periph.c.obj
[30/110] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj
[31/110] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/efuse_hal.c.obj
[32/110] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/esp32s3/efuse_hal.c.obj
[33/110] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cache_hal.c.obj
[34/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj
[35/110] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mmu_hal.c.obj
[36/110] Building C object esp-idf/esp_app_format/CMakeFiles/__idf_esp_app_format.dir/esp_app_desc.c.obj
[37/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj
[38/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32s3.c.obj
[39/110] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/spi_flash_wrap.c.obj
[40/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj
[41/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj
[42/110] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj
[43/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj
[44/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj
[45/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse.c.obj
[46/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj
[47/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj
[48/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj
[49/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash_config_esp32s3.c.obj
[50/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj
[51/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_soc.c.obj
[52/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj
[53/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/bootloader_flash.c.obj
[54/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/bootloader_flash/src/flash_qio_mode.c.obj
[55/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_sha.c.obj
[56/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj
[57/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_table.c.obj
[58/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_fields.c.obj
[59/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj
[60/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj
[61/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj
[62/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_rtc_calib.c.obj
[63/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj
[64/110] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj
[65/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj
[66/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32s3/esp_efuse_utility.c.obj
[67/110] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32s3/bootloader_esp32s3.c.obj
[68/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj
[69/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu.c.obj
[70/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj
[71/110] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/efuse_controller/keys/with_key_purposes/esp_efuse_api_key.c.obj
[72/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/esp_memory_utils.c.obj
[73/110] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj
[74/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj
[75/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/chip_info.c.obj
[76/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/cpu_region_protect.c.obj
[77/110] Building ASM object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_cache_writeback_esp32s3.S.obj
[78/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk_init.c.obj
[79/110] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj
[80/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_efuse.c.obj
[81/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_systimer.c.obj
[82/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_sleep.c.obj
[83/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_time.c.obj
[84/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_spiflash.c.obj
[85/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_wdt.c.obj
[86/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_cache_esp32s2_esp32s3.c.obj
[87/110] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj
[88/110] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj
[89/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_clk.c.obj
[90/110] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj
[91/110] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj
[92/110] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj
[93/110] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32s3/rtc_init.c.obj
[94/110] Linking C static library esp-idf/log/liblog.a
[95/110] Linking C static library esp-idf/esp_rom/libesp_rom.a
[96/110] Linking C static library esp-idf/esp_common/libesp_common.a
[97/110] Linking C static library esp-idf/esp_hw_support/libesp_hw_support.a
[98/110] Linking C static library esp-idf/esp_system/libesp_system.a
[99/110] Linking C static library esp-idf/efuse/libefuse.a
[100/110] Linking C static library esp-idf/bootloader_support/libbootloader_support.a
[101/110] Linking C static library esp-idf/esp_app_format/libesp_app_format.a
[102/110] Linking C static library esp-idf/spi_flash/libspi_flash.a
[103/110] Linking C static library esp-idf/hal/libhal.a
[104/110] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[105/110] Linking C static library esp-idf/soc/libsoc.a
[106/110] Linking C static library esp-idf/xtensa/libxtensa.a
[107/110] Linking C static library esp-idf/main/libmain.a
[108/110] Linking C executable bootloader.elf
[109/110] Generating binary image from built executable
esptool.py v4.7.0
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Generated /mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/build/bootloader/bootloader.bin
[110/110] cd /mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/build/bootloader/esp-idf/esptool_py && /home/xiaojunqian/.espressif/python_env/idf5.1_py3.8_env/bin/python /home/xiaojunqian/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/build/bootloader/bootloader.bin
Bootloader binary size 0x51c0 bytes. 0x2e40 bytes (36%) free.
[1238/1245] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/blufi_init.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/blufi_init.c.obj 
/home/xiaojunqian/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.1.2-dirty\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DUNITY_INCLUDE_CONFIG_H -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/build/config -I/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/main -I/home/xiaojunqian/esp/esp-idf/components/newlib/platform_include -I/home/xiaojunqian/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/xiaojunqian/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/xiaojunqian/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/home/xiaojunqian/esp/esp-idf/components/freertos/esp_additions/include -I/home/xiaojunqian/esp/esp-idf/components/freertos/esp_additions/arch/xtensa/include -I/home/xiaojunqian/esp/esp-idf/components/esp_hw_support/include -I/home/xiaojunqian/esp/esp-idf/components/esp_hw_support/include/soc -I/home/xiaojunqian/esp/esp-idf/components/esp_hw_support/include/soc/esp32s3 -I/home/xiaojunqian/esp/esp-idf/components/esp_hw_support/port/esp32s3/. -I/home/xiaojunqian/esp/esp-idf/components/esp_hw_support/port/esp32s3/private_include -I/home/xiaojunqian/esp/esp-idf/components/heap/include -I/home/xiaojunqian/esp/esp-idf/components/log/include -I/home/xiaojunqian/esp/esp-idf/components/soc/include -I/home/xiaojunqian/esp/esp-idf/components/soc/esp32s3 -I/home/xiaojunqian/esp/esp-idf/components/soc/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/hal/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/hal/include -I/home/xiaojunqian/esp/esp-idf/components/hal/platform_port/include -I/home/xiaojunqian/esp/esp-idf/components/esp_rom/include -I/home/xiaojunqian/esp/esp-idf/components/esp_rom/include/esp32s3 -I/home/xiaojunqian/esp/esp-idf/components/esp_rom/esp32s3 -I/home/xiaojunqian/esp/esp-idf/components/esp_common/include -I/home/xiaojunqian/esp/esp-idf/components/esp_system/include -I/home/xiaojunqian/esp/esp-idf/components/esp_system/port/soc -I/home/xiaojunqian/esp/esp-idf/components/esp_system/port/include/private -I/home/xiaojunqian/esp/esp-idf/components/xtensa/include -I/home/xiaojunqian/esp/esp-idf/components/xtensa/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/lwip/include -I/home/xiaojunqian/esp/esp-idf/components/lwip/include/apps -I/home/xiaojunqian/esp/esp-idf/components/lwip/include/apps/sntp -I/home/xiaojunqian/esp/esp-idf/components/lwip/lwip/src/include -I/home/xiaojunqian/esp/esp-idf/components/lwip/port/include -I/home/xiaojunqian/esp/esp-idf/components/lwip/port/freertos/include -I/home/xiaojunqian/esp/esp-idf/components/lwip/port/esp32xx/include -I/home/xiaojunqian/esp/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/xiaojunqian/esp/esp-idf/components/esp_ringbuf/include -I/home/xiaojunqian/esp/esp-idf/components/efuse/include -I/home/xiaojunqian/esp/esp-idf/components/efuse/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/driver/include -I/home/xiaojunqian/esp/esp-idf/components/driver/deprecated -I/home/xiaojunqian/esp/esp-idf/components/driver/analog_comparator/include -I/home/xiaojunqian/esp/esp-idf/components/driver/dac/include -I/home/xiaojunqian/esp/esp-idf/components/driver/gpio/include -I/home/xiaojunqian/esp/esp-idf/components/driver/gptimer/include -I/home/xiaojunqian/esp/esp-idf/components/driver/i2c/include -I/home/xiaojunqian/esp/esp-idf/components/driver/i2s/include -I/home/xiaojunqian/esp/esp-idf/components/driver/ledc/include -I/home/xiaojunqian/esp/esp-idf/components/driver/mcpwm/include -I/home/xiaojunqian/esp/esp-idf/components/driver/parlio/include -I/home/xiaojunqian/esp/esp-idf/components/driver/pcnt/include -I/home/xiaojunqian/esp/esp-idf/components/driver/rmt/include -I/home/xiaojunqian/esp/esp-idf/components/driver/sdio_slave/include -I/home/xiaojunqian/esp/esp-idf/components/driver/sdmmc/include -I/home/xiaojunqian/esp/esp-idf/components/driver/sigma_delta/include -I/home/xiaojunqian/esp/esp-idf/components/driver/spi/include -I/home/xiaojunqian/esp/esp-idf/components/driver/temperature_sensor/include -I/home/xiaojunqian/esp/esp-idf/components/driver/touch_sensor/include -I/home/xiaojunqian/esp/esp-idf/components/driver/twai/include -I/home/xiaojunqian/esp/esp-idf/components/driver/uart/include -I/home/xiaojunqian/esp/esp-idf/components/driver/usb_serial_jtag/include -I/home/xiaojunqian/esp/esp-idf/components/driver/touch_sensor/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/esp_pm/include -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/port/include -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/mbedtls/library -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -I/home/xiaojunqian/esp/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -I/home/xiaojunqian/esp/esp-idf/components/esp_app_format/include -I/home/xiaojunqian/esp/esp-idf/components/bootloader_support/include -I/home/xiaojunqian/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/xiaojunqian/esp/esp-idf/components/esp_partition/include -I/home/xiaojunqian/esp/esp-idf/components/app_update/include -I/home/xiaojunqian/esp/esp-idf/components/esp_mm/include -I/home/xiaojunqian/esp/esp-idf/components/spi_flash/include -I/home/xiaojunqian/esp/esp-idf/components/pthread/include -I/home/xiaojunqian/esp/esp-idf/components/esp_timer/include -I/home/xiaojunqian/esp/esp-idf/components/app_trace/include -I/home/xiaojunqian/esp/esp-idf/components/esp_event/include -I/home/xiaojunqian/esp/esp-idf/components/nvs_flash/include -I/home/xiaojunqian/esp/esp-idf/components/esp_phy/include -I/home/xiaojunqian/esp/esp-idf/components/esp_phy/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/vfs/include -I/home/xiaojunqian/esp/esp-idf/components/esp_netif/include -I/home/xiaojunqian/esp/esp-idf/components/wpa_supplicant/include -I/home/xiaojunqian/esp/esp-idf/components/wpa_supplicant/port/include -I/home/xiaojunqian/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/home/xiaojunqian/esp/esp-idf/components/esp_coex/include -I/home/xiaojunqian/esp/esp-idf/components/esp_wifi/include -I/home/xiaojunqian/esp/esp-idf/components/esp_wifi/wifi_apps/include -I/home/xiaojunqian/esp/esp-idf/components/bt/include/esp32c3/include -I/home/xiaojunqian/esp/esp-idf/components/bt/common/osi/include -I/home/xiaojunqian/esp/esp-idf/components/bt/common/api/include/api -I/home/xiaojunqian/esp/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/home/xiaojunqian/esp/esp-idf/components/bt/common/btc/profile/esp/include -I/home/xiaojunqian/esp/esp-idf/components/bt/host/bluedroid/api/include/api -I/home/xiaojunqian/esp/esp-idf/components/bt/porting/ext/tinycrypt/include -I/home/xiaojunqian/esp/esp-idf/components/unity/include -I/home/xiaojunqian/esp/esp-idf/components/unity/unity/src -I/home/xiaojunqian/esp/esp-idf/components/cmock/CMock/src -I/home/xiaojunqian/esp/esp-idf/components/console -I/home/xiaojunqian/esp/esp-idf/components/http_parser -I/home/xiaojunqian/esp/esp-idf/components/esp-tls -I/home/xiaojunqian/esp/esp-idf/components/esp-tls/esp-tls-crypto -I/home/xiaojunqian/esp/esp-idf/components/esp_adc/include -I/home/xiaojunqian/esp/esp-idf/components/esp_adc/interface -I/home/xiaojunqian/esp/esp-idf/components/esp_adc/esp32s3/include -I/home/xiaojunqian/esp/esp-idf/components/esp_adc/deprecated/include -I/home/xiaojunqian/esp/esp-idf/components/esp_eth/include -I/home/xiaojunqian/esp/esp-idf/components/esp_gdbstub/include -I/home/xiaojunqian/esp/esp-idf/components/esp_hid/include -I/home/xiaojunqian/esp/esp-idf/components/tcp_transport/include -I/home/xiaojunqian/esp/esp-idf/components/esp_http_client/include -I/home/xiaojunqian/esp/esp-idf/components/esp_http_server/include -I/home/xiaojunqian/esp/esp-idf/components/esp_https_ota/include -I/home/xiaojunqian/esp/esp-idf/components/esp_psram/include -I/home/xiaojunqian/esp/esp-idf/components/esp_lcd/include -I/home/xiaojunqian/esp/esp-idf/components/esp_lcd/interface -I/home/xiaojunqian/esp/esp-idf/components/protobuf-c/protobuf-c -I/home/xiaojunqian/esp/esp-idf/components/protocomm/include/common -I/home/xiaojunqian/esp/esp-idf/components/protocomm/include/security -I/home/xiaojunqian/esp/esp-idf/components/protocomm/include/transports -I/home/xiaojunqian/esp/esp-idf/components/esp_local_ctrl/include -I/home/xiaojunqian/esp/esp-idf/components/espcoredump/include -I/home/xiaojunqian/esp/esp-idf/components/espcoredump/include/port/xtensa -I/home/xiaojunqian/esp/esp-idf/components/wear_levelling/include -I/home/xiaojunqian/esp/esp-idf/components/sdmmc/include -I/home/xiaojunqian/esp/esp-idf/components/fatfs/diskio -I/home/xiaojunqian/esp/esp-idf/components/fatfs/vfs -I/home/xiaojunqian/esp/esp-idf/components/fatfs/src -I/home/xiaojunqian/esp/esp-idf/components/idf_test/include -I/home/xiaojunqian/esp/esp-idf/components/idf_test/include/esp32s3 -I/home/xiaojunqian/esp/esp-idf/components/ieee802154/include -I/home/xiaojunqian/esp/esp-idf/components/json/cJSON -I/home/xiaojunqian/esp/esp-idf/components/mqtt/esp-mqtt/include -I/home/xiaojunqian/esp/esp-idf/components/perfmon/include -I/home/xiaojunqian/esp/esp-idf/components/spiffs/include -I/home/xiaojunqian/esp/esp-idf/components/touch_element/include -I/home/xiaojunqian/esp/esp-idf/components/ulp/ulp_common/include -I/home/xiaojunqian/esp/esp-idf/components/ulp/ulp_common/include/esp32s3 -I/home/xiaojunqian/esp/esp-idf/components/usb/include -I/home/xiaojunqian/esp/esp-idf/components/wifi_provisioning/include -mlongcalls  -fdiagnostics-color=always -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fmacro-prefix-map=/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi=. -fmacro-prefix-map=/home/xiaojunqian/esp/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/blufi_init.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/blufi_init.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/blufi_init.c.obj -c /mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/main/blufi_init.c
/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/main/blufi_init.c: In function 'esp_blufi_host_init':
/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/main/blufi_init.c:35:5: error: unknown type name 'esp_bluedroid_config_t'; did you mean 'esp_bluedroid_status_t'?
   35 |     esp_bluedroid_config_t bluedroid_cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
      |     ^~~~~~~~~~~~~~~~~~~~~~
      |     esp_bluedroid_status_t
/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/main/blufi_init.c:35:44: error: implicit declaration of function 'BT_BLUEDROID_INIT_CONFIG_DEFAULT'; did you mean 'BT_CONTROLLER_INIT_CONFIG_DEFAULT'? [-Werror=implicit-function-declaration]
   35 |     esp_bluedroid_config_t bluedroid_cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
      |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                            BT_CONTROLLER_INIT_CONFIG_DEFAULT
/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi/main/blufi_init.c:36:11: error: implicit declaration of function 'esp_bluedroid_init_with_cfg'; did you mean 'esp_bluedroid_init'? [-Werror=implicit-function-declaration]
   36 |     ret = esp_bluedroid_init_with_cfg(&bluedroid_cfg);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |           esp_bluedroid_init
cc1: some warnings being treated as errors
[1239/1245] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/blufi_example_main.c.obj
ninja: build stopped: subcommand failed.

More Information.

I can build example blink project success, but this project failed.

qianxiaojun1 commented 7 months ago

and the branch of project : xiaojunqian@xiaojun:/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi$ git branch

esp-zhp commented 7 months ago

@qianxiaojun1 I had test it in version be06a6f5ffe36f9554cfc91fe2036e0fc85fea60, It seems like your environment hasn't been properly installed.

~/esp/esp-idf/examples/bluetooth/blufi$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build
Executing "ninja all"...
[15/1297] 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,1500K,
*******************************************************************************
[490/1297] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/asio does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/cbor does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/coap does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/expat does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/libsodium does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/nghttp does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/tinyusb does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc -- 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: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++
-- Check for working CXX compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++ -- 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 esp32s3
-- Project sdkconfig file /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_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: /home/zhanghaipeng/esp/esp-idf/components/bootloader /home/zhanghaipeng/esp/esp-idf/components/bootloader_support /home/zhanghaipeng/esp/esp-idf/components/efuse /home/zhanghaipeng/esp/esp-idf/components/esp_app_format /home/zhanghaipeng/esp/esp-idf/components/esp_bootloader_format /home/zhanghaipeng/esp/esp-idf/components/esp_common /home/zhanghaipeng/esp/esp-idf/components/esp_hw_support /home/zhanghaipeng/esp/esp-idf/components/esp_rom /home/zhanghaipeng/esp/esp-idf/components/esp_system /home/zhanghaipeng/esp/esp-idf/components/esptool_py /home/zhanghaipeng/esp/esp-idf/components/freertos /home/zhanghaipeng/esp/esp-idf/components/hal /home/zhanghaipeng/esp/esp-idf/components/log /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/zhanghaipeng/esp/esp-idf/components/newlib /home/zhanghaipeng/esp/esp-idf/components/partition_table /home/zhanghaipeng/esp/esp-idf/components/soc /home/zhanghaipeng/esp/esp-idf/components/spi_flash /home/zhanghaipeng/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build/bootloader
[112/113] Generating binary image from built executable
esptool.py v4.8.dev3
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build/bootloader/bootloader.bin
[113/113] cd /home/zhanghaipeng/esp/esp-idf/examples/bluetooth...p-idf/examples/bluetooth/blufi/build/bootloader/bootloader.bin
Bootloader binary size 0x5250 bytes. 0x2db0 bytes (36%) free.
[1296/1297] Generating binary image from built executable
esptool.py v4.8.dev3
Creating esp32s3 image...
Merged 3 ELF sections
Successfully created esp32s3 image.
Generated /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build/blufi_demo.bin
[1297/1297] cd /home/zhanghaipeng/esp/esp-idf/examples/bluetoo...peng/esp/esp-idf/examples/bluetooth/blufi/build/blufi_demo.bin
blufi_demo.bin binary size 0x10fb40 bytes. Smallest app partition is 0x177000 bytes. 0x674c0 bytes (28%) free.

Project build complete. To flash, run:
 idf.py flash
or
 idf.py -p PORT flash
or
 python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/blufi_demo.bin
or from the "/home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build" directory
 python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
esp-zhp commented 7 months ago

Please refer to the following document for installing the IDF environment: Please refer to: https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32/get-started/linux-macos-setup.html

qianxiaojun1 commented 7 months ago

Please refer to the following document for installing the IDF environment: Please refer to: https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32/get-started/linux-macos-setup.html

OK,I'll try to uninstall and retry。Maybe I use vscode extension to install and caused this problem。

qianxiaojun1 commented 7 months ago

Please refer to the following document for installing the IDF environment: Please refer to: https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32/get-started/linux-macos-setup.html

Thank you! I have solve this problem。When I use vscode extesions,I find the environment will cause this problem。