From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 92CF1138359 for ; Fri, 24 Jul 2020 14:08:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AAA5BE082D; Fri, 24 Jul 2020 14:08:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 74DC4E082D for ; Fri, 24 Jul 2020 14:08:57 +0000 (UTC) Received: from [2a0c:b641:69c:e7f1:6d3:b0ff:fe40:5fd8] (port=51286 helo=robot) by muon with esmtp (Exim 4.92) (envelope-from ) id 1jyyNY-0003j4-5D for gentoo-soc@lists.gentoo.org; Fri, 24 Jul 2020 14:08:52 +0000 From: Benda Xu To: gentoo-soc@lists.gentoo.org Subject: Re: [gentoo-soc] Weekly Report: Portage Powered Android References: <20200720074024.ayyqx5dk5hrngn7m@tardis.localdomain> Date: Fri, 24 Jul 2020 22:08:47 +0800 In-Reply-To: <20200720074024.ayyqx5dk5hrngn7m@tardis.localdomain> (Gunwant Jain's message of "Mon, 20 Jul 2020 13:10:24 +0530") Message-ID: <877dutngy8.fsf@robot.e.airelinux.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Archives-Salt: 1424ee01-6792-44c6-96df-ba6ea47fc269 X-Archives-Hash: 4d7f11289a8608f2eb139633f55d703d --=-=-= Content-Type: text/plain Gunwant Jain writes: > This week, I started managing the structure for the modified LineageOS > fork we would keep. Namely the modified `repo-manifest` [1] and > `llvm_android` [2], for now. No patches have been applied to them yet > for the reasons discussed below. > > My plan for this week was to start with patching the `llvm_android` > build scripts. Android uses a prebuilt Clang (bundled with the repo) > among other stuff to build the toolchain. So I had to emerge Clang on my > phone. > Emerging Clang turned out not to be a breeze when I have a phone with 3 > gigs of RAM. So for about the longest time, I was busy trying to make up > for it. I tried setting up distcc, increased swap/zram, but still the > OOM killer got me. > Later last night(/day), I came across the tips for building clang/gcc in > an embedded Android environment at [3]. So I followed that and as of > now, me writing the mail, OOM has not got me, Clang is emerging. Did it finally go through? > While I considering the patching part easy, I guess the major bottleneck > in the process of building Android natively would be the compilation. > Essentially I will have to trade time for memory. I will also give > another shot to distcc while I am at this. > > Regardless of problems I faced, I made "TODO" comments in the source and > wrote notes about where to patch the build scripts locally. I avidly > wait for Clang to compile and then start testing the patched build > script. Yes, the compilers are the biggest burden of the building process. You will be facing both the RAM and disk space shortages. Luckily the HPC industry is testing out the arm64 architecture. We could bet our luck with the more powerful arm64 servers. Benda > [1] https://github.com/WantGuns/manifest > [2] https://github.com/WantGuns/toolchain_llvm_android > [3] https://wiki.gentoo.org/wiki/Project:Android/tarball#Out_of_Memory --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEENTS8ZhMowhj4Iw2H33YQtSHxcSIFAl8a628ACgkQ33YQtSHx cSIksw/+PmgNbOo4IVjgGqyMJdArTmcvQrtL8OMagFcJevJTWymZ40xDo4vpZ+Up nQTlmZHMu4x8jQycAkBXMZH7rodn0bYhuyV4DTdT+IOfYUyLsF/T+H3tNtTId0aZ 7veC6h83LL6qVHeEjVN4aPKamAiMKY7ec1W3mMooA73Fc7aA53HDePAwcFj0N//9 j+SZ71JLtmXoaG/fvvuaMDtf43ygl56BIesOWp71NjYCVkWHXmDnrWyMeGvxqaiK wR69kXj+yWYGCBtCVlj3VbmpviAgz75o1PneVYSfh0sXwENIE3ku1EzGbS7FkU9d Xih9sxEiM9eWUW1RfI7gSJxQVubG7HdGoewO0NQctC8xikbVc7cFsukByDEw1VYi 4e988CUcNVDTxhZBNOgHlR0DJVy7kDYpp2YM/oHQQ194OnonwP5nrOsamRIJcD37 2mULdcwNsl5fbvGZZ8wY27j7DCUcwc//QQXx+5EgkxtsS2FSRLTW4DiEwPml2rE0 /Rv0sVIVatjUdwdAd1VLlvTkZc3FtX8g46O1sdqqvHpVMzsTmu5p0Qnjli20byjw tC7VNmh5CX6qZ2NhFYGNu7t9J3yHiJhXO6TugdrJN7OCVDcxBsFZLaE1AEqS/lzR jn4lOmvHpXnzPncKt3JrnmWpnqxuiBa1SCvECRyu8pHhTACHAK0= =8yn4 -----END PGP SIGNATURE----- --=-=-=--