From owner-freebsd-ppc@freebsd.org Mon Dec 30 05:07:37 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A7CC91D5A30 for ; Mon, 30 Dec 2019 05:07:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-20.consmr.mail.gq1.yahoo.com (sonic301-20.consmr.mail.gq1.yahoo.com [98.137.64.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47mQRD44Bpz4Zyx for ; Mon, 30 Dec 2019 05:07:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: bxDDhCwVM1k50rnOr0R4FIyH7ocHCGoF2_OJ9vsehX7f0pW0sfMnuul.LGmsFC6 whT3kuVfpMyInxEW.H8m64IMFSwxfk_8DCybJXskvMpU6rgF49DgyyShgw4_tZegIf17nFcybBr1 gfufwRRcpD965fJkdgicHTyAUgori7XEj.cqMAmbNtirTkIYCDL9V.UXdaviZ0fE6OkxekjrnEDk OfYFZLmbC1MuJiWM1osRg7ve_rdDZ4djzd88OA_QAUnhJNplfj.37DkjSDqVd7koPFsxYl3kbafu OtwVxIB8SZupsv.HrYGl_OXCZymOpbZgy5yvYlmVMGFkqiYjGNjnp_6G7t_9ziTRAjB3cu_HCpy_ 0zejuNOXJRB.34UOAm72xdN6lQDmG25YPf393obMgIz7uWTL6.pfflZx_srtMNt8ZLwHqjNG1Dlu ThLdazm5_38Sc4yC7b6vEE2Rpp0X.AGWfPGMAKqY85Mfkiy1AYs1xm3gxoSqR8cxCszAiQ7gBHj6 6raWFmH8T9HSnmIs9DuZItSHvV8yBBd60iX0luYiI.ZIQSRkLi125O9Q5onAQS4JbyeoBC_VG_1I JliyRg4KFf2Ptxp0njCynsqGIfoZ2glTOmk1E0wU0QL2oHoxCqX8RgK17NXz.E10yzjoHbXq9GIj tx4IKmagxE3uKT1GlTqds_oEoCjExXYbSaAUEd.s.9TZIFW_wpMKoMcAHXqUm2dZN6So8Qn.LudF pZ_ibTp51azCWOmwGvHXBWBnrhOGTWPjkeCSVb28J8zzfxxO2eUpRz2RBXfrSdUf21xBJjENRs0q SusDk.7NUQLBQR522KSCVay5FbN5DnDRZERxy5Hypc9hOvyvDly7nulIWwDiea00192FWur.2dZo WJpiCFQQxcqqCZ6B.FmhilexhHs5YybaVarvqOAjFzTHpQyXytB86SzUqLln8TF5DGbfTEDXr1uv YSsY9uup.YNfpyQDhGjWJsR6oDquBb8r8V2hR__psKQLihX7x5Vk38efQQNN8SmgXMjJmG39KPek wd1dg0Gra6RBwzkg61Yf4CMKxNJJeLPyGli6bWTneF7in62opPSLG2VIkjTKNtGQzw9nrPy27GHT 36WlYrsy2bQEnAG6igmkfxc_cN2nlVWDo0y9cQtw6AElNLOyYmXKjLWK9tR0WHNpTP0hGtNxXlFL aYjoFfJ8vl6_FrIm5j4ILtfOZrlmJPjX9xV2J.QidXsYzFG8Icb1e5LQ4W0jAM8KlKfXlcKbfhqd 6B.1VOAUAVfauel7kyyqRxdxNaxHazqwEJzkNHYB_Y82hLZsJ3zAxmakTlX7z_dVv6_hc8X.yzt_ AexvHzhUoNSzCacQC6MAFxZerWO_67nW3kbIFPUo6MHLZDJ184Y532n4srvxY5h6o7n4DaSTF_aS vQBrITXezPoRUmJTOMhnuNvQBzWVfJ_s9XZg4Ag-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Mon, 30 Dec 2019 05:07:34 +0000 Received: by smtp403.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9b0a8e3dd38050fd0eaafe1c18804feb; Mon, 30 Dec 2019 05:07:31 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Building for ELFv2 From: Mark Millard In-Reply-To: <7c9e00c8-17a1-bc20-7c52-2dc87069fca3@neo-zeon.de> Date: Sun, 29 Dec 2019 21:07:30 -0800 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <520F197C-DE4D-4C1E-8EFE-71ABDC6148CF@yahoo.com> References: <7e305085-f848-62e4-858a-dff3acefa842@neo-zeon.de> <7c9e00c8-17a1-bc20-7c52-2dc87069fca3@neo-zeon.de> To: Cameron Berkenpas X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47mQRD44Bpz4Zyx X-Spamd-Bar: - X-Spamd-Result: default: False [-1.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.49)[-0.492,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.91)[-0.908,0]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[146.64.137.98.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (3.96), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 05:07:37 -0000 On 2019-Dec-29, at 17:38, Cameron Berkenpas wrote: > I'm building on the system I wish to update. The system itself is = 13.0-CURRENT (r356092) and based on gcc 4.2.1. I was going to initially = try a live update, but I wasn't sure how successful that would be (but = this is a VM so I'd be able to rollback without difficulty). If that = didn't work out, I was going to try and create some bootable media and = install a new instance from that. >=20 > I have currently allocated 32GB of memory and there appears to be = about 3G of swap and 32 threads. >=20 > The physical host is a Talos II (so POWER9) running Linux/KVM/libvirt. >=20 > Thanks, One thing that I've noticed is that while devel/llvm90 has an option to enable ELFv2 as the default abi for powerpc64, devel/llvm80 does not have such --and may well not have all the updates required in order to work well for generating ELFv2 materials for all I know. Some ports are tied to llvm80 (not tracking the default if set later). Thus, if such a port is important to one's context, moving to an ELFv2 context could be a problem for now. (I'm still dealing with building various ways. I've not yet tried installation or operation of an ELFv2 context, or an official system-clang based context for 32-bit powerpc.) Older material (because of some earlier top-posting): > On 12/28/19 6:39 PM, Mark Millard wrote: >>=20 >> On 2019-Dec-28, at 15:28, Cameron Berkenpas = wrote: >>=20 >>> Hello, >>>=20 >>> How can one build FreeBSD 13.0-CURRENT for ELFv2 support? >>>=20 >>> I've installed xtoolchain-llvm90, and I run: >>> CROSS_TOOLCHAIN=3Dllvm90 make buildenv >>>=20 >>> =46rom here buildworld fails pretty early on with: >>> /usr/src/sys/contrib/libnv/nvpair.c:33:10: fatal error: = 'sys/cdefs.h' file not found >>>=20 >>> I can add "-I/usr/include" and so on to /etc/src.conf to hack around = this, it just goes a bit further and finds other headers missing. >>>=20 >>> As far as I can tell, $SYSROOT = (/usr/obj/usr/src/powerpc.powerpc64/tmp) isn't being properly setup = properly which is resulting in missing headers. >>>=20 >>> I've done some searching and haven't really found anything too = helpful. But perhaps I just don't know what to look for. >>>=20 >>> Thanks! >>>=20 >> You may want to specify what type of context(s) you >> can try to bootstrap into ELFv2 from. For example: >> cross-build? self-hosted only? system version starting >> from on the machine doing the build? gcc 4.2.1 based >> starting point? single boot media vs. able to have >> an old context produce separate/new boot media? >> the amount of RAM and swap/page space? (You may be >> able to come up with more things to identify that >> might contribute to how to progress.) >>=20 >> I'm working towards updating, but I'll likely be >> cross building and producing new media from a >> bootable backup of the old media. (Helps avoid >> potential live-update issues.) So what I end >> up doing may well not match what you would do. >=20 >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)