On 20/07/01 03:17PM, Benda Xu wrote: > > But while building the toolchain, I was not able to compile `gcc` as I > > was riddled with errors along the way. Most of them are related to the > > newer `gcc` (version 9.x) finding incompatibility in the sources of > > the `gcc` I am trying to build (version 4.9). I will continue to > > build the toolchain and hopefully move onto separating `Bionic` from > > the other side of Android mid-week. > > Why do you need to build gcc-4.9? I assumed we need to build the gcc which is used by the Android platform (and as an extension NDK as well). The latest gcc which they ship is version 4.9 [1]. > Does the version number "4.4.222" coresspond to the kernel of your > phone? Yes. > Generally, when compiling a toolchain, you don't need to match > the linux-header version to the running kernel. The newest linux-header > will do. I was not aware of that, thanks. But then again, I don't see why I shouldn't continue using the "4.4.222" headers. Regards, Gunwant [1] https://android.googlesource.com/toolchain/gcc/+/refs/heads/master