PlatformIO Community

Impossible to build arduino.h missing

Hello everyone, I’ve a new format and fresh installation of windows, vs and platformio.

Now I can’t build my project

In file included from .pio/libdeps/esp32doit-devkit-v1/ArduinoJson/src/ArduinoJson/Configuration.hpp:156:0,
                 from .pio/libdeps/esp32doit-devkit-v1/ArduinoJson/src/ArduinoJson.hpp:7,
                 from .pio/libdeps/esp32doit-devkit-v1/ArduinoJson/src/ArduinoJson.h:9,
                 from src/dome.cpp:1:
C:/Users/Tesla/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:142:21: fatal error: algorithm: No such file or directory
compilation terminated.
Compiling .pio\build\esp32doit-devkit-v1\lib632\AsyncTCP\AsyncTCP.cpp.o
In file included from .pio\libdeps\esp32doit-devkit-v1\AsyncTCP-esphome\src\AsyncTCP.cpp:22:0:
C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:142:21: fatal error: algorithm: No such file or directory
compilation terminated.
Compiling .pio\build\esp32doit-devkit-v1\libaea\FS\FS.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libaea\FS\vfs_api.cpp.o
In file included from .pio\libdeps\esp32doit-devkit-v1\AsyncTCP\src\AsyncTCP.cpp:22:0:
C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:142:21: fatal error: algorithm: No such file or directory
compilation terminated.
In file included from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\FS\src\FS.cpp:21:0:
C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\FS\src\FS.h:24:18: fatal error: memory: No such file or directory
compilation terminated.
In file included from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\FS\src\vfs_api.h:18:0,
                 from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\FS\src\vfs_api.cpp:15:
C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\FS\src\FS.h:24:18: fatal error: memory: No such file or directory
compilation terminated.
Compiling .pio\build\esp32doit-devkit-v1\lib8a7\WiFi\ETH.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib8a7\WiFi\WiFi.cpp.o
*** [.pio\build\esp32doit-devkit-v1\src\dome.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib5ad\AsyncTCP-esphome\AsyncTCP.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\libaea\FS\FS.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\libaea\FS\vfs_api.cpp.o] Error 1
*** [.pio\build\esp32doit-devkit-v1\lib632\AsyncTCP\AsyncTCP.cpp.o] Error 1
In file included from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFiSTA.h:28:0,
                 from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFi.h:32,
                 from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\ETH.h:24,
                 from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\ETH.cpp:21:
C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFiGeneric.h:28:22: fatal error: functional: No such file or directory
compilation terminated.
*** [.pio\build\esp32doit-devkit-v1\lib8a7\WiFi\ETH.cpp.o] Error 1
In file included from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFiSTA.h:28:0,
                 from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFi.h:32,
                 from C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFi.cpp:24:
C:\Users\Tesla\.platformio\packages\framework-arduinoespressif32\libraries\WiFi\src\WiFiGeneric.h:28:22: fatal error: functional: No such file or directory
compilation terminated.
*** [.pio\build\esp32doit-devkit-v1\lib8a7\WiFi\WiFi.cpp.o] Error 1

My .platformio.ini

[env:esp32doit-devkit-v1]

platform = espressif32

board = esp32doit-devkit-v1

framework = arduino

monitor_speed = 115200

lib_deps =

    ottowinter/ESPAsyncWebServer-esphome@~1.2.7

    me-no-dev/ESP Async WebServer@~1.2.3

    alanswx/ESPAsyncWiFiManager@~0.24

    bblanchon/ArduinoJson@^6.18.5

    lorol/LittleFS_esp32@^1.0.6

It seems like he don’t find arduino.h how can I install it??

Why both these libraries?

I can’t reproduce your issue with a clean

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
lib_deps =
   bblanchon/ArduinoJson@^6.18.5
#include <Arduino.h>
#include <ArduinoJson.h>


void setup() {
  DynamicJsonDocument doc(1024);
  String input =
      "{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}";
  deserializeJson(doc, input);
  JsonObject obj = doc.as<JsonObject>();

  Serial.println(input);
}

void loop() {}
Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.4.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 6.18.5
Building in release mode
Compiling .pio\build\esp32doit-devkit-v1\src\main.cpp.o
Generating partitions .pio\build\esp32doit-devkit-v1\partitions.bin
Archiving .pio\build\esp32doit-devkit-v1\libFrameworkArduinoVariant.a
Indexing .pio\build\esp32doit-devkit-v1\libFrameworkArduinoVariant.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Esp.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPv6Address.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Print.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\StreamString.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\WString.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\base64.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\cbuf.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-adc.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-bt.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-cpu.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-dac.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-gpio.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-i2c.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-ledc.c.o
src\main.cpp: In function 'void setup()':
src\main.cpp:10:14: warning: variable 'obj' set but not used [-Wunused-but-set-variable]
   JsonObject obj = doc.as<JsonObject>();
              ^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-log.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-matrix.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-misc.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-psram.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-rmt.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-sigmadelta.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-spi.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-time.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-timer.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-touch.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-uart.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\libb64\cdecode.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\libb64\cencode.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\main.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\stdlib_noniso.c.o
