1 |
Gunwant Jain <therealgunwant@×××××.com> writes: |
2 |
|
3 |
> This week, I had relatively less work done. |
4 |
> I spent most of my time perusing the LFS guide and osdev.org learning |
5 |
> about building toolchains. Then I went onto building the |
6 |
> aarch64-linux-android toolchain as described in [1]. I updated the |
7 |
> kernel sources for my phone [2]. And in general tidied up my kernel |
8 |
> repository. |
9 |
|
10 |
So the newly compile kernel works. Well done. |
11 |
|
12 |
> But while building the toolchain, I was not able to compile `gcc` as I |
13 |
> was riddled with errors along the way. Most of them are related to the |
14 |
> newer `gcc` (version 9.x) finding incompatibility in the sources of |
15 |
> the `gcc` I am trying to build (version 4.9). I will continue to |
16 |
> build the toolchain and hopefully move onto separating `Bionic` from |
17 |
> the other side of Android mid-week. |
18 |
|
19 |
Why do you need to build gcc-4.9? |
20 |
|
21 |
> |
22 |
> [1] |
23 |
> https://wiki.gentoo.org/wiki/Android/SharkBait/Building_a_toolchain_for_aarch64-linux-android |
24 |
|
25 |
> [2] |
26 |
> https://github.com/WantGuns/overlay/blob/master/sys-kernel/linux-headers/linux-headers-4.4.222.ebuild |
27 |
|
28 |
Does the version number "4.4.222" coresspond to the kernel of your |
29 |
phone? Generally, when compiling a toolchain, you don't need to match |
30 |
the linux-header version to the running kernel. The newest linux-header |
31 |
will do. |
32 |
|
33 |
Benda |