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 BCAFA1382C5 for ; Wed, 1 Jul 2020 14:07:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9111E096B; Wed, 1 Jul 2020 14:07:51 +0000 (UTC) Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) (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 B122FE096B for ; Wed, 1 Jul 2020 14:07:51 +0000 (UTC) Received: by mail-pj1-x102a.google.com with SMTP id k71so7522593pje.0 for ; Wed, 01 Jul 2020 07:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jsteward.moe; s=google; h=from:to:references:in-reply-to:subject:date:message-id :content-language:thread-index:mime-version; bh=Y2Dic/4PSEWsFFvT3MIFsUNcJYTcEt+cYoHDiWfQvjs=; b=IRijnzQ1Nb5MWWNuZcqxggpF7YPtDl6+kfX3yLHZiafDrTFxgYboU5TBVe2LGR7+Ie ocvQQB6gscFwdoUxQ+VWd2Y4iLg/QMQx77ZllyGnGUWgN6hRo1oFKnG8zwI5hD6pU4y1 1e2KqXOHp9U/JFeUhtTRJLMksbI49Z+P1pv5RIyAsCM2NAkgBGnai8VVhcmYbSOrpvFR OnM8D5lLc32jAPe8Qs88/1n5M+gMUPBQNkL2TKOGiOvP+LMtNRnTRqjriSCLh90419DW EWChMMFESUMhe9fKE04Jm7vZ7TVffP63LcmzpEeoVL7YxTmFKAALV6LnTr4iPXmNBQCd xlOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:content-language:thread-index:mime-version; bh=Y2Dic/4PSEWsFFvT3MIFsUNcJYTcEt+cYoHDiWfQvjs=; b=URwwrUZ70qtWgYqCkYYwmN6Aate6++UhsTomQz4f0rq8vL7HwQzWVTjqfY1h9fqCLE 3pxALj8yLuWRZPsmaH8D8ME9TYbrEyc4PjL83q+Lp6JLIB9ogTMxdBcjoADkQIeVzCtX gQDryNzySJkQTP/dytZvf1sORR6HzA5QrNGi/wupd+EdxgUJxZHwg+Pht1u/sI5WuWL4 e0iyo+HisMAQrsxB+e870QNz8PzFeGzKJeoogGS+2U0on35oK8Mq9QAXIc3sVe8geKL8 OEq9oALt0BfZJYZykc4wCj/YmBDJd7Cl3YYt+/OvGw7MDEgsbV0Ui/N2IxMt5PAlDBHB IyoQ== X-Gm-Message-State: AOAM533VgD6xPGVQts50kIo1NyLwafnb8a9rxFfZPWysVRJijpTJTAz4 TpcDyOn01g4RRbPbY3JFc4Ud48uDXP9QPQ== X-Google-Smtp-Source: ABdhPJwdahPD8cyWlcpZ304u5UIiVq5fVn7/1iUTEzIiO7a80BCmudPdivtHa7K9dzejPeBJyqqW4A== X-Received: by 2002:a17:90a:2d7:: with SMTP id d23mr7279182pjd.57.1593612470142; Wed, 01 Jul 2020 07:07:50 -0700 (PDT) Received: from KAGE ([2400:8901:e001:ab:4c2a:f0f0:ee00:3]) by smtp.gmail.com with ESMTPSA id w9sm6195808pfq.178.2020.07.01.07.07.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2020 07:07:49 -0700 (PDT) From: "Pengcheng Xu" To: References: <20200629201204.hssao7lsdtcmpsme@tardis.localdomain> In-Reply-To: <20200629201204.hssao7lsdtcmpsme@tardis.localdomain> Subject: RE: [gentoo-soc] Weekly Report: Portage Powered Android Date: Wed, 1 Jul 2020 22:07:46 +0800 Message-ID: <02fc01d64fb1$006b0e30$01412a90$@jsteward.moe> X-Mailer: Microsoft Outlook 16.0 Content-Language: ja Thread-Index: AQKbRjKmqXJTMszS8qwUuQCSjlkmbado0Ohw 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="=-=uKZyGfE2y7ZEhd=-="; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: 26c5af26-f454-44dc-b6ba-09220f0b41a0 X-Archives-Hash: 8396886494761f51051fbe71103c29c5 This is a multipart message in MIME format. --=-=uKZyGfE2y7ZEhd=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Gunwant, Glad to see your progress regarding the toolchain. Stupid Microsoft Outloo= k won't do inline replies correctly, so bear with me if you see the followi= ng folded in your email client. And yes, I'm aware that the line breaks ar= e completely messed up (i.e. super-long lines). I've planned to fix it som= e time later, just don't have much time to spare recently... Anyway, find my comments below. > -----Original Message----- > From: Gunwant Jain > Sent: Tuesday, June 30, 2020 4:12 AM > To: gentoo-soc@lists.gentoo.org > Subject: [gentoo-soc] Weekly Report: Portage Powered Android >=20 > Hello Everyone, >=20 > 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. It's good that you chose to get familiar with the GNU build system (autotoo= ls); it will save you large amounts of time when meddling with toolchain-re= lated work. I would also suggest taking a look at the "GNU Hello" project;= it serves as a genuine example of the basics for a GNU project, which GCC = is as well. Get familiar with how to read the configuration and compilatio= n logs, especially when they're littered with libtool calls instead of dire= ctly calling the compiler. > 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. Just as Benda pointed out, 4.9 may be the one I chose two years ago, but it= 's not a hard requirement: most Android things should compile fine with any= newer versions of GCC as long as the toolchain is correctly configured for= an Android target; in many occasions even Clang works perfectly fine. You= may try to fix the problems in the 4.9 tree, tweak the options for the "bu= ild" compiler (gcc-9) to accept older, non-compliant sources, or try to fin= d a newer version of GCC source tree with Android (i.e. Bionic) support. Y= ou may have better luck looking for such a source tree in the AOSP codebase. >=20 > Thanks, > Gunwant >=20 > [1] > https://wiki.gentoo.org/wiki/Android/SharkBait/Building_a_toolchain_for_aa > rch64-linux-android > [2] > https://github.com/WantGuns/overlay/blob/master/sys-kernel/linux-headers/l > inux-headers-4.4.222.ebuild And, we'd love to see a link to your weekly writeup of your efforts and pro= blems encountered in greater detail. We can find out more about your progr= ess and perhaps provide assistance if we can see the exact problem; for exa= mple, it would be helpful if you quoted or linked to the exact error messag= e in the gcc build process you just mentioned. It's also a good idea to ke= ep these in track for archival purposes, such that future contributors can = have an idea of what's going on if they run into the same problem. Regards, --=20 Pengcheng Xu https://jsteward.moe --=-=uKZyGfE2y7ZEhd=-= Content-Type: application/pgp-signature; name="openpgp-digital-signature.asc" Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEDwqrvuDZbn+NMYrRObYNsFSJJP8FAl78mKwACgkQObYNsFSJ JP+E6RAAjC6BmX/zTi9Sz3bH/P2TwnN2x5O27lgGXYElBtSEkR+jLHpIbJXMv650 VFTQkd+TznyZBGgNdRdzkg0EZ7H1AT65qXvf32ekNygAlYTp7sA0fSwzL8edsb08 yTcACpGswxc35pM1wST/1Kv9sVFPv0PUV+Z0wIB6aLSUlH3a02jXQdcYKERhQYDQ LQGpzdN3M+CR3CPsz2z/cTWYvhwwMXKA58NCSj64z18DjY57E+N5x39BSp3gPjEt f6udK6iSTD+AWfKjSBU1eKhYXWx/WAnJtqwmRZfwQ+pvLhoewa+EBmyLjDr3fEti FQPt1ShPviDvh5VmQRRY/becyihe/H0FmTTMATC1xcCFYhCukEA3QINwHlGwO7l9 OsGW66i6nxQsbjLk9qmSKN+bAvG5C+hONVMlhp8G6XQCxrmmE9+V+BIYaprmSHkf IKH4mo9GE3+GDjLxHCH1p0FkzhhZTuxQzqB40R4mP/3ztGG3s4jVg1Wgol0yMFkp 5I0dp1Kj0mCKCpUrkBOU8t9KKO5p6mS/dhL5T8ES6PsBE/asWVXHUOupKw9Q0AZ2 /bH/dj8g01zB/v1lcPQyZrMAGi6DvRKyatJn4kS9gK8BwOTM34vcl6vr7odxGZu3 9dGbNHSScFJ21I4QCGsN8kJkQwX+rtH+fCjWkk4+jApfjL6gXe8= =TEuc -----END PGP SIGNATURE----- --=-=uKZyGfE2y7ZEhd=-=--