arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.26k stars 4.81k forks source link

Compile Error platformIO task tasmota32s2 since v12.2.0 #17735

Closed MarkKoshelev closed 1 year ago

MarkKoshelev commented 1 year ago

compile log v12,2,0: but the same v12.3.1

Processing tasmota32s2 (board: esp32s2; framework: arduino; platform: https://github.com/tasmota/platform-espressif32/releases/download/v2.0.5.1/platform-espressif32-2.0.5.1.zip)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32s2.html PLATFORM: Espressif 32 (2.0.5) > Espressif Generic ESP32-S2 4M Flash, Tasmota 2880k Code/OTA, 320k FS HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, 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:

.....skipped.....

Compiling .pio\build\tasmota32s2\src\tasmota.ino.cpp.o Compiling .pio\build\tasmota32s2\lib082\Wire\Wire.cpp.o Compiling .pio\build\tasmota32s2\lib6d8\Adafruit_CCS811-1.0.0.14\Adafruit_CCS811.cpp.o Compiling .pio\build\tasmota32s2\lib267\FS\FS.cpp.o In file included from c:\users\marc.platformio\packages\toolchain-xtensa-esp32s2@8.4.0+2021r2-patch5\xtensa-esp32s2-elf\include\c++\8.4.0\stdlib.h:36, from C:/Users/marc/.platformio/packages/framework-arduinoespressif32/libraries/Wire/src/Wire.cpp:27: c:\users\marc.platformio\packages\toolchain-xtensa-esp32s2@8.4.0+2021r2-patch5\xtensa-esp32s2-elf\include\c++\8.4.0\cstdlib:232:11: error: '::strtold' has not been declared using ::strtold; ^~~ c:\users\marc.platformio\packages\toolchain-xtensa-esp32s2@8.4.0+2021r2-patch5\xtensa-esp32s2-elf\include\c++\8.4.0\cstdlib:252:22: error: '__gnu_cxx::strtold' has not been declared using ::__gnu_cxx::strtold; ^~~ In file included from c:\users\marc.platformio\packages\toolchain-xtensa-esp32s2@8.4.0+2021r2-patch5\xtensa-esp32s2-elf\include\c++\8.4.0\math.h:36,

.....skipped.....

barbudor commented 1 year ago

You are apparently using an outdated environment Clear everything and try again

Processing tasmota32s2 (board: esp32s2; framework: arduino; platform: https://github.com/tasmota/platform-espressif32/releases/download/2022.12.2/platform-espressif32.zip)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32s2.html
PLATFORM: Espressif 32 (2022.12.2) > Espressif Generic ESP32-S2 >= 4M Flash PSRAM, Tasmota 2880k Code/OTA, 320k FS
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, 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 @ 2.0.6 
 - tool-esptoolpy @ 1.40401.0 (4.4.1) 
 - tool-mklittlefs @ 1.203.210628 (2.3) 
 - tool-mkspiffs @ 2.230.0 (2.30) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s2 @ 8.4.0+2021r2-patch5
Converting tasmota.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ strict
Found 123 compatible libraries
Scanning dependencies...

Linking .pio/build/tasmota32s2/firmware.elf
Retrieving maximum program size .pio/build/tasmota32s2/firmware.elf
Checking size .pio/build/tasmota32s2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  17.5% (used 57392 bytes from 327680 bytes)
Flash: [=====     ]  51.2% (used 1511362 bytes from 2949120 bytes)
Building .pio/build/tasmota32s2/firmware.bin
esptool.py v4.5-dev
Creating esp32s2 image...
Merged 2 ELF sections
Successfully created esp32s2 image.
esp32_create_combined_bin([".pio/build/tasmota32s2/firmware.bin"], [".pio/build/tasmota32s2/firmware.elf"])
Read partitions from  partitions/esp32_partition_app2880k_fs320k.csv
# Name,     Type,   SubType,   Offset,    Size,   Flags
nvs         data    nvs        0x9000     0x5000
otadata     data    ota        0xe000     0x2000
safeboot    app     factory    0x10000    0xD0000
app0        app     ota_0      0xE0000    0x2D0000
spiffs      data    spiffs     0x3B0000   0x50000
Creating filesystem with content:
No files added -> will NOT create littlefs.bin and NOT overwrite fs partition!
safeboot binary already in place.
    Offset | File
 -  0x1000 | /d/Projets/repos/Tasmota/.pio/build/tasmota32s2/bootloader.bin
 -  0x8000 | /d/Projets/repos/Tasmota/.pio/build/tasmota32s2/partitions.bin
 -  0xe000 | /home/jeanmichel/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin
 -  0x10000 | /home/jeanmichel/.platformio/packages/framework-arduinoespressif32/variants/tasmota/tasmota32s2-safeboot.bin
 - 0xe0000 | /d/Projets/repos/Tasmota/.pio/build/tasmota32s2/firmware.bin
esptool.py v4.5-dev
Wrote 0x251150 bytes to file /d/Projets/repos/Tasmota/.pio/build/tasmota32s2/firmware.factory.bin, ready to flash to offset 0x0
bin_map_copy([".pio/build/tasmota32s2/firmware.bin"], [".pio/build/tasmota32s2/firmware.elf"])
map_gzip([".pio/build/tasmota32s2/firmware.bin"], [".pio/build/tasmota32s2/firmware.elf"])
===================================================================================================================== [SUCCESS] Took 53.93 seconds =====================================================================================================================

Environment    Status    Duration
-------------  --------  ------------
tasmota32s2    SUCCESS   00:00:53.930
===================================================================================================================== 1 succeeded in 00:00:53.930 =====================================================================================================================
 *  Terminal will be reused by tasks, press any key to close it. 
MarkKoshelev commented 1 year ago

C:\Users\marc.platformio\penv\Scripts\platformio.exe run --target clean --environment tasmota32s2

After this the problem looks like differ:

Compiling .pio\build\tasmota32s2\lib6d8\Adafruit_CCS811-1.0.0.14\Adafruit_CCS811.cpp.o In file included from C:/Users/marc/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal.h:79, from C:/Users/marc/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:36, from C:\Users\marc\AppData\Local\Temp\tmp7yizxxk5:1: C:/Users/marc/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-gpio.h:29:10: fatal error: pins_arduino.h: No such file or directory

MarkKoshelev commented 1 year ago

Solved by deleting .platformio\packages\ folder and reinstall all packages