From owner-freebsd-ppc@freebsd.org Sat Jul 25 20:59:30 2020 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 45EBB3703BF for ; Sat, 25 Jul 2020 20:59:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (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 4BDdjY0F0Rz4fL7 for ; Sat, 25 Jul 2020 20:59:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: uVFr.IAVM1lkMT6ytH3YVsRW70ZXozK3uKHhAnZ8aDRYO_INmzDm0k.qVMIpOjM kAx5_THYtuWXffkeWv5bBOPNGrFcvG3N0AtKu7p9ufhFTQQdEMU.9CoOsJTjvJmC7pD9y2V7dY1C HMlQj98wi3jA8fXdPgYmJNzJcKLPtQJk_OfgSKv.3TTugqiOiJqwIrqPfp1Utx2Tc_ClVV_Zp6jl nBWHQytr8Z4Q3Op6dhQrOOTkazFjp9VI804I.kvLplXTy7b31g0xdLVi_GAB0lwrzKmDBpx9VMe1 d0TV8JywXL9si19nxtBrXLlUIxHyQAVqYjesihgQsJ3V5szOPSQcU6HR7Cz0GN0VkRTrFqGnUU_z HhDQQw6y0zGRnNwaWV2DqVclC8PeOK0vMNrvLzg1coQJP9.0HJH.SMNE_8aI7OgaBXhAFngjEc14 DO8T3H.LU_LGa5.9EVMUjg.AvkTYVQYyJlz7yiWhYdD2TC6Ffhj7Si7ppsfN8VU._Z1g4iS9omDh EOtdkPRepoAuFyWYMsoPhTvStWDp5araBlcvesVfEPPeHDzbSTsQ6BrmZsokMu1oGAESgFArCarD mM2aLB0R8v9LEOoL0WXjkRuF9.6vHPJrqjbuXukAfF9PdySy6GptuozrCxfnhqEz2stJzT6.MDtN ULej34hhYP_uFBSBzhnuAWuCrI7LEGdwQq9hx6Q6CLVgHnouXSBNXxdWd2yinOQpWnsoL_KVMwZ1 QmEvvSkRPtOiNZgooPM4j2uP1rONQ_JbQgyQ86LRv0GVtI6r63hULmpX_x47CXzkN2WxxR6RlA3o C9epnMOa1q6i6hyPiIILWUOl60ZfFloT1oVbMA7aRcJf1ILaivdFh3gGpERk_q.I4YRpT5NPkXtT SbtB4K8vaVnMUOuGTFcWhJv3aYzCubOBYfmlinlVQQpqzTex6mBF3CQmvY4NJSgMMXImSznlW4dU wZukDLxx.0JiPDx4MNvqarRorYNHxH5sDOe0fhWlPnRoL7BFiGMcVzTc_R.gd6wFwW.Hkk4H9c_I 2d.9zYru6eEPqm.XQBXC3NfGBrPxiB6pcY1v0K4dg1dzq_az.E_Un.9JQld758Z_.t6uJq59AcjV _opZZvujEDMP9NVc6UPDpTMZ1RFgxvtHwVb2y3SP8SRKrIOCLo6Z0idKgZPduD.6Nme3cwB6Rqyq i4T0bUNM6cPo9HKJ_htbByG01J3p4DyBslfV_sxqCpIiJjShxiLby_FziUyVMIpHsFieBRk_nIAO 245uoDSNMZ0ptZd1mz.Jk5UxgyWOvSZm_zpReb08zxSJdmsi8WL6iJkQK9dhzzVVwP.j8Z6V7du5 NxtZ0oiduwP6kTe0NoihDmvXrZ_nrhepmMSnHFnJycviZ0w3O36BDrTusc1eUsG7yQ74kqjZ0vic OZwkDrf4RWNrYrk61ZjuwYq5RjBzxjgSxozVFSuH9fVn8fOw8NLWZ4SHzpGsJIA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Sat, 25 Jul 2020 20:59:27 +0000 Received: by smtp431.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7fb6abf2cd15c0ab079d54a82b47223e; Sat, 25 Jul 2020 20:59:27 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Introduce WITH(OUT)_LTO? (was: Re: svn commit: r362987 - in head: contrib/bc usr.bin/gh-bc) (LLVMgold.so and gnu's ld.gold) From: Mark Millard In-Reply-To: Date: Sat, 25 Jul 2020 13:59:26 -0700 Cc: svn-src-head@freebsd.org, FreeBSD Toolchain , freebsd-ppc Content-Transfer-Encoding: quoted-printable Message-Id: <8B43A4F4-E44D-40C0-8984-FD0FD43198FE@yahoo.com> References: <64523602-7EFC-4A97-90EA-C776BF2A0AF7.ref@yahoo.com> <64523602-7EFC-4A97-90EA-C776BF2A0AF7@yahoo.com> To: =?utf-8?Q?Stefan_E=C3=9Fer?= X-Mailer: Apple Mail (2.3608.80.23.2.2) X-Rspamd-Queue-Id: 4BDdjY0F0Rz4fL7 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.44 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.95)[-0.949]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(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)[]; SUBJECT_HAS_QUESTION(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.003]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_THREE(0.00)[4]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.99)[-0.991]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.83:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.83:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2020 20:59:30 -0000 On 2020-Jul-8, at 01:28, Stefan E=C3=9Fer wrote: > Am 08.07.20 um 09:01 schrieb Mark Millard: >> The following is more informational than anything as far >> as I'm concerned. But there may be implications that I'm >> unaware of. (I sometimes experiment with toolchain use >> to see what the current status is for such use.) >>=20 >> I attempted to build a system for 32-bit powerpc using clang >> and binutils, building head -r363000 ( from -r363000 ). (This >> was a cross build, amd64 -> powerpc.) It got a new type of >> failure, compared to my past experience: >=20 > Hi Mark, >=20 > thank you for the report. I have tested with "make universe" (with > default settings) that this version builds on all architectures, > but Ed Maste has already disabled -flto for powerpc64, due to run > time issues (floating point exception, IIRC). >=20 > I know that you are actively working on PowerPC and I'd appreciate, > if you could provide me with information on which parameters cause > breakage and which work for you. The combination of CLANG with LTO > and GNU binutils cannot work - CLANG and GCC use incompatible file > formats to represent the intermediate object files. Hmm. It looks a little more complicated than that . . . Looks like the devel/llvm80 devel/llvm90 and devel/llvm10 options for powerpc64 include one for: GOLD=3Don: Build the LLVM Gold plugin for LTO That produces a plugin (LLVMgold.so) for use with gnu's ld.gold ( from devel/binutils ). The system-clang/llvm materials do not seem to include LLVMgold.so and so prevent use of that toolchain for LTO via devel/binutils . (A FreeBSD choice rather than a llvm* vs. binutils technically-blocking issue?) devel/binutils builds and installs /usr/local/bin/ld.gold for both 32-bit powerpc contexts and for powerpc64 contexts. However, for the 32-bit powerpc context, the devel/llvm* do not include an option to enable building LLVMgold.so . I do not know if this is just a ports choice vs. if this has a technically-blocking issue involved. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)