mathieucarbou / ESPAsyncWebServer

Asynchronous HTTP and WebSocket Server Library for ESP32, ESP8266 and RP2040
https://mathieu.carbou.me/ESPAsyncWebServer/
GNU Lesser General Public License v3.0
87 stars 17 forks source link

[BUG] The project fails to compile using latest lib version #134

Closed ingerul93 closed 1 month ago

ingerul93 commented 1 month ago

Description The project fails to compile using latest lib version. This happens only for ESP32.

Board: _esp32dev

Stack trace

In file included from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\riscv32-esp-elf\rv32imc\ilp32\no-rtti\bits\c++allocator.h:33,
                 from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\bits\allocator.h:46,
                 from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\string:41,
                 from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\stdexcept:39,
                 from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\array:39,
                 from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\tuple:39,
                 from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\functional:54,
                 from C:\Users\Vlad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/HardwareSerial.h:49,
                 from C:\Users\Vlad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:184,
                 from C:\Users\Vlad\AppData\Local\Temp\arduino\sketches\00D4004F847E62D2AD0595347334F9BE\sketch\esp_smart_home.ino.cpp:1:
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler>; _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete<AsyncWebHandler> >&}; _Tp = std::_List_node<std::unique_ptr<AsyncWebHandler> >]':
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler>; _Args = {const std::unique_ptr<AsyncWebHandler, std::default_delete<AsyncWebHandler> >&}; _Tp = std::_List_node<std::unique_ptr<AsyncWebHandler> >; std::allocator_traits<std::allocator<_Tp> >::allocator_type = std::allocator<std::_List_node<std::unique_ptr<AsyncWebHandler> > >]'
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler> >&}; _Tp = std::unique_ptr<AsyncWebHandler>; _Alloc = std::allocator<std::unique_ptr<AsyncWebHandler> >; std::__cxx11::list<_Tp, _Alloc>::_Node = std::_List_node<std::unique_ptr<AsyncWebHandler> >]'
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler> >&}; _Tp = std::unique_ptr<AsyncWebHandler>; _Alloc = std::allocator<std::unique_ptr<AsyncWebHandler> >; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::unique_ptr<AsyncWebHandler> >]'
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler> >&}; _Tp = std::unique_ptr<AsyncWebHandler>; _Alloc = std::allocator<std::unique_ptr<AsyncWebHandler> >]'
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler> >; _Tp = std::unique_ptr<AsyncWebHandler>; _Alloc = std::allocator<std::unique_ptr<AsyncWebHandler> >]'
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler>; _Alloc = std::allocator<std::unique_ptr<AsyncWebHandler> >]'
c:\Users\Vlad\Documents\Arduino\libraries\ESP_Async_WebServer\src/ESPAsyncWebServer.h:829:7:   required from here
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-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<AsyncWebHandler>]'
  { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\memory:80,
                 from C:\Users\Vlad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\WiFi\src/WiFiClient.h:26,
                 from C:\Users\Vlad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\WiFi\src/WiFi.h:37,
                 from C:\Users\Vlad\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\libraries\ArduinoOTA\src/ArduinoOTA.h:4,
                 from C:\Users\Vlad\Desktop\WThermostatBeca-master\src\esp_smart_home\sys\util\Ota.h:8,
                 from C:\Users\Vlad\Desktop\WThermostatBeca-master\src\esp_smart_home\esp_smart_home.ino:7:
c:\users\vlad\appdata\local\arduino15\packages\esp32\tools\riscv32-esp-elf-gcc\esp-2021r2-patch5-8.4.0\riscv32-esp-elf\include\c++\8.4.0\bits\unique_ptr.h:397:7: note: declared here
       unique_ptr(const unique_ptr&) = delete;
       ^~~~~~~~~~

exit status 1

Compilation error: exit status 1
mathieucarbou commented 1 month ago

You need to update your tooling I think.

This is not related to this project: as you can see nsee, CI is passing for several arduino versions and boards https://github.com/mathieucarbou/ESPAsyncWebServer/actions/runs/11353176664

you can also look at the pio file in the project and samples to help for project setup.