pioarduino/platform-espressif32

Build error on 53.03.10-rc2 for C3 and C6

Closed this issue · 2 comments

Hi,

VSCode:

Ver: 1.94.2 (user setup) 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
ОС: Windows_NT x64 10.0.22631

Platformio: Core 6.1.16·Home 3.4.4

C3:

...
Compiling .pio\build\c3_mini\libd08\NimBLE-Arduino\nimble\nimble\host\src\ble_hs_id.c.o
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/Yurii/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory     
compilation terminated.
Compiling .pio\build\c3_mini\libd08\NimBLE-Arduino\nimble\nimble\host\src\ble_hs_log.c.o

C6:

...
Compiling .pio\build\esp32_c6\lib184\WiFi\WiFiSTA.cpp.o
riscv32-esp-elf-g++: fatal error: cannot execute 'C:/Users/Yurii/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/13.2.0/../../../../riscv32-esp-elf/bin/as.exe': CreateProcess: No such file or directory     
compilation terminated.

Perhaps builder cannot find this file: C:\Users\Yurii\.platformio\packages\toolchain-riscv32-esp\bin\riscv32-esp-elf-as.exe

TD-er commented

These are Windows issues, where the path length is too long.

By far the simplest way is to move the .platformio folder into your project dir.

[platformio]
core_dir = .platformio

Or maybe even a shorter version (.pio)

Make sure to add this folder also to your .gitignore or else you will be seeing a lot of files which should not be tracked.

Strange, it compiled fine on RC1.
But your advice worked, thanks!