C:\Users\Max\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c: In function 'spiTransferBytesNL':
C:\Users\Max\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_out8 = &result[c_longs-1];
                                       ^
C:\Users\Max\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_data8 = &last_data;
                                        ^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\esp32doit-devkit-v1\libFrameworkArduino.a
Indexing .pio\build\esp32doit-devkit-v1\libFrameworkArduino.a
Linking .pio\build\esp32doit-devkit-v1\firmware.elf
Retrieving maximum program size .pio\build\esp32doit-devkit-v1\firmware.elf
Checking size .pio\build\esp32doit-devkit-v1\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   4.1% (used 13312 bytes from 327680 bytes)
Flash: [==        ]  15.7% (used 206366 bytes from 1310720 bytes)
Building .pio\build\esp32doit-devkit-v1\firmware.bin
esptool.py v3.1
Merged 1 ELF section
=============== [SUCCESS] Took 9.14 seconds ===============

As far as I can see, the Arduino.h file is being found and included. The error messages are coming from an inability to find other files that are #included by Arduino.h. I suspect the “missing” files are specifically for C++ I suspect, given the names – algorithm etc.

Algorithm, memory etc are, as far as I recall, part of the C++ Standard Library. Is your toolchain correctly installed? I know it should be downloaded and installed automatically when you compile the first project using that toolchain, but you never know!

Cheers,
Norm.

Sincerly i don’t know, I format the pc, installed python, Vs code and platformio.

Only Microsoft c++ plugins are working, have you any idea what/where i can check?

