1 |
Gunwant Jain <therealgunwant@×××××.com> writes: |
2 |
|
3 |
> This week, I started managing the structure for the modified LineageOS |
4 |
> fork we would keep. Namely the modified `repo-manifest` [1] and |
5 |
> `llvm_android` [2], for now. No patches have been applied to them yet |
6 |
> for the reasons discussed below. |
7 |
> |
8 |
> My plan for this week was to start with patching the `llvm_android` |
9 |
> build scripts. Android uses a prebuilt Clang (bundled with the repo) |
10 |
> among other stuff to build the toolchain. So I had to emerge Clang on my |
11 |
> phone. |
12 |
> Emerging Clang turned out not to be a breeze when I have a phone with 3 |
13 |
> gigs of RAM. So for about the longest time, I was busy trying to make up |
14 |
> for it. I tried setting up distcc, increased swap/zram, but still the |
15 |
> OOM killer got me. |
16 |
> Later last night(/day), I came across the tips for building clang/gcc in |
17 |
> an embedded Android environment at [3]. So I followed that and as of |
18 |
> now, me writing the mail, OOM has not got me, Clang is emerging. |
19 |
|
20 |
Did it finally go through? |
21 |
|
22 |
> While I considering the patching part easy, I guess the major bottleneck |
23 |
> in the process of building Android natively would be the compilation. |
24 |
> Essentially I will have to trade time for memory. I will also give |
25 |
> another shot to distcc while I am at this. |
26 |
> |
27 |
> Regardless of problems I faced, I made "TODO" comments in the source and |
28 |
> wrote notes about where to patch the build scripts locally. I avidly |
29 |
> wait for Clang to compile and then start testing the patched build |
30 |
> script. |
31 |
|
32 |
Yes, the compilers are the biggest burden of the building process. You |
33 |
will be facing both the RAM and disk space shortages. |
34 |
|
35 |
Luckily the HPC industry is testing out the arm64 architecture. We |
36 |
could bet our luck with the more powerful arm64 servers. |
37 |
|
38 |
Benda |
39 |
|
40 |
> [1] https://github.com/WantGuns/manifest |
41 |
> [2] https://github.com/WantGuns/toolchain_llvm_android |
42 |
> [3] https://wiki.gentoo.org/wiki/Project:Android/tarball#Out_of_Memory |