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
Using esp8266 Arduino platform release 3.0.0, using itself gcc-10, Arduino libraries are always recompiled even after a first successful build.
This has been observed on windows only and there's no issue with linux, where already compiled libraries' object files are correctly reused.
Expected behavior
Under windows, already compiled libraries' object files should be reused too.
Environment
CLI version (output of arduino-cli version):
Windows Arduino 1.8.15 installer, embedding Arduino Builder 1.6.1
OS and platform:
Windows 10, esp8266 arduino core v3.0.0
Additional context
Arduino builder uses the -MMD gcc option to generate depend files (extension .d).
These files are used to list dependencies.
The format of these files has changed somewhere between gcc-4.8 and gcc-10:
Entries like C:\User\... are changed to C\:\Users\....
Manually removing the additional \ between two builds seems to have made the issue disappeared.
It is confirmed that gcc-10.3 fixes the issue while generating the -MMD depends files.
Arduino-1.8.15 efficiently reuses already compiled libraries after the first build.
Sorry for the false alarm, closing.
d-a-v
changed the title
Libraries are always recompiled (gcc-10?)
Libraries are always recompiled (only with gcc-10.1 & 10.2, OK with 10.3+)
Jun 5, 2021
Bug Report
Current behavior
Using esp8266 Arduino platform release 3.0.0, using itself gcc-10, Arduino libraries are always recompiled even after a first successful build.
This has been observed on windows only and there's no issue with linux, where already compiled libraries' object files are correctly reused.
Expected behavior
Under windows, already compiled libraries' object files should be reused too.
Environment
arduino-cli version
):Windows Arduino 1.8.15 installer, embedding
Arduino Builder 1.6.1
Windows 10, esp8266 arduino core v3.0.0
Additional context
Arduino builder uses the
-MMD
gcc option to generate depend files (extension.d
).These files are used to list dependencies.
The format of these files has changed somewhere between gcc-4.8 and gcc-10:
Entries like
C:\User\...
are changed toC\:\Users\...
.Manually removing the additional
\
between two builds seems to have made the issue disappeared.esp8266 issue is there: esp8266/Arduino#8069 (comment)
edit: similar issue, not present in gcc<=9, https://gist.github.com/Som1Lse/2fbb0e22cb59a158bb8e09bf6f527f7e
The text was updated successfully, but these errors were encountered: