-->
Page 2 of 8

Re: gcc10

PostPosted: Sat Apr 03, 2021 8:50 pm
by davydnorris
Hey Erik,

So sorry I haven't looked at this yet! Been bogged down in other work and the UI for my sensors.

This is my file set that I have used to migrate the esp toolchain to later versions of gcc. I haven't done this for quite a while so it's very likely that there will be other changes needed, but if you look at the directory structure of the changes, you should be able to find out where to look and what to change.

The notes file is very rough too - it's all meant for me to remind myself what to do, but hopefully it will give you a start. Feel free to work through the process in this topic!!!

Start with the file crosstool-NG changes.txt

Re: gcc10

PostPosted: Sun Apr 04, 2021 3:26 am
by eriksl
Thanks David, I'll have a look and try shortly!

Re: gcc10

PostPosted: Mon Apr 05, 2021 11:00 pm
by davydnorris
This is also useful - the original crosstool-NG config I was using is the repo by jcmvbkbc but that's now looking pretty stale. Espressif has been doing active work on a fork of it, and are using it for both ESP8266 and ESP32, so I would also look at their patches as well

https://github.com/espressif/crosstool-NG

Re: gcc10

PostPosted: Fri Apr 23, 2021 8:55 am
by eriksl
I am looking into it now. I have one question and one observation. The observation is that the Espressif branch still uses gcc 8, so I don't think that will be usable for my goal. The question is: how do you finally instruct crosstool-NG to build gcc 10? I don't see any patches that change the branch or add an URI for gcc. It looks like you actually check out the latest branch/commit from crosstool-NG (probably the jcmvbkbc fork?) and then apply the patches (and otherwise changes) you sent me? I see there are not specific patches for gcc > 6, they're not required?