Gunwant Jain writes: > This week, I had relatively less work done. > I spent most of my time perusing the LFS guide and osdev.org learning > about building toolchains. Then I went onto building the > aarch64-linux-android toolchain as described in [1]. I updated the > kernel sources for my phone [2]. And in general tidied up my kernel > repository. So the newly compile kernel works. Well done. > 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? > > [1] > https://wiki.gentoo.org/wiki/Android/SharkBait/Building_a_toolchain_for_aarch64-linux-android > [2] > https://github.com/WantGuns/overlay/blob/master/sys-kernel/linux-headers/linux-headers-4.4.222.ebuild Does the version number "4.4.222" coresspond to the kernel of your phone? 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. Benda