In the last instance where we discussed this issue (https://github.com/platformio/platformio-core/issues/4149) I suspected that you had an antivirus active which corrupted the toolchain download.

Can you disable all active antivirus software, remove the folder C:\Users\Tesla\.platformio\packages\toolchain-xtensa32 and C:\Users\Tesla\.platformio\.cache and rebuild the project?

Someone saw me this test but If i remove the folder it told me una le tu run toolchain-xtensa32 command, but I didn’t remove the cache folder, in 10minutes I’ll try

I have no antivirus, maybe Windows defender

If you want this is the repo:

The platformio.ini references a local folder of yours, which is not good for reproducability.

If I also remove the double ESP Async Webserver dependency and add in the ArduinoJSON dependency with

[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
lib_deps =
        me-no-dev/ESP Async WebServer@^1.2.3
        alanswx/ESPAsyncWiFiManager@^0.24
        bblanchon/ArduinoJson@^6.18.5

The project compiles perfectly.

Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.4.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 3.10006.210326 (1.0.6)
 - tool-esptoolpy 1.30100.210531 (3.1.0)
 - toolchain-xtensa32 2.50200.97 (5.2.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ESP Async WebServer> 1.2.3
|   |-- <AsyncTCP> 1.1.1
|   |-- <ArduinoJson> 6.18.5
|   |-- <FS> 1.0
|   |-- <WiFi> 1.0
|-- <ESPAsyncWiFiManager> 0.24.0
|   |-- <DNSServer> 1.1.0
|   |   |-- <WiFi> 1.0
|   |-- <ESP Async WebServer> 1.2.3
|   |   |-- <AsyncTCP> 1.1.1
|   |   |-- <ArduinoJson> 6.18.5
|   |   |-- <FS> 1.0
|   |   |-- <WiFi> 1.0
|   |-- <WiFi> 1.0
|-- <ArduinoJson> 6.18.5
|-- <ESP32 Async UDP> 1.0.0
|-- <HTTPClient> 1.2
|   |-- <WiFi> 1.0
|   |-- <WiFiClientSecure> 1.0
|   |   |-- <WiFi> 1.0
|-- <SPIFFS> 1.0
|   |-- <FS> 1.0
|-- <WiFi> 1.0
Building in release mode
Compiling .pio\build\esp32doit-devkit-v1\src\dome.cpp.o
Generating partitions .pio\build\esp32doit-devkit-v1\partitions.bin
Compiling .pio\build\esp32doit-devkit-v1\lib31e\AsyncTCP\AsyncTCP.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib4ed\FS\FS.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib4ed\FS\vfs_api.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\ETH.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFi.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiAP.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiClient.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiSTA.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiScan.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiServer.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib586\WiFi\WiFiUdp.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\AsyncEventSource.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\AsyncWebSocket.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\SPIFFSEditor.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib4ed\libFS.a
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\WebAuthentication.cpp.o
Indexing .pio\build\esp32doit-devkit-v1\lib4ed\libFS.a
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\WebHandlers.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\WebRequest.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\WebResponses.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib31e\libAsyncTCP.a
Compiling .pio\build\esp32doit-devkit-v1\libb99\ESP Async WebServer\WebServer.cpp.o
Indexing .pio\build\esp32doit-devkit-v1\lib31e\libAsyncTCP.a
Compiling .pio\build\esp32doit-devkit-v1\lib8df\DNSServer\DNSServer.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib703\ESPAsyncWiFiManager\ESPAsyncWiFiManager.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\libdb9\AsyncUDP\AsyncUDP.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib17a\WiFiClientSecure\WiFiClientSecure.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib17a\WiFiClientSecure\ssl_client.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\lib529\HTTPClient\HTTPClient.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib586\libWiFi.a
Indexing .pio\build\esp32doit-devkit-v1\lib586\libWiFi.a
Compiling .pio\build\esp32doit-devkit-v1\lib1d5\SPIFFS\SPIFFS.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\libFrameworkArduinoVariant.a
Indexing .pio\build\esp32doit-devkit-v1\libFrameworkArduinoVariant.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Esp.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib8df\libDNSServer.a
Indexing .pio\build\esp32doit-devkit-v1\lib8df\libDNSServer.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\HardwareSerial.cpp.o
.pio\libdeps\esp32doit-devkit-v1\ESPAsyncWiFiManager\ESPAsyncWiFiManager.cpp: In member function 'void AsyncWiFiManager::copySSIDInfo(wifi_ssid_count_t)':
.pio\libdeps\esp32doit-devkit-v1\ESPAsyncWiFiManager\ESPAsyncWiFiManager.cpp:316:12: warning: unused variable 'res' [-Wunused-variable]
       bool res=WiFi.getNetworkInfo(i, wifiSSIDs[i].SSID, wifiSSIDs[i].encryptionType, wifiSSIDs[i].RSSI, wifiSSIDs[i].BSSID, wifiSSIDs[i].channel);
            ^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPAddress.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\libdb9\libAsyncUDP.a
Indexing .pio\build\esp32doit-devkit-v1\libdb9\libAsyncUDP.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\IPv6Address.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib17a\libWiFiClientSecure.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Print.cpp.o
Indexing .pio\build\esp32doit-devkit-v1\lib17a\libWiFiClientSecure.a
Archiving .pio\build\esp32doit-devkit-v1\lib1d5\libSPIFFS.a
Indexing .pio\build\esp32doit-devkit-v1\lib1d5\libSPIFFS.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\StreamString.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\WString.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\base64.cpp.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\cbuf.cpp.o
Archiving .pio\build\esp32doit-devkit-v1\lib529\libHTTPClient.a
Indexing .pio\build\esp32doit-devkit-v1\lib529\libHTTPClient.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-adc.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-bt.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-cpu.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-dac.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-gpio.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-i2c.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-ledc.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-log.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-matrix.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-misc.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-psram.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-rmt.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-sigmadelta.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-spi.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-time.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-timer.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-touch.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\esp32-hal-uart.c.o
Archiving .pio\build\esp32doit-devkit-v1\lib703\libESPAsyncWiFiManager.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\libb64\cdecode.c.o
Indexing .pio\build\esp32doit-devkit-v1\lib703\libESPAsyncWiFiManager.a
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\libb64\cencode.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\main.cpp.o
C:\Users\Max\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c: In function 'spiTransferBytesNL':
C:\Users\Max\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c:922:39: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_out8 = &result[c_longs-1];
                                       ^
C:\Users\Max\.platformio\packages\framework-arduinoespressif32\cores\esp32\esp32-hal-spi.c:923:40: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
                 uint8_t * last_data8 = &last_data;
                                        ^
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\stdlib_noniso.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\esp32doit-devkit-v1\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\esp32doit-devkit-v1\libFrameworkArduino.a
Indexing .pio\build\esp32doit-devkit-v1\libFrameworkArduino.a
Archiving .pio\build\esp32doit-devkit-v1\libb99\libESP Async WebServer.a
Indexing .pio\build\esp32doit-devkit-v1\libb99\libESP Async WebServer.a
Linking .pio\build\esp32doit-devkit-v1\firmware.elf
Retrieving maximum program size .pio\build\esp32doit-devkit-v1\firmware.elf
Checking size .pio\build\esp32doit-devkit-v1\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  13.6% (used 44468 bytes from 327680 bytes)
Flash: [========  ]  81.3% (used 1066258 bytes from 1310720 bytes)
Building .pio\build\esp32doit-devkit-v1\firmware.bin
esptool.py v3.1
Merged 1 ELF section
============== [SUCCESS] Took 20.84 seconds ==============

very strange, now i’ve deleted the toolchain folder and I didn’t get error and it don’t download it…

what version of python I need for platformio??

See docs. I’m peronstally running 3.8.6.

So it worked? PlatformIO automatically re-downloads the toolchain if it detects that it was deleted, that is normal…

No is ok, I delete all .cache folder and I delete all inside package, he download all the things and tadan, now is build succesfully!!

thank you so much!!