espressif / esp-iot-solution

Espressif IoT Library. IoT Device Drivers, Documentations and Solutions.
Apache License 2.0
1.98k stars 785 forks source link

Unable to build usb_cdc_4g_module for ESP32 S3 #208

Closed pegasus-automation closed 2 years ago

pegasus-automation commented 2 years ago

Environment

Problem Description

I am trying to compile esp-iot-solution-usb-add_usb_solutions->examples->usb->host->usb_cdc_4g_module , for esp32 S3 board.

I did idf.py set-target esp32s3 and after setting is done, I tried to build the project. While building it throws the below error

Expected Behavior

Build successful

Actual Behavior

[71/101] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_sleep.c.obj [72/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj [73/101] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_sys.c.obj [74/101] Building C object esp-idf/xtensa/CMakeFiles/idf_xtensa.dir/xt_trax.c.obj [75/101] Building C object esp-idf/esp_system/CMakeFiles/idf_esp_system.dir/esp_err.c.obj [76/101] Building C object esp-idf/esp_common/CMakeFiles/idf_esp_common.dir/src/esp_err_to_name.c.obj [77/101] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj [78/101] Building C object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_uart.c.obj [79/101] Building C object esp-idf/esp_hw_support/CMakeFiles/idf_esp_hw_support.dir/port/esp32s3/rtc_pm.c.obj [80/101] Building C object esp-idf/efuse/CMakeFiles/idf_efuse.dir/esp32s3/esp_efuse_table.c.obj [81/101] Building C object esp-idf/log/CMakeFiles/idf_log.dir/log.c.obj [82/101] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj [83/101] Building ASM object esp-idf/esp_rom/CMakeFiles/idf_esp_rom.dir/patches/esp_rom_longjmp.S.obj [84/101] Building C object esp-idf/log/CMakeFiles/idf_log.dir/log_noos.c.obj [85/101] Linking C static library esp-idf\log\liblog.a [86/101] Linking C static library esp-idf\esp_rom\libesp_rom.a [87/101] Building C object esp-idf/main/CMakeFiles/idf_main.dir/bootloader_start.c.obj [88/101] Linking C static library esp-idf\esp_common\libesp_common.a [89/101] Linking C static library esp-idf\xtensa\libxtensa.a [90/101] Linking C static library esp-idf\esp_hw_support\libesp_hw_support.a [91/101] Linking C static library esp-idf\esp_system\libesp_system.a [92/101] Linking C static library esp-idf\efuse\libefuse.a [93/101] Linking C static library esp-idf\bootloader_support\libbootloader_support.a [94/101] Linking C static library esp-idf\spi_flash\libspi_flash.a [95/101] Linking C static library esp-idf\micro-ecc\libmicro-ecc.a [96/101] Linking C static library esp-idf\soc\libsoc.a [97/101] Linking C static library esp-idf\hal\libhal.a [98/101] Linking C static library esp-idf\main\libmain.a [99/101] Linking C executable bootloader.elf [100/101] Generating binary image from built executable esptool.py v3.3-dev Creating esp32s3 image... Merged 1 ELF section Successfully created esp32s3 image. Generated C:/Espressif/frameworks/esp-idf-v4.4.1/projects/esp-iot-solution-usb-add_usb_solutions/examples/usb/host/usb_cdc_4g_module/build/bootloader/bootloader.bin [101/101] cmd.exe /C "cd /D C:\Espressif\frameworks\esp-idf-v4.4.1\projects\esp-iot-solution-usb-add_usb_solutions\examples\usb\host\usb_cdc_4g_module\build\bootloader\esp-idf\esptool_py && C:\Espressif\frameworks\tools\Espressif\python_env\idf4.4_py3.8_env\Scripts\python.exe C:/Espressif/frameworks/esp-idf-v4.4.1/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Espressif/frameworks/esp-idf-v4.4.1/projects/esp-iot-solution-usb-add_usb_solutions/examples/usb/host/usb_cdc_4g_module/build/bootloader/bootloader.bin" Bootloader binary size 0x5710 bytes. 0x28f0 bytes (32%) free. [888/1062] Building C object esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj FAILED: esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj ccache C:\Espressif\frameworks\tools\Espressif\tools\xtensa-esp32s3-elf\esp-2021r2-patch3-8.4.0\xtensa-esp32s3-elf\bin\xtensa-esp32s3-elf-gcc.exe -DCONFIGURED -DHAVE_WEAK_SYMBOLS -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DNATIVE_LITTLE_ENDIAN -DSTDC_CONSTANT_MACROS -DSTDC_LIMIT_MACROS -Iconfig -I../../../../../../../components/libsodium/libsodium/src/libsodium/include -I../../../../../../../components/libsodium/port_include -I../../../../../../../components/libsodium/libsodium/src/libsodium/include/sodium -I../../../../../../../components/libsodium/port_include/sodium -I../../../../../../../components/libsodium/port -I../../../../../../../components/newlib/platform_include -I../../../../../../../components/freertos/include -I../../../../../../../components/freertos/include/esp_additions/freertos -I../../../../../../../components/freertos/port/xtensa/include -I../../../../../../../components/freertos/include/esp_additions -I../../../../../../../components/esp_hw_support/include -I../../../../../../../components/esp_hw_support/include/soc -I../../../../../../../components/esp_hw_support/include/soc/esp32s3 -I../../../../../../../components/esp_hw_support/port/esp32s3/. -I../../../../../../../components/esp_hw_support/port/esp32s3/private_include -I../../../../../../../components/heap/include -I../../../../../../../components/log/include -I../../../../../../../components/lwip/include/apps -I../../../../../../../components/lwip/include/apps/sntp -I../../../../../../../components/lwip/lwip/src/include -I../../../../../../../components/lwip/port/esp32/include -I../../../../../../../components/lwip/port/esp32/include/arch -I../../../../../../../components/soc/include -I../../../../../../../components/soc/esp32s3/. -I../../../../../../../components/soc/esp32s3/include -I../../../../../../../components/hal/esp32s3/include -I../../../../../../../components/hal/include -I../../../../../../../components/hal/platform_port/include -I../../../../../../../components/esp_rom/include -I../../../../../../../components/esp_rom/include/esp32s3 -I../../../../../../../components/esp_rom/esp32s3 -I../../../../../../../components/esp_common/include -I../../../../../../../components/esp_system/include -I../../../../../../../components/esp_system/port/soc -I../../../../../../../components/esp_system/port/public_compat -I../../../../../../../components/xtensa/include -I../../../../../../../components/xtensa/esp32s3/include -I../../../../../../../components/driver/include -I../../../../../../../components/driver/esp32s3/include -I../../../../../../../components/esp_pm/include -I../../../../../../../components/esp_ringbuf/include -I../../../../../../../components/efuse/include -I../../../../../../../components/efuse/esp32s3/include -I../../../../../../../components/vfs/include -I../../../../../../../components/esp_wifi/include -I../../../../../../../components/esp_event/include -I../../../../../../../components/esp_netif/include -I../../../../../../../components/esp_eth/include -I../../../../../../../components/tcpip_adapter/include -I../../../../../../../components/esp_phy/include -I../../../../../../../components/esp_phy/esp32s3/include -I../../../../../../../components/esp_ipc/include -I../../../../../../../components/app_trace/include -I../../../../../../../components/esp_timer/include -I../../../../../../../components/mbedtls/port/include -I../../../../../../../components/mbedtls/mbedtls/include -I../../../../../../../components/mbedtls/esp_crt_bundle/include -mlongcalls -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -O2 -fmacro-prefix-map=C:/Espressif/frameworks/esp-idf-v4.4.1/projects/esp-iot-solution-usb-add_usb_solutions/examples/usb/host/usb_cdc_4g_module=. -fmacro-prefix-map=C:/Espressif/frameworks/esp-idf-v4.4.1=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4.1\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -Wno-unused-function -MD -MT esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj -MF esp-idf\libsodium\CMakeFiles\idf_libsodium.dir\libsodium\src\libsodium\crypto_box\curve25519xchacha20poly1305\box_seal_curve25519xchacha20poly1305.c.obj.d -o esp-idf/libsodium/CMakeFiles/idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c.obj -c C:/Espressif/frameworks/esp-idf-v4.4.1/components/libsodium/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c C:/Espressif/frameworks/esp-idf-v4.4.1/components/libsodium/libsodium/src/libsodium/crypto_box/curve25519xchacha20poly1305/box_seal_curve25519xchacha20poly1305.c:79:1: fatal error: opening dependency file esp-idf\libsodium\CMakeFiles\idf_libsodium.dir\libsodium\src\libsodium\crypto_box\curve25519xchacha20poly1305\box_seal_curve25519xchacha20poly1305.c.obj.d: No such file or directory } ^ compilation terminated. [893/1062] Building C object esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_core/ed25519/ref10/ed25519_ref10.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

Steps to repropduce

  1. idf.py set-target esp32s3
  2. idf.py build

Code to reproduce this issue

Example code

pegasus-automation commented 2 years ago

Issue with cloning, cloned the git repo again and it is now able to complie