Open duinzicht8 opened 2 years ago
Dear Tjerreio,
This is an error with the esp-idf latest. The older version was imcompatable with the atest updates UBUNtu 2022.4. So I tried the esp-idf latest.
jan@jan-LubuntuESP32:~/esp/esp-idf/examples/ESP32$ idf.py build Executing action: all (aliases: build) Running cmake in directory /home/jan/esp/esp-idf/examples/ESP32/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/jan/esp/esp-idf/examples/ESP32"... -- Found Git: /usr/bin/git (found version "2.34.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: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-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/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /home/jan/esp/esp-idf/examples/ESP32/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 -- Found Python3: /home/jan/.espressif/python_env/idf5.1_py3.10_env/bin/python (found version "3.10.4") found components: Interpreter -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success -- App "grbl" version: 3078a23-dirty -- Adding linker script /home/jan/esp/esp-idf/examples/ESP32/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /home/jan/esp/esp-idf/components/soc/esp32/ld/esp32.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_phy esp_pm esp_psram esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa -- Component paths: /home/jan/esp/esp-idf/components/app_trace /home/jan/esp/esp-idf/components/app_update /home/jan/esp/esp-idf/components/bootloader /home/jan/esp/esp-idf/components/bootloader_support /home/jan/esp/esp-idf/components/bt /home/jan/esp/esp-idf/components/cmock /home/jan/esp/esp-idf/components/console /home/jan/esp/esp-idf/components/cxx /home/jan/esp/esp-idf/components/driver /home/jan/esp/esp-idf/components/efuse /home/jan/esp/esp-idf/components/esp-tls /home/jan/esp/esp-idf/components/esp_adc /home/jan/esp/esp-idf/components/esp_app_format /home/jan/esp/esp-idf/components/esp_common /home/jan/esp/esp-idf/components/esp_eth /home/jan/esp/esp-idf/components/esp_event /home/jan/esp/esp-idf/components/esp_gdbstub /home/jan/esp/esp-idf/components/esp_hid /home/jan/esp/esp-idf/components/esp_http_client /home/jan/esp/esp-idf/components/esp_http_server /home/jan/esp/esp-idf/components/esp_https_ota /home/jan/esp/esp-idf/components/esp_https_server /home/jan/esp/esp-idf/components/esp_hw_support /home/jan/esp/esp-idf/components/esp_lcd /home/jan/esp/esp-idf/components/esp_local_ctrl /home/jan/esp/esp-idf/components/esp_netif /home/jan/esp/esp-idf/components/esp_phy /home/jan/esp/esp-idf/components/esp_pm /home/jan/esp/esp-idf/components/esp_psram /home/jan/esp/esp-idf/components/esp_ringbuf /home/jan/esp/esp-idf/components/esp_rom /home/jan/esp/esp-idf/components/esp_serial_slave_link /home/jan/esp/esp-idf/components/esp_system /home/jan/esp/esp-idf/components/esp_timer /home/jan/esp/esp-idf/components/esp_wifi /home/jan/esp/esp-idf/components/espcoredump /home/jan/esp/esp-idf/components/esptool_py /home/jan/esp/esp-idf/components/fatfs /home/jan/esp/esp-idf/components/freertos /home/jan/esp/esp-idf/components/hal /home/jan/esp/esp-idf/components/heap /home/jan/esp/esp-idf/components/http_parser /home/jan/esp/esp-idf/components/idf_test /home/jan/esp/esp-idf/components/ieee802154 /home/jan/esp/esp-idf/components/json /home/jan/esp/esp-idf/components/log /home/jan/esp/esp-idf/components/lwip /home/jan/esp/esp-idf/examples/ESP32/main /home/jan/esp/esp-idf/components/mbedtls /home/jan/esp/esp-idf/components/mqtt /home/jan/esp/esp-idf/components/newlib /home/jan/esp/esp-idf/components/nvs_flash /home/jan/esp/esp-idf/components/openthread /home/jan/esp/esp-idf/components/partition_table /home/jan/esp/esp-idf/components/perfmon /home/jan/esp/esp-idf/components/protobuf-c /home/jan/esp/esp-idf/components/protocomm /home/jan/esp/esp-idf/components/pthread /home/jan/esp/esp-idf/components/sdmmc /home/jan/esp/esp-idf/components/soc /home/jan/esp/esp-idf/components/spi_flash /home/jan/esp/esp-idf/components/spiffs /home/jan/esp/esp-idf/components/tcp_transport /home/jan/esp/esp-idf/components/tinyusb /home/jan/esp/esp-idf/components/ulp /home/jan/esp/esp-idf/components/unity /home/jan/esp/esp-idf/components/usb /home/jan/esp/esp-idf/components/vfs /home/jan/esp/esp-idf/components/wear_levelling /home/jan/esp/esp-idf/components/wifi_provisioning /home/jan/esp/esp-idf/components/wpa_supplicant /home/jan/esp/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: /home/jan/esp/esp-idf/examples/ESP32/build Running ninja in directory /home/jan/esp/esp-idf/examples/ESP32/build Executing "ninja all"... [5/1177] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:
nvs,data,nvs,0x9000,24K, phy_init,data,phy,0xf000,4K, factory,app,factory,0x10000,1M, grbl,data,153,0x110000,4K, storage,data,spiffs,0x111000,960K,
[309/1177] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.34.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: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-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/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /home/jan/esp/esp-idf/examples/ESP32/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 /home/jan/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld -- App "bootloader" version: v5.1-dev-437-g5c1044d84d -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /home/jan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld -- Adding linker script /home/jan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/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/jan/esp/esp-idf/components/bootloader /home/jan/esp/esp-idf/components/bootloader_support /home/jan/esp/esp-idf/components/efuse /home/jan/esp/esp-idf/components/esp_app_format /home/jan/esp/esp-idf/components/esp_common /home/jan/esp/esp-idf/components/esp_hw_support /home/jan/esp/esp-idf/components/esp_rom /home/jan/esp/esp-idf/components/esp_system /home/jan/esp/esp-idf/components/esptool_py /home/jan/esp/esp-idf/components/freertos /home/jan/esp/esp-idf/components/hal /home/jan/esp/esp-idf/components/log /home/jan/esp/esp-idf/components/bootloader/subproject/main /home/jan/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/jan/esp/esp-idf/components/newlib /home/jan/esp/esp-idf/components/partition_table /home/jan/esp/esp-idf/components/soc /home/jan/esp/esp-idf/components/spi_flash /home/jan/esp/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: /home/jan/esp/esp-idf/examples/ESP32/build/bootloader [100/101] Generating binary image from built executableesptool.py v4.2.1 Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Generated /home/jan/esp/esp-idf/examples/ESP32/build/bootloader/bootloader.bin [101/101] cd /home/jan/esp/esp-idf/examples/ESP32/build/bootl...an/esp/esp-idf/examples/ESP32/build/bootloader/bootloader.binBootloader binary size 0x4500 bytes. 0x2b00 bytes (38%) free. [892/1177] Building C object esp-idf/bt/CMakeFiles/idf_bt.dir/host/bluedroid/hci/hci_layer.c.obj/home/jan/esp/esp-idf/components/bt/host/bluedroid/hci/hci_layer.c: In function 'command_timed_out': /home/jan/esp/esp-idf/components/bt/host/bluedroid/hci/hci_layer.c:406:29: warning: unused variable 'metadata' [-Wunused-variable] 406 | hci_cmd_metadata_t metadata = (hci_cmd_metadata_t )(wait_entry->data); | ^~~~ [1137/1177] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp32-hal-uart.c.objFAILED: esp-idf/main/CMakeFiles/idf_main.dir/esp32-hal-uart.c.obj /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DBOARD_BDRING_V4 -DGRBL_ESP32 -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DOVERRIDE_MY_MACHINE -DUNITY_INCLUDE_CONFIG_H -I/home/jan/esp/esp-idf/examples/ESP32/build/config -I/home/jan/esp/esp-idf/examples/ESP32/main -I/home/jan/esp/esp-idf/components/newlib/platform_include -I/home/jan/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/jan/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/home/jan/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/jan/esp/esp-idf/components/freertos/esp_additions/include -I/home/jan/esp/esp-idf/components/esp_hw_support/include -I/home/jan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/jan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/jan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/jan/esp/esp-idf/components/esp_hw_support/port/esp32/private_include -I/home/jan/esp/esp-idf/components/heap/include -I/home/jan/esp/esp-idf/components/log/include -I/home/jan/esp/esp-idf/components/soc/include -I/home/jan/esp/esp-idf/components/soc/esp32/. -I/home/jan/esp/esp-idf/components/soc/esp32/include -I/home/jan/esp/esp-idf/components/hal/esp32/include -I/home/jan/esp/esp-idf/components/hal/include -I/home/jan/esp/esp-idf/components/hal/platform_port/include -I/home/jan/esp/esp-idf/components/esp_rom/include -I/home/jan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/jan/esp/esp-idf/components/esp_rom/esp32 -I/home/jan/esp/esp-idf/components/esp_common/include -I/home/jan/esp/esp-idf/components/esp_system/include -I/home/jan/esp/esp-idf/components/esp_system/port/soc -I/home/jan/esp/esp-idf/components/esp_system/port/include/private -I/home/jan/esp/esp-idf/components/xtensa/include -I/home/jan/esp/esp-idf/components/xtensa/esp32/include -I/home/jan/esp/esp-idf/components/lwip/include -I/home/jan/esp/esp-idf/components/lwip/include/apps -I/home/jan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/jan/esp/esp-idf/components/lwip/lwip/src/include -I/home/jan/esp/esp-idf/components/lwip/port/esp32/include -I/home/jan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/jan/esp/esp-idf/components/esp_ringbuf/include -I/home/jan/esp/esp-idf/components/efuse/include -I/home/jan/esp/esp-idf/components/efuse/esp32/include -I/home/jan/esp/esp-idf/components/driver/include -I/home/jan/esp/esp-idf/components/driver/deprecated -I/home/jan/esp/esp-idf/components/driver/esp32/include -I/home/jan/esp/esp-idf/components/esp_pm/include -I/home/jan/esp/esp-idf/components/mbedtls/port/include -I/home/jan/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/jan/esp/esp-idf/components/mbedtls/mbedtls/library -I/home/jan/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/jan/esp/esp-idf/components/esp_app_format/include -I/home/jan/esp/esp-idf/components/bootloader_support/include -I/home/jan/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/jan/esp/esp-idf/components/app_update/include -I/home/jan/esp/esp-idf/components/spi_flash/include -I/home/jan/esp/esp-idf/components/pthread/include -I/home/jan/esp/esp-idf/components/esp_timer/include -I/home/jan/esp/esp-idf/components/app_trace/include -I/home/jan/esp/esp-idf/components/esp_event/include -I/home/jan/esp/esp-idf/components/nvs_flash/include -I/home/jan/esp/esp-idf/components/esp_phy/include -I/home/jan/esp/esp-idf/components/esp_phy/esp32/include -I/home/jan/esp/esp-idf/components/vfs/include -I/home/jan/esp/esp-idf/components/esp_netif/include -I/home/jan/esp/esp-idf/components/wpa_supplicant/include -I/home/jan/esp/esp-idf/components/wpa_supplicant/port/include -I/home/jan/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/home/jan/esp/esp-idf/components/esp_wifi/include -I/home/jan/esp/esp-idf/components/bt/include/esp32/include -I/home/jan/esp/esp-idf/components/bt/common/osi/include -I/home/jan/esp/esp-idf/components/bt/common/api/include/api -I/home/jan/esp/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/home/jan/esp/esp-idf/components/bt/common/btc/profile/esp/include -I/home/jan/esp/esp-idf/components/bt/host/bluedroid/api/include/api -I/home/jan/esp/esp-idf/components/bt/porting/ext/tinycrypt/include -I/home/jan/esp/esp-idf/components/unity/include -I/home/jan/esp/esp-idf/components/unity/unity/src -I/home/jan/esp/esp-idf/components/cmock/CMock/src -I/home/jan/esp/esp-idf/components/console -I/home/jan/esp/esp-idf/components/http_parser -I/home/jan/esp/esp-idf/components/esp-tls -I/home/jan/esp/esp-idf/components/esp-tls/esp-tls-crypto -I/home/jan/esp/esp-idf/components/esp_adc/include -I/home/jan/esp/esp-idf/components/esp_adc/interface -I/home/jan/esp/esp-idf/components/esp_adc/esp32/include -I/home/jan/esp/esp-idf/components/esp_adc/deprecated/include -I/home/jan/esp/esp-idf/components/esp_eth/include -I/home/jan/esp/esp-idf/components/esp_gdbstub/include -I/home/jan/esp/esp-idf/components/esp_gdbstub/xtensa -I/home/jan/esp/esp-idf/components/esp_gdbstub/esp32 -I/home/jan/esp/esp-idf/components/esp_hid/include -I/home/jan/esp/esp-idf/components/tcp_transport/include -I/home/jan/esp/esp-idf/components/esp_http_client/include -I/home/jan/esp/esp-idf/components/esp_http_server/include -I/home/jan/esp/esp-idf/components/esp_https_ota/include -I/home/jan/esp/esp-idf/components/esp_lcd/include -I/home/jan/esp/esp-idf/components/esp_lcd/interface -I/home/jan/esp/esp-idf/components/protobuf-c/protobuf-c -I/home/jan/esp/esp-idf/components/protocomm/include/common -I/home/jan/esp/esp-idf/components/protocomm/include/security -I/home/jan/esp/esp-idf/components/protocomm/include/transports -I/home/jan/esp/esp-idf/components/esp_local_ctrl/include -I/home/jan/esp/esp-idf/components/esp_psram/include -I/home/jan/esp/esp-idf/components/sdmmc/include -I/home/jan/esp/esp-idf/components/esp_serial_slave_link/include -I/home/jan/esp/esp-idf/components/espcoredump/include -I/home/jan/esp/esp-idf/components/espcoredump/include/port/xtensa -I/home/jan/esp/esp-idf/components/wear_levelling/include -I/home/jan/esp/esp-idf/components/fatfs/diskio -I/home/jan/esp/esp-idf/components/fatfs/vfs -I/home/jan/esp/esp-idf/components/fatfs/src -I/home/jan/esp/esp-idf/components/idf_test/include -I/home/jan/esp/esp-idf/components/idf_test/include/esp32 -I/home/jan/esp/esp-idf/components/ieee802154/include -I/home/jan/esp/esp-idf/components/json/cJSON -I/home/jan/esp/esp-idf/components/mqtt/esp-mqtt/include -I/home/jan/esp/esp-idf/components/perfmon/include -I/home/jan/esp/esp-idf/components/spiffs/include -I/home/jan/esp/esp-idf/components/ulp/ulp_common/include -I/home/jan/esp/esp-idf/components/ulp/ulp_common/include/esp32 -I/home/jan/esp/esp-idf/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -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 -Wno-enum-conversion -gdwarf-4 -ggdb -Os -freorder-blocks -fmacro-prefix-map=/home/jan/esp/esp-idf/examples/ESP32=. -fmacro-prefix-map=/home/jan/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.1-dev-437-g5c1044d84d\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -Wimplicit-fallthrough=1 -Wno-missing-field-initializers -Wno-maybe-uninitialized -Wno-stringop-truncation -MD -MT esp-idf/main/CMakeFiles/idf_main.dir/esp32-hal-uart.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/esp32-hal-uart.c.obj.d -o esp-idf/main/CMakeFiles/idf_main.dir/esp32-hal-uart.c.obj -c /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.c In file included from /home/jan/esp/esp-idf/examples/ESP32/main/driver.h:108, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.h:27, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.c:35: /home/jan/esp/esp-idf/components/driver/deprecated/driver/timer.h:16:2: warning: #warning "legacy timer group driver is deprecated, please migrate to driver/gptimer.h" [-Wcpp] 16 | #warning "legacy timer group driver is deprecated, please migrate to driver/gptimer.h" | ^~~ In file included from /home/jan/esp/esp-idf/examples/ESP32/main/driver.h:110, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.h:27, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.c:35: /home/jan/esp/esp-idf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" [-Wcpp]
I am not prepared to dig into this just now, can you do it and submit a PR for the needed changes?
Dear Tjerreio,
This is an error with the esp-idf latest. The older version was imcompatable with the atest updates UBUNtu 2022.4. So I tried the esp-idf latest.
jan@jan-LubuntuESP32:~/esp/esp-idf/examples/ESP32$ idf.py build Executing action: all (aliases: build) Running cmake in directory /home/jan/esp/esp-idf/examples/ESP32/build Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/jan/esp/esp-idf/examples/ESP32"... -- Found Git: /usr/bin/git (found version "2.34.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: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-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/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /home/jan/esp/esp-idf/examples/ESP32/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 -- Found Python3: /home/jan/.espressif/python_env/idf5.1_py3.10_env/bin/python (found version "3.10.4") found components: Interpreter -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS -- Performing Test C_COMPILER_SUPPORTS_WFORMAT_SIGNEDNESS - Success -- App "grbl" version: 3078a23-dirty -- Adding linker script /home/jan/esp/esp-idf/examples/ESP32/build/esp-idf/esp_system/ld/memory.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_system/ld/esp32/sections.ld.in -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /home/jan/esp/esp-idf/components/soc/esp32/ld/esp32.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_phy esp_pm esp_psram esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_wifi espcoredump esptool_py fatfs freertos hal heap http_parser idf_test ieee802154 json log lwip main mbedtls mqtt newlib nvs_flash openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tinyusb ulp unity usb vfs wear_levelling wifi_provisioning wpa_supplicant xtensa -- Component paths: /home/jan/esp/esp-idf/components/app_trace /home/jan/esp/esp-idf/components/app_update /home/jan/esp/esp-idf/components/bootloader /home/jan/esp/esp-idf/components/bootloader_support /home/jan/esp/esp-idf/components/bt /home/jan/esp/esp-idf/components/cmock /home/jan/esp/esp-idf/components/console /home/jan/esp/esp-idf/components/cxx /home/jan/esp/esp-idf/components/driver /home/jan/esp/esp-idf/components/efuse /home/jan/esp/esp-idf/components/esp-tls /home/jan/esp/esp-idf/components/esp_adc /home/jan/esp/esp-idf/components/esp_app_format /home/jan/esp/esp-idf/components/esp_common /home/jan/esp/esp-idf/components/esp_eth /home/jan/esp/esp-idf/components/esp_event /home/jan/esp/esp-idf/components/esp_gdbstub /home/jan/esp/esp-idf/components/esp_hid /home/jan/esp/esp-idf/components/esp_http_client /home/jan/esp/esp-idf/components/esp_http_server /home/jan/esp/esp-idf/components/esp_https_ota /home/jan/esp/esp-idf/components/esp_https_server /home/jan/esp/esp-idf/components/esp_hw_support /home/jan/esp/esp-idf/components/esp_lcd /home/jan/esp/esp-idf/components/esp_local_ctrl /home/jan/esp/esp-idf/components/esp_netif /home/jan/esp/esp-idf/components/esp_phy /home/jan/esp/esp-idf/components/esp_pm /home/jan/esp/esp-idf/components/esp_psram /home/jan/esp/esp-idf/components/esp_ringbuf /home/jan/esp/esp-idf/components/esp_rom /home/jan/esp/esp-idf/components/esp_serial_slave_link /home/jan/esp/esp-idf/components/esp_system /home/jan/esp/esp-idf/components/esp_timer /home/jan/esp/esp-idf/components/esp_wifi /home/jan/esp/esp-idf/components/espcoredump /home/jan/esp/esp-idf/components/esptool_py /home/jan/esp/esp-idf/components/fatfs /home/jan/esp/esp-idf/components/freertos /home/jan/esp/esp-idf/components/hal /home/jan/esp/esp-idf/components/heap /home/jan/esp/esp-idf/components/http_parser /home/jan/esp/esp-idf/components/idf_test /home/jan/esp/esp-idf/components/ieee802154 /home/jan/esp/esp-idf/components/json /home/jan/esp/esp-idf/components/log /home/jan/esp/esp-idf/components/lwip /home/jan/esp/esp-idf/examples/ESP32/main /home/jan/esp/esp-idf/components/mbedtls /home/jan/esp/esp-idf/components/mqtt /home/jan/esp/esp-idf/components/newlib /home/jan/esp/esp-idf/components/nvs_flash /home/jan/esp/esp-idf/components/openthread /home/jan/esp/esp-idf/components/partition_table /home/jan/esp/esp-idf/components/perfmon /home/jan/esp/esp-idf/components/protobuf-c /home/jan/esp/esp-idf/components/protocomm /home/jan/esp/esp-idf/components/pthread /home/jan/esp/esp-idf/components/sdmmc /home/jan/esp/esp-idf/components/soc /home/jan/esp/esp-idf/components/spi_flash /home/jan/esp/esp-idf/components/spiffs /home/jan/esp/esp-idf/components/tcp_transport /home/jan/esp/esp-idf/components/tinyusb /home/jan/esp/esp-idf/components/ulp /home/jan/esp/esp-idf/components/unity /home/jan/esp/esp-idf/components/usb /home/jan/esp/esp-idf/components/vfs /home/jan/esp/esp-idf/components/wear_levelling /home/jan/esp/esp-idf/components/wifi_provisioning /home/jan/esp/esp-idf/components/wpa_supplicant /home/jan/esp/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: /home/jan/esp/esp-idf/examples/ESP32/build Running ninja in directory /home/jan/esp/esp-idf/examples/ESP32/build Executing "ninja all"... [5/1177] Generating ../../partition_table/partition-table.binPartition 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, grbl,data,153,0x110000,4K, storage,data,spiffs,0x111000,960K,
[309/1177] Performing configure step for 'bootloader'-- Found Git: /usr/bin/git (found version "2.34.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: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-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/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Building ESP-IDF components for target esp32 -- Project sdkconfig file /home/jan/esp/esp-idf/examples/ESP32/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 /home/jan/esp/esp-idf/components/soc/esp32/ld/esp32.peripherals.ld -- App "bootloader" version: v5.1-dev-437-g5c1044d84d -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld -- Adding linker script /home/jan/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld -- Adding linker script /home/jan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/bootloader.ld -- Adding linker script /home/jan/esp/esp-idf/components/bootloader/subproject/main/ld/esp32/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/jan/esp/esp-idf/components/bootloader /home/jan/esp/esp-idf/components/bootloader_support /home/jan/esp/esp-idf/components/efuse /home/jan/esp/esp-idf/components/esp_app_format /home/jan/esp/esp-idf/components/esp_common /home/jan/esp/esp-idf/components/esp_hw_support /home/jan/esp/esp-idf/components/esp_rom /home/jan/esp/esp-idf/components/esp_system /home/jan/esp/esp-idf/components/esptool_py /home/jan/esp/esp-idf/components/freertos /home/jan/esp/esp-idf/components/hal /home/jan/esp/esp-idf/components/log /home/jan/esp/esp-idf/components/bootloader/subproject/main /home/jan/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/jan/esp/esp-idf/components/newlib /home/jan/esp/esp-idf/components/partition_table /home/jan/esp/esp-idf/components/soc /home/jan/esp/esp-idf/components/spi_flash /home/jan/esp/esp-idf/components/xtensa -- Configuring done -- Generating done -- Build files have been written to: /home/jan/esp/esp-idf/examples/ESP32/build/bootloader [100/101] Generating binary image from built executableesptool.py v4.2.1 Creating esp32 image... Merged 1 ELF section Successfully created esp32 image. Generated /home/jan/esp/esp-idf/examples/ESP32/build/bootloader/bootloader.bin [101/101] cd /home/jan/esp/esp-idf/examples/ESP32/build/bootl...an/esp/esp-idf/examples/ESP32/build/bootloader/bootloader.binBootloader binary size 0x4500 bytes. 0x2b00 bytes (38%) free. [892/1177] Building C object esp-idf/bt/CMakeFiles/idf_bt.dir/host/bluedroid/hci/hci_layer.c.obj/home/jan/esp/esp-idf/components/bt/host/bluedroid/hci/hci_layer.c: In function 'command_timed_out': /home/jan/esp/esp-idf/components/bt/host/bluedroid/hci/hci_layer.c:406:29: warning: unused variable 'metadata' [-Wunused-variable] 406 | hci_cmd_metadata_t metadata = (hci_cmd_metadata_t )(wait_entry->data); | ^
~~~ [1137/1177] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/esp32-hal-uart.c.objFAILED: esp-idf/main/CMakeFiles/idf_main.dir/esp32-hal-uart.c.obj /home/jan/.espressif/tools/xtensa-esp32-elf/esp-2022r1-11.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DBOARD_BDRING_V4 -DGRBL_ESP32 -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DOVERRIDE_MY_MACHINE -DUNITY_INCLUDE_CONFIG_H -I/home/jan/esp/esp-idf/examples/ESP32/build/config -I/home/jan/esp/esp-idf/examples/ESP32/main -I/home/jan/esp/esp-idf/components/newlib/platform_include -I/home/jan/esp/esp-idf/components/freertos/FreeRTOS-Kernel/include -I/home/jan/esp/esp-idf/components/freertos/esp_additions/include/freertos -I/home/jan/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/home/jan/esp/esp-idf/components/freertos/esp_additions/include -I/home/jan/esp/esp-idf/components/esp_hw_support/include -I/home/jan/esp/esp-idf/components/esp_hw_support/include/soc -I/home/jan/esp/esp-idf/components/esp_hw_support/include/soc/esp32 -I/home/jan/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/home/jan/esp/esp-idf/components/esp_hw_support/port/esp32/private_include -I/home/jan/esp/esp-idf/components/heap/include -I/home/jan/esp/esp-idf/components/log/include -I/home/jan/esp/esp-idf/components/soc/include -I/home/jan/esp/esp-idf/components/soc/esp32/. -I/home/jan/esp/esp-idf/components/soc/esp32/include -I/home/jan/esp/esp-idf/components/hal/esp32/include -I/home/jan/esp/esp-idf/components/hal/include -I/home/jan/esp/esp-idf/components/hal/platform_port/include -I/home/jan/esp/esp-idf/components/esp_rom/include -I/home/jan/esp/esp-idf/components/esp_rom/include/esp32 -I/home/jan/esp/esp-idf/components/esp_rom/esp32 -I/home/jan/esp/esp-idf/components/esp_common/include -I/home/jan/esp/esp-idf/components/esp_system/include -I/home/jan/esp/esp-idf/components/esp_system/port/soc -I/home/jan/esp/esp-idf/components/esp_system/port/include/private -I/home/jan/esp/esp-idf/components/xtensa/include -I/home/jan/esp/esp-idf/components/xtensa/esp32/include -I/home/jan/esp/esp-idf/components/lwip/include -I/home/jan/esp/esp-idf/components/lwip/include/apps -I/home/jan/esp/esp-idf/components/lwip/include/apps/sntp -I/home/jan/esp/esp-idf/components/lwip/lwip/src/include -I/home/jan/esp/esp-idf/components/lwip/port/esp32/include -I/home/jan/esp/esp-idf/components/lwip/port/esp32/include/arch -I/home/jan/esp/esp-idf/components/esp_ringbuf/include -I/home/jan/esp/esp-idf/components/efuse/include -I/home/jan/esp/esp-idf/components/efuse/esp32/include -I/home/jan/esp/esp-idf/components/driver/include -I/home/jan/esp/esp-idf/components/driver/deprecated -I/home/jan/esp/esp-idf/components/driver/esp32/include -I/home/jan/esp/esp-idf/components/esp_pm/include -I/home/jan/esp/esp-idf/components/mbedtls/port/include -I/home/jan/esp/esp-idf/components/mbedtls/mbedtls/include -I/home/jan/esp/esp-idf/components/mbedtls/mbedtls/library -I/home/jan/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -I/home/jan/esp/esp-idf/components/esp_app_format/include -I/home/jan/esp/esp-idf/components/bootloader_support/include -I/home/jan/esp/esp-idf/components/bootloader_support/bootloader_flash/include -I/home/jan/esp/esp-idf/components/app_update/include -I/home/jan/esp/esp-idf/components/spi_flash/include -I/home/jan/esp/esp-idf/components/pthread/include -I/home/jan/esp/esp-idf/components/esp_timer/include -I/home/jan/esp/esp-idf/components/app_trace/include -I/home/jan/esp/esp-idf/components/esp_event/include -I/home/jan/esp/esp-idf/components/nvs_flash/include -I/home/jan/esp/esp-idf/components/esp_phy/include -I/home/jan/esp/esp-idf/components/esp_phy/esp32/include -I/home/jan/esp/esp-idf/components/vfs/include -I/home/jan/esp/esp-idf/components/esp_netif/include -I/home/jan/esp/esp-idf/components/wpa_supplicant/include -I/home/jan/esp/esp-idf/components/wpa_supplicant/port/include -I/home/jan/esp/esp-idf/components/wpa_supplicant/esp_supplicant/include -I/home/jan/esp/esp-idf/components/esp_wifi/include -I/home/jan/esp/esp-idf/components/bt/include/esp32/include -I/home/jan/esp/esp-idf/components/bt/common/osi/include -I/home/jan/esp/esp-idf/components/bt/common/api/include/api -I/home/jan/esp/esp-idf/components/bt/common/btc/profile/esp/blufi/include -I/home/jan/esp/esp-idf/components/bt/common/btc/profile/esp/include -I/home/jan/esp/esp-idf/components/bt/host/bluedroid/api/include/api -I/home/jan/esp/esp-idf/components/bt/porting/ext/tinycrypt/include -I/home/jan/esp/esp-idf/components/unity/include -I/home/jan/esp/esp-idf/components/unity/unity/src -I/home/jan/esp/esp-idf/components/cmock/CMock/src -I/home/jan/esp/esp-idf/components/console -I/home/jan/esp/esp-idf/components/http_parser -I/home/jan/esp/esp-idf/components/esp-tls -I/home/jan/esp/esp-idf/components/esp-tls/esp-tls-crypto -I/home/jan/esp/esp-idf/components/esp_adc/include -I/home/jan/esp/esp-idf/components/esp_adc/interface -I/home/jan/esp/esp-idf/components/esp_adc/esp32/include -I/home/jan/esp/esp-idf/components/esp_adc/deprecated/include -I/home/jan/esp/esp-idf/components/esp_eth/include -I/home/jan/esp/esp-idf/components/esp_gdbstub/include -I/home/jan/esp/esp-idf/components/esp_gdbstub/xtensa -I/home/jan/esp/esp-idf/components/esp_gdbstub/esp32 -I/home/jan/esp/esp-idf/components/esp_hid/include -I/home/jan/esp/esp-idf/components/tcp_transport/include -I/home/jan/esp/esp-idf/components/esp_http_client/include -I/home/jan/esp/esp-idf/components/esp_http_server/include -I/home/jan/esp/esp-idf/components/esp_https_ota/include -I/home/jan/esp/esp-idf/components/esp_lcd/include -I/home/jan/esp/esp-idf/components/esp_lcd/interface -I/home/jan/esp/esp-idf/components/protobuf-c/protobuf-c -I/home/jan/esp/esp-idf/components/protocomm/include/common -I/home/jan/esp/esp-idf/components/protocomm/include/security -I/home/jan/esp/esp-idf/components/protocomm/include/transports -I/home/jan/esp/esp-idf/components/esp_local_ctrl/include -I/home/jan/esp/esp-idf/components/esp_psram/include -I/home/jan/esp/esp-idf/components/sdmmc/include -I/home/jan/esp/esp-idf/components/esp_serial_slave_link/include -I/home/jan/esp/esp-idf/components/espcoredump/include -I/home/jan/esp/esp-idf/components/espcoredump/include/port/xtensa -I/home/jan/esp/esp-idf/components/wear_levelling/include -I/home/jan/esp/esp-idf/components/fatfs/diskio -I/home/jan/esp/esp-idf/components/fatfs/vfs -I/home/jan/esp/esp-idf/components/fatfs/src -I/home/jan/esp/esp-idf/components/idf_test/include -I/home/jan/esp/esp-idf/components/idf_test/include/esp32 -I/home/jan/esp/esp-idf/components/ieee802154/include -I/home/jan/esp/esp-idf/components/json/cJSON -I/home/jan/esp/esp-idf/components/mqtt/esp-mqtt/include -I/home/jan/esp/esp-idf/components/perfmon/include -I/home/jan/esp/esp-idf/components/spiffs/include -I/home/jan/esp/esp-idf/components/ulp/ulp_common/include -I/home/jan/esp/esp-idf/components/ulp/ulp_common/include/esp32 -I/home/jan/esp/esp-idf/components/wifi_provisioning/include -mlongcalls -Wno-frame-address -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 -Wno-enum-conversion -gdwarf-4 -ggdb -Os -freorder-blocks -fmacro-prefix-map=/home/jan/esp/esp-idf/examples/ESP32=. -fmacro-prefix-map=/home/jan/esp/esp-idf=/IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -DconfigENABLE_FREERTOS_DEBUG_OCDAWARE=1 -std=gnu17 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v5.1-dev-437-g5c1044d84d\" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -Wimplicit-fallthrough=1 -Wno-missing-field-initializers -Wno-maybe-uninitialized -Wno-stringop-truncation -MD -MT esp-idf/main/CMakeFiles/idf_main.dir/esp32-hal-uart.c.obj -MF esp-idf/main/CMakeFiles/__idf_main.dir/esp32-hal-uart.c.obj.d -o esp-idf/main/CMakeFiles/idf_main.dir/esp32-hal-uart.c.obj -c /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.c In file included from /home/jan/esp/esp-idf/examples/ESP32/main/driver.h:108, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.h:27, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.c:35: /home/jan/esp/esp-idf/components/driver/deprecated/driver/timer.h:16:2: warning: #warning "legacy timer group driver is deprecated, please migrate to driver/gptimer.h" [-Wcpp] 16 | #warning "legacy timer group driver is deprecated, please migrate to driver/gptimer.h" | ^~~ In file included from /home/jan/esp/esp-idf/examples/ESP32/main/driver.h:110, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.h:27, from /home/jan/esp/esp-idf/examples/ESP32/main/esp32-hal-uart.c:35: /home/jan/esp/esp-idf/components/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" [-Wcpp]