From owner-freebsd-ppc@freebsd.org Tue Jan 7 06:52:26 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 263AB1E8FD5 for ; Tue, 7 Jan 2020 06:52:26 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-22.consmr.mail.gq1.yahoo.com (sonic309-22.consmr.mail.gq1.yahoo.com [98.137.65.148]) (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 47sNNS3clWz3HZG for ; Tue, 7 Jan 2020 06:52:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: N4k9Vb4VM1nHAloD6bQfRr3SeMXnXo4UzWJ8bsudsQKf3.Gd.Tlh.jN6IehQ.Bf ZLkhwDp5NxW5k.xx7q1UyIdhvoLPR0NvdPW5xqiPv3VQet6wQwJ4fFJPixReGC8Ucv_uDKbkgBhY 2pP7uCPozS.lXCarQrIeTBoWpg4HSlG.W7wCro8K9yx4YKUyTIh7dBbD8nMEgRArsfSAvsaLe_d0 BzxKO6Xr8_p6bJ8SJSMUT6j.GeYYkOSvr2iDQJas5EluIIu1YpIRBhg.AnMNFDKuuy.rwcAZdnWf EYR5_tgqFZIBaoBhr4cDzGhM0_Ytoheew5caAiLgKdwnBNbYL_VK8FJdCiSbAavHKgHc7TO3AjIl X9l7Jkghxh5Slm0P2XIae5yrqvCaUjkAZIUMsMrolOJzDaxektxznk6UHUjv7fvgqW_IwWhTMkvF QEQdPl_XPj.w24QfgoXP8CPBOKR3cp_PZG6Tz5jCB4CTC1fGlNbBorbznARE_ynwEER2ue_2uD6X L4ajC.lyp3.b3k1n1mlef0QHL6ULd.Yzd0SivQYSErw3RJThP_RWQtXe0_CeIngO18KpcuKLNa8p 1Tg9p2JsnpUxRFVWAxaVQoadJjPcU0nsFHHlqmTeNwVsuL1GPGmwGr9OCTdMPMNUTvNN7F5lcZMU sS_7lk5I3sr5UfhYpr3Z8Zyh2Wxf2B_vbX9RzxCArsw70FKEzB9saV4joUM8CO8gfkWEvuim3Usy zF5orPtLYgYyaHRpIOTDpkiO4SQ81qRmJNch4csThTCCFqGlCJpV9AgI5S6DYxEgq3KN1R0pn77G 8TWMeh.te9SnRtgqGqcvTA8bVNKFJllKU0xgoz5LLKPAM685T7mybgJ5mxGcBrFdJq73VGzxQy2l 7kk9McilcTydwrenz3BUgRZbEa.JuYOuNffx_EPc9eio.1Lqvo8JT38j6HKbKQkzA60g8yYDOVl4 SorH3GAKDqSuCZklBy4H1WM4ToxYh7EeTzl4iGvg_45xqh97xNBhzf6z7qfz5liwxRoo3189tI9P PUe4b_wZ386NCkMtX.Q3H79KDirKZtm8I2JipuhUyanmcG82mSF1.tOLa2lZgyb2ooLOGz6Fy6Ry a39u9t.yL_6yIA68rN0EinLFdfXHbvXMw85gLFsgm6yNmT7iJNFxmZTGO5rXkvt0S9ZHJR4W.8vC 73GM3BAq1j3qkEIg1LYgL6Wmc1cENsiwI4HH.eM7U0aI7YMjfa4c.2cX_Bo2qLDrNcrEv8Evd7NW TE0MATK0wodLNCxqLN5F00ksY4hHDXMleb3pHlWsf.TPvR.znRxCa4IgeWyDxQaqtPGhXvR_EvUI Uqr.wbx8jSVMXiEbndy6FlaUvVWki0orgq4MRKwIobmA1QWpvWxocy5ipW_ZseSA0NORZR_8HiVI DZDWR.rNQA.pIqex9..zX Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Tue, 7 Jan 2020 06:52:22 +0000 Received: by smtp417.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 106259cbe7a4de7ed76024f611f2f535; Tue, 07 Jan 2020 06:52:18 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Involving devel/binutils@powerpc64 in buildworld buildkernel : got/toc optimization is not supported for addis %r1,%r1,TOC_REF(trapstk)@ha (and the like) Message-Id: <00DFB84D-D694-4BCA-A15F-5098F0320FA9@yahoo.com> Date: Mon, 6 Jan 2020 22:52:17 -0800 To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.3608.40.2.2.4) References: <00DFB84D-D694-4BCA-A15F-5098F0320FA9.ref@yahoo.com> X-Rspamd-Queue-Id: 47sNNS3clWz3HZG X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.49 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988,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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[148.65.137.98.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (-1.24), ipnet: 98.137.64.0/21(0.88), asn: 36647(0.70), country: US(-0.05)]; 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)[]; 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: Tue, 07 Jan 2020 06:52:26 -0000 The following is based on what I noticed while working on updating to head -r356426 , including building multiple ways (discovering what fails to build and such). I was looking at messages and noticed that there were messages such as: --- kernel.full --- locore.o: in function `dbtrap': /usr/src/sys/powerpc/aim/trap_subr64.S:905:(.text+0xa68): got/toc = optimization is not supported for 0x3c210000 instruction That is the addis instruction in: dbtrap: /* Write the trap vector to SPRG3 by computing LR & 0xff00 */ mflr %r1 andi. %r1,%r1,0xff00 mtsprg3 %r1 =20 GET_TOCBASE(%r1) /* get new SP */ addis %r1,%r1,TOC_REF(trapstk)@ha ld %r1,TOC_REF(trapstk)@l(%r1) addi %r1,%r1,(TRAPSTKSZ-48) (based on line number). This was for system-clang and devel/binutils@powerpc64 being used to do the build. But it also happened for devel/freebsd-gcc9@powerpc64 and devel/binutils@powerpc64 bing used to do the build: --- kernel.full --- locore.o: in function `dbtrap': /usr/src/sys/powerpc/aim/trap_subr64.S:905:(.text+0xa68): got/toc = optimization is not supported for 0x3c210000 instruction (Same instruction, same message.) There are lots of similar messages for other instruction encodings for zfs.ko.full --but only for the devel/freebsd-gcc9@powerpc64 and devel/binutils@powerpc64 combination: --- zfs.ko.full --- zfs.kld: in function `acl_trivial_create': = /usr/src/sys/cddl/contrib/opensolaris/common/acl/acl_common.c:1646:(.text+= 0x568): got/toc optimization is not supported for 0x3d9e0000 instruction zfs.kld: in function `cacl_malloc': = /usr/src/sys/cddl/contrib/opensolaris/common/acl/acl_common.c:243:(.text+0= x5e0): got/toc optimization is not supported for 0x3d9e0000 instruction zfs.kld: in function `ace_trivial': = /usr/src/sys/cddl/contrib/opensolaris/common/acl/acl_common.c:1764:(.text+= 0x990): got/toc optimization is not supported for 0x3d9e0000 instruction zfs.kld: in function `avl_nearest': . . . The list for zfs.ko.full is large. Overall there are examples of each of: got/toc optimization is not supported for 0x3c210000 instruction got/toc optimization is not supported for 0x3c9e0000 instruction got/toc optimization is not supported for 0x3cbe0000 instruction got/toc optimization is not supported for 0x3cde0000 instruction got/toc optimization is not supported for 0x3cfe0000 instruction got/toc optimization is not supported for 0x3d1e0000 instruction got/toc optimization is not supported for 0x3d3e0000 instruction got/toc optimization is not supported for 0x3d5e0000 instruction got/toc optimization is not supported for 0x3d9e0000 instruction got/toc optimization is not supported for 0x3dde0000 instruction got/toc optimization is not supported for 0x3dfe0000 instruction got/toc optimization is not supported for 0x3e1e0000 instruction got/toc optimization is not supported for 0x3e3e0000 instruction got/toc optimization is not supported for 0x3e5e0000 instruction got/toc optimization is not supported for 0x3e7e0000 instruction got/toc optimization is not supported for 0x3e9e0000 instruction got/toc optimization is not supported for 0x3ebe0000 instruction got/toc optimization is not supported for 0x3ede0000 instruction got/toc optimization is not supported for 0x3efe0000 instruction got/toc optimization is not supported for 0x3f1e0000 instruction got/toc optimization is not supported for 0x3f3e0000 instruction got/toc optimization is not supported for 0x3f5e0000 instruction got/toc optimization is not supported for 0x3f7e0000 instruction got/toc optimization is not supported for 0x3f9e0000 instruction got/toc optimization is not supported for 0x3fbe0000 instruction I'm not sure of the implications, but I figured that the information might be of use at some point. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)