Platform
ESP32
IDE / Tooling
PlatformIO
What happened?
The lib is not compiling via PlatformIO.
platformio.ini:
[platformio]
default_envs = ttgo-tsim
[env]
platform = espressif32
framework = arduino, espidf
build_type = debug
board_build.filesystem = spiffs
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
;time
;log2file
build_flags = -D TINY_GSM_RX_BUFFER=1024
-D TINY_GSM_USE_GPRS=true
-D TINY_GSM_USE_WIFI=false
-D DEBUG_LOG_LEVEL=5
-I src/system
-I src/tools
-I src/services
-I src/drivers
-I src/devices
-I src/interfaces
-I src/apps
-I src/_services/DataFile
-I src/_services/Debug
-I src/_services/GlobalTime
lib_deps = https://github.com/ETLCPP/etl.git
ESP32Async/AsyncTCP
ESP32Async/ESPAsyncWebServer
https://github.com/JorgeHSantana/FreeRTOSpp.git
TinyGSM@0.11.7
ArduinoJson@6.21.5
[env:ttgo-tsim]
board = esp32dev
board_build.partitions = flash/16mb.csv
board_upload.flash_size = 16MB
build_flags = ${env.build_flags}
-D USING_TTGO_TSIM
-D TINY_GSM_MODEM_SIM7000
[env:ttgo-tbeam]
board = ttgo-t-beam
board_build.partitions = flash/4mb.csv
board_upload.flash_size = 4MB
build_flags = ${env.build_flags}
-D USING_TTGO_TBEAM
-D TINY_GSM_MODEM_BG96
Stack Trace
Compilation error:
In file included from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\esp32-psram\no-rtti\bits\c++allocator.h:33,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\allocator.h:46,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\string:41,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\stdexcept:39,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\array:39,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\tuple:39,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\functional:54,
from C:/Users/jorge/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.h:49,
from C:/Users/jorge/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:196,
from .pio/libdeps/ttgo-tsim/ESPAsyncWebServer/src/ESPAsyncWebServer.h:24,
from src/apps/web_server/app.h:3,
from src/apps/web_server/app.cpp:1:
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\ext\new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::unique_ptr; _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::_List_node<std::unique_ptr >]':
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_Tp> >::construct(std::allocator_traits<std::allocator<_Tp> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::unique_ptr; _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::_List_node<std::unique_ptr >; std::allocator_traits<std::allocator<_Tp> >::allocator_type = std::allocator<std::_List_node<std::unique_ptr > >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:645:33: required from 'std::__cxx11::list<_Tp, _Alloc>::_Node* std::__cxx11::list<_Tp, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >; std::__cxx11::list<_Tp, _Alloc>::_Node = std::_List_node<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:1903:10: required from 'void std::__cxx11::list<_Tp, _Alloc>::_M_insert(std::__cxx11::list<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:1235:4: required from 'void std::__cxx11::list<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:1832:6: required from 'void std::__cxx11::list<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _InputIterator, std::__false_type) [with _InputIterator = std::_List_const_iterator<std::unique_ptr >; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:746:9: required from 'std::__cxx11::list<_Tp, _Alloc>::list(const std::__cxx11::list<_Tp, _Alloc>&) [with _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >]'
.pio/libdeps/ttgo-tsim/ESPAsyncWebServer/src/ESPAsyncWebServer.h:824:7: required from here
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\ext\new_allocator.h:136:4: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = AsyncWebHandler; _Dp = std::default_delete]'
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\memory:80,
from C:/Users/jorge/.platformio/packages/framework-arduinoespressif32/libraries/FS/src/FS.h:24,
from .pio/libdeps/ttgo-tsim/ESPAsyncWebServer/src/ESPAsyncWebServer.h:26,
from src/apps/web_server/app.h:3,
from src/apps/web_server/app.cpp:1:
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\unique_ptr.h:397:7: note: declared here
unique_ptr(const unique_ptr&) = delete;
^~~~~~~~~~
*** [.pio\build\ttgo-tsim\src\apps\web_server\app.cpp.o] Error 1
Minimal Reproductible Example (MRE)
Just compile...
I confirm that:
Platform
ESP32
IDE / Tooling
PlatformIO
What happened?
The lib is not compiling via PlatformIO.
platformio.ini:
[platformio]
default_envs = ttgo-tsim
[env]
platform = espressif32
framework = arduino, espidf
build_type = debug
board_build.filesystem = spiffs
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
;time
;log2file
build_flags = -D TINY_GSM_RX_BUFFER=1024
-D TINY_GSM_USE_GPRS=true
-D TINY_GSM_USE_WIFI=false
-D DEBUG_LOG_LEVEL=5
lib_deps = https://github.com/ETLCPP/etl.git
ESP32Async/AsyncTCP
ESP32Async/ESPAsyncWebServer
https://github.com/JorgeHSantana/FreeRTOSpp.git
TinyGSM@0.11.7
ArduinoJson@6.21.5
[env:ttgo-tsim]
board = esp32dev
board_build.partitions = flash/16mb.csv
board_upload.flash_size = 16MB
build_flags = ${env.build_flags}
-D USING_TTGO_TSIM
-D TINY_GSM_MODEM_SIM7000
[env:ttgo-tbeam]
board = ttgo-t-beam
board_build.partitions = flash/4mb.csv
board_upload.flash_size = 4MB
build_flags = ${env.build_flags}
-D USING_TTGO_TBEAM
-D TINY_GSM_MODEM_BG96
Stack Trace
Compilation error:
In file included from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\esp32-psram\no-rtti\bits\c++allocator.h:33,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\allocator.h:46,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\string:41,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\stdexcept:39,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\array:39,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\tuple:39,
from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\functional:54,
from C:/Users/jorge/.platformio/packages/framework-arduinoespressif32/cores/esp32/HardwareSerial.h:49,
from C:/Users/jorge/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:196,
from .pio/libdeps/ttgo-tsim/ESPAsyncWebServer/src/ESPAsyncWebServer.h:24,
from src/apps/web_server/app.h:3,
from src/apps/web_server/app.cpp:1:
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\ext\new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::unique_ptr; _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::_List_node<std::unique_ptr >]':
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\alloc_traits.h:475:4: required from 'static void std::allocator_traits<std::allocator<_Tp> >::construct(std::allocator_traits<std::allocator<_Tp> >::allocator_type&, _Up*, _Args&& ...) [with _Up = std::unique_ptr; _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::_List_node<std::unique_ptr >; std::allocator_traits<std::allocator<_Tp> >::allocator_type = std::allocator<std::_List_node<std::unique_ptr > >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:645:33: required from 'std::__cxx11::list<_Tp, _Alloc>::_Node* std::__cxx11::list<_Tp, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >; std::__cxx11::list<_Tp, _Alloc>::_Node = std::_List_node<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:1903:10: required from 'void std::__cxx11::list<_Tp, _Alloc>::_M_insert(std::__cxx11::list<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:1235:4: required from 'void std::__cxx11::list<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete >&}; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:1832:6: required from 'void std::__cxx11::list<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _InputIterator, std::__false_type) [with _InputIterator = std::_List_const_iterator<std::unique_ptr >; _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >]'
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\stl_list.h:746:9: required from 'std::__cxx11::list<_Tp, _Alloc>::list(const std::__cxx11::list<_Tp, _Alloc>&) [with _Tp = std::unique_ptr; _Alloc = std::allocator<std::unique_ptr >]'
.pio/libdeps/ttgo-tsim/ESPAsyncWebServer/src/ESPAsyncWebServer.h:824:7: required from here
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\ext\new_allocator.h:136:4: error: use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(const std::unique_ptr<_Tp, _Dp>&) [with _Tp = AsyncWebHandler; _Dp = std::default_delete]'
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\memory:80,
from C:/Users/jorge/.platformio/packages/framework-arduinoespressif32/libraries/FS/src/FS.h:24,
from .pio/libdeps/ttgo-tsim/ESPAsyncWebServer/src/ESPAsyncWebServer.h:26,
from src/apps/web_server/app.h:3,
from src/apps/web_server/app.cpp:1:
c:\users\jorge.platformio\packages\toolchain-xtensa-esp32@8.4.0+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\unique_ptr.h:397:7: note: declared here
unique_ptr(const unique_ptr&) = delete;
^~~~~~~~~~
*** [.pio\build\ttgo-tsim\src\apps\web_server\app.cpp.o] Error 1
Minimal Reproductible Example (MRE)
Just compile...
I confirm that: