-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIO Core 6.1.14 Issue compiling with EspAsyncWebServer #4885
Comments
Note we branched ESPAsyncWebServer and AsyncTCP to our own repository to workaround a bad update in AsyncTCP.cpp released by ESPHome. We've been using our branched/patched version for 2 months without issues. |
Could you provide a simple project (ZIP archive attached to this issue as a comment) to reproduce the problem? |
Adding |
I'll attempt to strip the project down. |
Update: it appears the failing project references a library in platformio.ini but doesn't call it in code yet. I have a similar project that does use |
Note the project references a custom branch of ESPAsyncWebServer but doesn't actually call the include header. This project will fail to build. Edit: is this an Uno Reverse card? The build system tries to link a library that isn't used? |
Thanks for the provided project. The issue was linked with the nested dependency declared via VCS repository. See https://github.com/MicroframeDev1/ESPAsyncWebServer/blob/v3.1.0/library.json#L28 The solution is to avoid using VCS declarations, especially for nested dependencies. You can try a direct branch https://github.com/MicroframeDev1/ESPAsyncWebServer , it contains valid dependencies declared via semantic versioning. |
You can also re-test this issue via |
|
What kind of issue is this?
If you’ve found a bug, please provide information below.
Configuration
Operating system: Win 11 Pro 23H2
PlatformIO Version (
platformio --version
): 6.1.14Description of problem
Project compiled fine on Friday. I opened the project today and PIO automatically installed a new version without my consent. It appears PIO Core has updated to 6.1.14. Now my code won't compile. I suspect this is related to changes to LDF.
Steps to Reproduce
Actual Results
Compile fails with:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/AsyncEventSource.h:26:10: fatal error: AsyncTCP.h: No such file or directory
AsyncTCP library is installed.
Expected Results
Linker finds installed libraries and compiles correctly.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Compile fails with both MFSB-DB and MFSB-Release.
Doing a Full Clean and then Build results in the same failure.
Source file to reproduce issue:
Additional info
Build log:
Verbose mode can be enabled via
-v, --verbose
optionCONFIGURATION: https://docs.platformio.org/page/boards/espressif32/featheresp32.html
PLATFORM: Espressif 32 (2023.2.0) > Adafruit ESP32 Feather
HARDWARE: ESP32 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:
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 61 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ESPAsyncWebServer-Microframe @ 3.1.0+sha.7451931
|-- ArduinoJson @ 6.21.3
|-- FSUtils
|-- iNet
|-- Microframe
|-- SB
|-- SysTicks
|-- WDT
Building in debug mode
Compiling .pio\build\MFSB-DB\src\main.cpp.o
Building .pio\build\MFSB-DB\bootloader.bin
Generating partitions .pio\build\MFSB-DB\partitions.bin
esptool.py v4.6-dev
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
Compiling .pio\build\MFSB-DB\lib060\FS\FS.cpp.o
Compiling .pio\build\MFSB-DB\lib060\FS\vfs_api.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFi.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiAP.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiClient.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiSTA.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiScan.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiServer.cpp.o
Compiling .pio\build\MFSB-DB\lib20c\WiFi\WiFiUdp.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\AsyncEventSource.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\AsyncWebSocket.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebAuthentication.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebHandlers.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebRequest.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebResponses.cpp.o
Compiling .pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebServer.cpp.o
Compiling .pio\build\MFSB-DB\libfc9\TimeUtils\TimeUtils.cpp.o
Compiling .pio\build\MFSB-DB\lib5aa\WDT\WDT.cpp.o
Compiling .pio\build\MFSB-DB\lib57e\SPIFFS\SPIFFS.cpp.o
Archiving .pio\build\MFSB-DB\lib060\libFS.a
Compiling .pio\build\MFSB-DB\libb9b\FSUtils\FSUtils.cpp.o
Archiving .pio\build\MFSB-DB\lib5aa\libWDT.a
Compiling .pio\build\MFSB-DB\lib10c\Buttons\Buttons.cpp.o
Compiling .pio\build\MFSB-DB\liba39\MacAddress\MacAddress.cpp.o
In file included from .pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/AsyncEventSource.cpp:21:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/AsyncEventSource.h:26:10: fatal error: AsyncTCP.h: No such file or directory
#include <AsyncTCP.h>
^~~~~~~~~~~~
compilation terminated.
*** [.pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\AsyncEventSource.cpp.o] Error 1
In file included from .pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/AsyncWebSocket.cpp:22:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/AsyncWebSocket.h:26:10: fatal error: AsyncTCP.h: No such file or directory
#include <AsyncTCP.h>
^~~~~~~~~~~~
compilation terminated.
*** [.pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\AsyncWebSocket.cpp.o] Error 1
In file included from .pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/WebHandlers.cpp:21:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/ESPAsyncWebServer.h:33:10: fatal error: AsyncTCP.h: No such file or directory
#include <AsyncTCP.h>
^~~~~~~~~~~~
compilation terminated.
In file included from .pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/WebResponses.cpp:21:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/ESPAsyncWebServer.h:33:10: fatal error: AsyncTCP.h: No such file or directory
#include <AsyncTCP.h>
^~~~~~~~~~~~
In file included from .pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/WebRequest.cpp:21:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/ESPAsyncWebServer.h:33:10: fatal error: AsyncTCP.h: No such file or directory
#include <AsyncTCP.h>
^~~~~~~~~~~~
In file included from .pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/WebServer.cpp:21:
.pio/libdeps/MFSB-DB/ESPAsyncWebServer-Microframe/src/ESPAsyncWebServer.h:33:10: fatal error: AsyncTCP.h: No such file or directory
#include <AsyncTCP.h>
^~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
*** [.pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebHandlers.cpp.o] Error 1
*** [.pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebRequest.cpp.o] Error 1
*** [.pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebResponses.cpp.o] Error 1
*** [.pio\build\MFSB-DB\libd7c\ESPAsyncWebServer-Microframe\WebServer.cpp.o] Error 1
============================================================================================================== [FAILED] Took 6.95 seconds ==============================================================================================================
Environment Status Duration
MFSB-DB FAILED 00:00:06.953
The text was updated successfully, but these errors were encountered: