You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[X ] PlatformIO Core.
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Mac OS PlatformIO Version (platformio --version): 5.2.0b1
Description of problem
A user in this thread has run into the problem that when a header-only library is used in lib_deps, specifically rlogiacco/CircularBuffer, the program fails to compile at the stage where PlatformIO attempts to create a .a archive file for the library.
Steps to Reproduce
Use platformio.ini and code from below
Compile
Actual Results
Dependency Graph
|-- <CircularBuffer> 1.3.3 (/Users/ali/Documents/PlatformIO/Projects/esp_template/.pio/libdeps/native/CircularBuffer)
Building in debug mode
Retrieved `.pioenvs/native/src/native/main.o' from cache
ar rc .pioenvs/native/libcaf/libCircularBuffer.a
ar: no archive members specified
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
*** [.pioenvs/native/libcaf/libCircularBuffer.a] Error 1
Expected Results
PlatformIO does not attempt to invoke the archiver if no object files are present as sources.
What kind of issue is this?
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system: Mac OS
PlatformIO Version (
platformio --version
):5.2.0b1
Description of problem
A user in this thread has run into the problem that when a header-only library is used in
lib_deps
, specificallyrlogiacco/CircularBuffer
, the program fails to compile at the stage where PlatformIO attempts to create a.a
archive file for the library.Steps to Reproduce
platformio.ini
and code from belowActual Results
Expected Results
PlatformIO does not attempt to invoke the archiver if no object files are present as sources.
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
The problem also seems to be specific to the toolchain version and/or OS being used, since the user says the problem occurs on Mac but not on Windows.
Adding
lib_archive = no
to forcibly prevent PlatformIO from linking the library is a workaround (but should be automatically detected).
The text was updated successfully, but these errors were encountered: