-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Hello. I was building the firmware for a general esp32 wroom devkit when the build failed and gave this error:
[1376/2261] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/__/esp32_rmt.c.obj
FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/__/esp32_rmt.c.obj
/home/seth/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin/xtensa-esp32-elf-gcc -DBERKELEY_DB_CONFIG_FILE=\"/home/seth/lvgl_micropython/lib/micropython/extmod/berkeley-db/berkeley_db_config_port.h\" -DESP_PLATFORM -DFFCONF_H=\"/home/seth/lvgl_micropython/lib/micropython/lib/oofatfs/ffconf.h\" -DIDF_VER=\"67c1de1e\" -DLFS1_NO_ASSERT -DLFS1_NO_DEBUG -DLFS1_NO_ERROR -DLFS1_NO_MALLOC -DLFS1_NO_WARN -DLFS2_NO_ASSERT -DLFS2_NO_DEBUG -DLFS2_NO_ERROR -DLFS2_NO_MALLOC -DLFS2_NO_WARN -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DMICROPY_BOARD_BUILD_NAME=\"ESP32_GENERIC\" -DMICROPY_MODULE_FROZEN_MPY="(1)" -DMICROPY_PY_BTREE=1 -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool -DMICROPY_VFS_FAT=1 -DMICROPY_VFS_LFS2=1 -DNDEBUG -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/home/seth/lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC/config -I/home/seth/lvgl_micropython/lib/micropython -I/home/seth/lvgl_micropython/lib/micropython/lib/berkeley-db-1.xx/include -I/home/seth/lvgl_micropython/ext_mod/spi3wire -I/home/seth/lvgl_micropython/ext_mod/spi3wire/include -I/home/seth/lvgl_micropython/ext_mod/lcd_bus -I/home/seth/lvgl_micropython/ext_mod/lcd_bus/esp32_include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_lcd/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_lcd/interface -I/home/seth/lvgl_micropython/lib -I/home/seth/lvgl_micropython/lib/lvgl -I/home/seth/lvgl_micropython/lib/micropython/ports/esp32 -I/home/seth/lvgl_micropython/lib/micropython/ports/esp32/boards/ESP32_GENERIC -I/home/seth/lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble -I/home/seth/lvgl_micropython/lib/esp-idf/components/newlib/platform_include -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/config/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/config/include/freertos -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/config/xtensa/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -I/home/seth/lvgl_micropython/lib/esp-idf/components/freertos/esp_additions/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/include/soc -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/dma/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/ldo/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/debug_probe/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/port/esp32/. -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_hw_support/port/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/heap/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/heap/tlsf -I/home/seth/lvgl_micropython/lib/esp-idf/components/log/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/soc/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/soc/esp32 -I/home/seth/lvgl_micropython/lib/esp-idf/components/soc/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/soc/esp32/register -I/home/seth/lvgl_micropython/lib/esp-idf/components/hal/platform_port/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/hal/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/hal/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_rom/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_rom/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_rom/esp32/include/esp32 -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_rom/esp32 -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_common/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_system/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_system/port/soc -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_system/port/include/private -I/home/seth/lvgl_micropython/lib/esp-idf/components/xtensa/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/xtensa/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/xtensa/deprecated_include -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/include/apps -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/include/apps/sntp -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/lwip/src/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/port/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/port/freertos/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/port/esp32xx/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/port/esp32xx/include/arch -I/home/seth/lvgl_micropython/lib/esp-idf/components/lwip/port/esp32xx/include/sys -I/home/seth/lvgl_micropython/lib/esp-idf/components/app_update/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bootloader_support/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_app_format/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_bootloader_format/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_partition/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/include/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/common/osi/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/common/api/include/api -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/common/btc/profile/esp/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/common/hci_log/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ans/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/bas/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/dis/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/gap/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/gatt/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/hr/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/htp/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ias/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/ipss/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/lls/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/prox/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/cts/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/tps/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/hid/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/sps/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/services/cte/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/util/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/store/ram/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/host/store/config/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/porting/nimble/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/port/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/nimble/transport/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/porting/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/nimble/porting/npl/freertos/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/bt/host/nimble/esp-hci/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_timer/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_wifi/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_wifi/include/local -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_wifi/wifi_apps/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_wifi/wifi_apps/nan_app/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_event/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_phy/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_phy/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_netif/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/driver/deprecated -I/home/seth/lvgl_micropython/lib/esp-idf/components/driver/i2c/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/driver/touch_sensor/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/driver/twai/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/driver/touch_sensor/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_pm/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_ringbuf/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_gpio/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_pcnt/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_gptimer/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_spi/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_mcpwm/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_ana_cmpr/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_i2s/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_sdmmc/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/sdmmc/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_sdspi/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_sdio/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_dac/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_rmt/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_tsens/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_sdm/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_i2c/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_uart/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/vfs/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_ledc/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_parlio/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_driver_usb_serial_jtag/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_adc/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_adc/interface -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_adc/esp32/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_adc/deprecated/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_eth/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_psram/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/mbedtls/port/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/mbedtls/mbedtls/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/mbedtls/mbedtls/library -I/home/seth/lvgl_micropython/lib/esp-idf/components/mbedtls/mbedtls/3rdparty/everest/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m -I/home/seth/lvgl_micropython/lib/esp-idf/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -I/home/seth/lvgl_micropython/lib/esp-idf/components/nvs_flash/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/spi_flash/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/ulp/ulp_common/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/ulp/ulp_fsm/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/ulp/ulp_fsm/include/esp32 -I/home/seth/lvgl_micropython/lib/micropython/ports/esp32/managed_components/espressif__mdns/include -I/home/seth/lvgl_micropython/lib/esp-idf/components/console -I/home/seth/lvgl_micropython/lib/esp-idf/components/esp_vfs_console/include -mlongcalls -Wno-frame-address -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -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-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -O2 -fmacro-prefix-map=/home/seth/lvgl_micropython/lib/micropython/ports/esp32=. -fmacro-prefix-map=/home/seth/lvgl_micropython/lib/esp-idf=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-unterminated-string-initialization -Wno-old-style-declaration -Wno-clobbered -Wno-deprecated-declarations -Wno-missing-field-initializers -DLV_KCONFIG_IGNORE=1 -Wno-unused-function -DMICROPY_FLOAT=1 -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/__/esp32_rmt.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/__/esp32_rmt.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/__/esp32_rmt.c.obj -c /home/seth/lvgl_micropython/lib/micropython/ports/esp32/esp32_rmt.c
/home/seth/lvgl_micropython/lib/micropython/ports/esp32/esp32_rmt.c:53:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
53 | https://github.com/micropython/micropython/pull/16293
| ^
cc1: note: unrecognized command-line option '-Wno-unterminated-string-initialization' may have been intended to silence earlier diagnostics
[1381/2261] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/__/machine_hw_spi.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /home/seth/lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stderr_output_5238 and /home/seth/lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC/log/idf_py_stdout_output_5238
-e See https://github.com/micropython/micropython/wiki/Build-Troubleshooting
make: Leaving directory '/home/seth/lvgl_micropython/lib/micropython/ports/esp32'
make: *** [Makefile:77: all] Error 1
I looked into it and it seems in esp32_rmt.c on line 53 there is a GitHub URL to a pull request (PR #16293 in the main MicroPython repo). It looks like a remnant from a merge commit message, code review comment, or accidental paste during editing. In C, the compiler expects a declaration, statement, or attribute after a token like this, but https://... followed by a colon (:) is treated as invalid syntax (hence the "before ':' token" error).
I think you were trying to fix the driver_ng issue and accidentally copied this here, just edit the line and remove it. ok, bye.
and just incase it is necessary this was the build command i used :
python3 make.py esp32 BOARD=ESP32_GENERIC DISPLAY=ili9486 INDEV=xpt2046.
I am using wsl for windows.