arduino / arduino-cli

Arduino command line tool
https://arduino.github.io/arduino-cli/latest/
GNU General Public License v3.0
4.4k stars 384 forks source link

ESP32 Nano core 2.0.18 does not compile due to long core folder name 2.0.18-20240930.arduino3 #2716

Closed ednieuw closed 4 days ago

ednieuw commented 1 month ago

Describe the problem

If core 2.0.18 in installed sketches fail to compile in IDE2 but will compile in IDE1

IDE2 can not cope with the too long folder name of 2.0.18

To reproduce

Just compile a sketch --> gives errors

In this folder c:\Users\abcde\AppData\Local\Arduino15\packages\arduino\hardware\esp32\

rename the folder 2.0.18-20240930.arduino3

to 2.0.18

Expected behavior

No errors

Arduino IDE version

2.3.3

Operating system

Windows

Operating system version

W11

Additional context

Additional reports

Issue checklist

per1234 commented 1 month ago

Hi @ednieuw.

Just compile a sketch --> gives errors

It doesn't give errors for me, so we're going to need you to provide more information. Please do this:

  1. Change the folder name back to the original 2.0.18-20240930.arduino3
  2. Select File > Preferences... from the Arduino IDE menus. The "Preferences" dialog will open.
  3. Check the box next to "Show verbose output during: > ☐ compile" in the "Preferences" dialog.
  4. Click the "OK" button. The "Preferences" dialog will close.
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.
  6. Wait for the compilation to fail.
  7. You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
  8. Paste the error messages in a reply here. In order to ensure the text is not corrupted, please use code fencing.
sterretjeToo commented 1 month ago

Just adding to @per1234's reply

If you want to keep your user name anonymous, please replace it by something with the same length and the same number of spaces, same odd characters (if any) and so on. As mentioned on the forum, I compiled your sketch without issues and by coincedence my user name is 5 characters (just like your abcde).

ednieuw commented 1 month ago

I removed the library and installed again the latest Arduino Nano ESP32 library. The listing was too long so it is attached as a ZIP-file. esp322018.zip

The error lines:

