Skip to content
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

Update to GCC 10.3 and toolchain rebuild #8103

Merged
merged 1 commit into from
Jun 5, 2021

Conversation

earlephilhower
Copy link
Collaborator

Fixes #8069

GCC 10.3 has a patch to stop escaping the initial : in Windows paths which
is causing Arduino and other tools to fail dependency checks and rebuild
everything on every compile.

Fixes esp8266#8069

GCC 10.3 has a patch to stop escaping the initial : in Windows paths which
is causing Arduino and other tools to fail dependency checks and rebuild
everything on every compile.
@d-a-v d-a-v added the alpha included in alpha release label Jun 5, 2021
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#8069 is fixed with this PR.
I only tried the windows version through the alpha release installer which includes this PR.
First compilation of FSBrowser.ino took 2m12s. Second one took 27s.

Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linux builds seem to be OK too

@earlephilhower earlephilhower merged commit 74d675c into esp8266:master Jun 5, 2021
@earlephilhower earlephilhower deleted the gcc10p3 branch June 5, 2021 22:28
@earlephilhower
Copy link
Collaborator Author

Thanks for the checks!

@sh-user
Copy link

sh-user commented Jun 6, 2021

@d-a-v I installed the board from the link
version 0.0.2: git: 3.0.0-97-g11e1175c https://d-a-v.github.io/esp8266/Arduino/package_esp8266com_index.json
After installation I see gcc 10.2
C:\Users\Alex1\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.0.0-newlib4.0.0-gnu23-48f7b08\xtensa-lx106-elf\include\c++\10.2.0\
Сompilation time does not change

@d-a-v
Copy link
Collaborator

d-a-v commented Jun 6, 2021

@sh-user
You should see gcc-10.3
Snapshot and alpha release are not officially supported by arduino and I sometimes see the same issue as you see, or some other times a java.nullpointer.exception.
In this case, what works is to remove esp8266\ in C:\Users\name\AppData\Local\Arduino15\Packages\ before installing 0.0.1 or 0.0.2 again.
BTW, a new updated gcc-10.3 version has just landed in alpha release v0.0.2 that I'm about to try with windows.

edit: the new gcc10.3 works (long first compilation, short second compilation, flash& run OK from windows)
edit2: it is now in the snapshot release too (0.0.1)

@sh-user
Copy link

sh-user commented Jun 7, 2021

I deleted the folder C:\Users\Alex1\AppData\Local\Arduino15\ and reinstalled the Arduino IDE 1.8.13 again

first-compilation-3.0.0-98-g4f00f3c9.txt
second-compilation-3.0.0-98-g4f00f3c9.txt

@d-a-v
Copy link
Collaborator

d-a-v commented Jun 7, 2021

According to your logs @sh-user you installed the version 3.0.0, not 0.0.2 nor 0.0.1
(3.0.0-newlib4.0.0-gnu23-48f7b08 should be 3.0.3-gcc10.3-9bcba0b)

@sh-user
Copy link

sh-user commented Jun 7, 2021

@d-a-v sorry, this is my mistake, installed version 3.0.0 instead of 0.0.2, everything works, second compilation 50 seconds!

@d-a-v
Copy link
Collaborator

d-a-v commented Jun 7, 2021

Don't forget @sh-user that versions 0.0.1 and 0.0.2 can only receive manual updates.
No notification will come through the arduino IDE for 0.0.1 & 0.0.2, nor the official release channel for 3.0.1 when it is out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha included in alpha release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation speed of ESP8266 core 3.0.0
3 participants