Generating function prototypes...
C:\Users\ednie\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0/bin/xtensa-esp32s3-elf-g++ -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -DUNITY_INCLUDE_CONFIG_H -DWITH_POSIX -D_GNU_SOURCE -DIDF_VER="v4.4.7-dirty" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/newlib/platform_include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/freertos/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/freertos/include/esp_additions/freertos -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/freertos/port/xtensa/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/freertos/include/esp_additions -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_hw_support/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_hw_support/include/soc -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_hw_support/include/soc/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_hw_support/port/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_hw_support/port/esp32s3/private_include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/heap/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/log/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/lwip/include/apps -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/lwip/include/apps/sntp -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/lwip/lwip/src/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/lwip/port/esp32/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/lwip/port/esp32/include/arch -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/soc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/soc/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/soc/esp32s3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/hal/esp32s3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/hal/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/hal/platform_port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_rom/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_rom/include/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_rom/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_common/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_system/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_system/port/soc -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_system/port/public_compat -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/xtensa/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/xtensa/esp32s3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/driver/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/driver/esp32s3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_pm/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_ringbuf/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/efuse/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/efuse/esp32s3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/vfs/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_wifi/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_event/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_netif/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_eth/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/tcpip_adapter/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_phy/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_phy/esp32s3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_ipc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/app_trace/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_timer/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/mbedtls/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/mbedtls/mbedtls/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/mbedtls/esp_crt_bundle/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/app_update/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/spi_flash/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bootloader_support/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/nvs_flash/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/pthread/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_gdbstub/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_gdbstub/xtensa -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_gdbstub/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espcoredump/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espcoredump/include/port/xtensa -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/wpa_supplicant/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/wpa_supplicant/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/wpa_supplicant/esp_supplicant/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/ieee802154/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/console -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/asio/asio/asio/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/asio/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/common/osi/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/include/esp32c3/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/common/api/include/api -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/common/btc/profile/esp/blufi/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/common/btc/profile/esp/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/host/bluedroid/api/include/api -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_common/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_common/tinycrypt/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_core -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_core/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_core/storage -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/btc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_models/common/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_models/client/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/mesh_models/server/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/api/core/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/api/models/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/bt/esp_ble_mesh/api -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/cbor/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/unity/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/unity/unity/src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/cmock/CMock/src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/coap/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/coap/libcoap/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/nghttp/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/nghttp/nghttp2/lib/includes -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-tls -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-tls/esp-tls-crypto -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_adc_cal/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_hid/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/tcp_transport/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_http_client/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_http_server/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_https_ota/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_https_server/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_lcd/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_lcd/interface -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/protobuf-c/protobuf-c -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/protocomm/include/common -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/protocomm/include/security -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/protocomm/include/transports -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/mdns/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_local_ctrl/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/sdmmc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_serial_slave_link/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_websocket_client/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/expat/expat/expat/lib -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/expat/port/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/wear_levelling/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/fatfs/diskio -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/fatfs/vfs -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/fatfs/src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/freemodbus/freemodbus/common/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/idf_test/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/idf_test/include/esp32s3 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/jsmn/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/json/cJSON -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/libsodium/libsodium/src/libsodium/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/libsodium/port_include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/mqtt/esp-mqtt/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/openssl/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/perfmon/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/spiffs/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/usb/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/ulp/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/wifi_provisioning/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/rmaker_common/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_diagnostics/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/rtc_store/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_insights/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/json_parser/upstream/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/json_parser/upstream -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/json_generator/upstream -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_schedule/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp_secure_cert_mgr/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_rainmaker/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/gpio_button/button/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/qrcode/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/ws2812_led -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/freertos/include/freertos -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/arduino_tinyusb/tinyusb/src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/arduino_tinyusb/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp_littlefs/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/tool -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/typedef -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/image -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/math -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/nn -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/layer -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/detect -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp-dl/include/model_zoo -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp32-camera/driver/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/esp32-camera/conversions/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/dotprod/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/support/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/support/mem/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/hann/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/blackman/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/blackman_harris/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/blackman_nuttall/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/nuttall/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/windows/flat_top/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/iir/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/fir/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/add/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/sub/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/mul/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/addc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/mulc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/math/sqrt/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/mul/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/add/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/addc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/mulc/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/sub/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/fft/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/dct/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/conv/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/common/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/matrix/mul/test/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/kalman/ekf/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/espressif__esp-dsp/modules/kalman/ekf_imu13states/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/include/fb_gfx/include -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3/tools/sdk/esp32s3/qio_opi/include -mlongcalls -ffunction-sections -fdata-sections -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -ggdb -freorder-blocks -Wwrite-strings -fstack-protector -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu++11 -fexceptions -fno-rtti -c -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_NANO_ESP32 -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="NANO_ESP32" -DARDUINO_VARIANT="arduino_nano_nora" -DARDUINO_PARTITION_app3M_fat9M_fact512k_16MB -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PIN_REMAP -DBOARD_HAS_PSRAM -DUSB_MANUFACTURER="Arduino" -DUSB_PRODUCT="Nano ESP32" -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 @C:\Users\ednie\AppData\Local\Temp\arduino\sketches\4377DB218F2696AA45CED5D24E2DBC91/build_opt.h @C:\Users\ednie\AppData\Local\Temp\arduino\sketches\4377DB218F2696AA45CED5D24E2DBC91/file_opts -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\cores\esp32 -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\variants\arduino_nano_nora -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\libraries\Preferences\src -Ic:\Users\ednie\Documents\Files\Arduino\libraries\Adafruit_NeoPixel -Ic:\Users\ednie\Documents\Files\Arduino\libraries\NimBLE-Arduino\src -Ic:\Users\ednie\Documents\Files\Arduino\libraries\ESPNTP -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\libraries\WiFi\src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\libraries\Ticker\src -Ic:\Users\ednie\Documents\Files\Arduino\libraries\AsyncTCP\src -Ic:\Users\ednie\Documents\Files\Arduino\libraries\ESP_Async_WebServer\src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\libraries\FS\src -Ic:\Users\ednie\Documents\Files\Arduino\libraries\ElegantOTA\src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\libraries\Update\src -IC:\Users\ednie\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3\libraries\Wire\src -Ic:\Users\ednie\Documents\Files\Arduino\libraries\RTClib\src C:\Users\ednie\AppData\Local\Temp\arduino\sketches\4377DB218F2696AA45CED5D24E2DBC91\sketch\ESP32Arduino_WordClockV044.ino.cpp -o C:\Users\ednie\AppData\Local\Temp\52000059\sketch_merged.cpp
xtensa-esp32s3-elf-g++: error: CreateProcess: No such file or directory

Restarting the IDE to avoid caching problem gave the same errors. FYI: my Arduino folder with the libraries is located here: c:\Users\ednie\Documents\Files\Arduino

sterretjeToo commented 1 month ago

I did look at your zip.

It goes wrong at line 71 which has a length of 32531 characters; this is very close to 32k which might (or might not) be a coincidence. All other lines up to that point for "Resolve library" are shorter.

Even if you rename the package directory to a shorter name as you did, I'm reasonably sure that you will run into the same problem if your code requires more libraries.

ednieuw commented 1 month ago

I changed the folder name to 2.0.18-rc3 as suggested by the Arduino team. This resolved the issue for me for now.

martin-eden commented 1 month ago

Joys of Windows (tm) development.

Problem is that command line length for cmd.exe is limited to 32KiB. I believe it's from 80386 times and command.com.

Moving directories to root level and renaming them to one-character names would help. But the main problem is hardcoded 32KiB limit on your operation system.

Under GNU/Linux systems command line length is configurable parameter. For my case it is 2MiB.

$ getconf ARG_MAX
2097152
sterretjeToo commented 3 weeks ago

Based on the error log in https://github.com/arduino/arduino-cli/issues/2716#issuecomment-2391752801 I've tried to recreate the errors. One can make the compile process fail based on below description.

OS: Win11 IDE 2.3.3 Board package FQBN: arduino:esp32:nano_nora Using board 'nano_nora' from platform in folder: C:\Users\bugge\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3 Using core 'esp32' from platform in folder: C:\Users\bugge\AppData\Local\Arduino15\packages\arduino\hardware\esp32\2.0.18-20240930.arduino3

//#include <Preferences.h>
//#include <Adafruit_NeoPixel.h>
#include <NimBLEDevice.h>  // library
//#include <Ticker.h>
#include <ESPAsyncWebServer.h> // library
//#include <AsyncTCP.h>  // library
//#include <FS.h>
//#include <WiFi.h>

void setup()
{
  // put your setup code here, to run once:
}

void loop()
{
  // put your main code here, to run repeatedly:
}

This sketch does compile.

Next I went in steps to enabling some more libraries.

//#include <Preferences.h>
#include <Adafruit_NeoPixel.h>
#include <NimBLEDevice.h>  // library
#include <Ticker.h>
#include <ESPAsyncWebServer.h> // library
//#include <AsyncTCP.h>  // library
//#include <FS.h>
//#include <WiFi.h>

It still compiled.

In the last step, enabling Preferences.h, it failed.

#include <Preferences.h>
#include <Adafruit_NeoPixel.h>
#include <NimBLEDevice.h>  // library
#include <Ticker.h>
#include <ESPAsyncWebServer.h> // library
//#include <AsyncTCP.h>  // library
//#include <FS.h>
//#include <WiFi.h>

Full output attached (err01.txt); check the output for CreateProcess error. Note that something like below is missing in favour ( 🙂 ) of a ping timeout error popup

exit status 1

Compilation error: exit status 1

err01.txt


There are a few variations possible that all result in errors. After above I disabled the NimBLEDevice library and the compile still fails on the Preferences library

#include <Preferences.h>
#include <Adafruit_NeoPixel.h>
//#include <NimBLEDevice.h>  // library
#include <Ticker.h>
#include <ESPAsyncWebServer.h> // library
//#include <AsyncTCP.h>  // library
//#include <FS.h>
//#include <WiFi.h>

Full output attached (err02.txt)

err02.txt

Note that we now get the Compilation error: exit status 1 at the end and I did not get a ping timeout error.


A number of variations are possible with the includes. The number of CreateProcess errors seems to have a relation with the number of source files in the affected library after clearing the cache (both cores and sketches).

sterretjeToo commented 2 weeks ago

Another one to add to the list: https://forum.arduino.cc/t/createprocess-error-when-uploading-esp32-iot-cloud-code-from-arduino-ide/1322028/

Issue confirmed with the code presented in the topic; log attached.

error.txt

Just an observation: After changing the package name it compiles. After changing it back it still compiles (till such time that the cache is cleared).

pillo79 commented 1 week ago

Core 2.0.18-arduino.5 has just been published and should practically solve this issue.


There are 2 fundamental Windows limitations derived from decades of legacy:

  1. any command lines passed to CreateProcess must be smaller than ~32kB;
  2. each file path given to most I/O APIs must be less than MAX_PATH: 260 chars unless the requesting app is specially crafted.

Point 1 is solved by converting, in each compiler call, ~200 instances of the core install path to a single one which is referenced multiple times. This reduced in my case a ~28kB command line into a ~10k one - way below the limit, and the multiplier for extra chars in the user name is now 3 and not 200! 🎉

Point 2 is only mitigated, since most of the install path is not directly under control. However, the longest path used by include files has been shortened by 30 chars by renaming the accessible "tool name" and "tool version" components (other paths were already below this limit). In addition to the much smaller core version name, this should solve the issue for anybody with a user name shorter than ~50 chars, if my maths is correct.

pillo79 commented 4 days ago

Closing as confirmed by OP here: https://forum.arduino.cc/t/core-2-0-18-gives-compile-errors-in-ide2-and-how-to-solve/1307544