From owner-freebsd-toolchain@freebsd.org Sat Aug 11 19:05:28 2018 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79562107706C for ; Sat, 11 Aug 2018 19:05:28 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-22.consmr.mail.gq1.yahoo.com (sonic312-22.consmr.mail.gq1.yahoo.com [98.137.69.203]) (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 003608D616 for ; Sat, 11 Aug 2018 19:05:27 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: gHN_BRsVM1lgBvaYDqcIzTA0bBrvQV3_q.mW.3FT0ZTroyEcb8WkmkK60svuqhg cMkb4U88dYDTa2fgdgZt5n_bl.uxuiR8xaYfuarTXJzD0kGgWMhPCzbN4LWxrUdn.ybuJ.pHyKC0 J162i0KiAMVNQIR5dhFYfoRYk_UkPYfVaF5K666MVSLONH8mkPpHD2PHjbkmY1XazjLB6akbPhnx _5v0Ynk5MyjVxC9cMYx2Yqj8lC5Dzugp6epdzpyL0bC5oiWhTI5xFYUYjv2yRv4QUFrpUT_4Simu lehB.ezxY_Jbzy1G6u6EZ1M3.t1hg0SGSVuGME2tZVX6giVg0Awa.Ih0hnX1rVQPer9wMs1R_rD1 wKz2ZWt5otp647nPHhxYOjux.UUctmz.WdPka0z.qkFhn7Axe4nzowjYzx7b6i.DJz8r365tkJ0a E.o.UcGnnDnyOu4DB3aT3UvCCXAGM0aOrOeKEA.RRCqN5fXuSM1oOtTBFsEZO3eMAZebaQIKkYZd K2_tkAqmelruXjWoYn1YqIAt5dxldQ7pEpdNuefRg9uI7MhwwtlqHrC7Zc9Ia9mkptxlPv2k8_wX MDWy8t3B_uCnLeL.rs5_XdgJlFo34mtOauxISxj1k9Iup7ofs2GYUzFa0HTn12yxp015TAY3.6WK 4XBOXzAR6ab_5JyxgvQW2qtA_iuZdXMkLfn0Biu0IFEGLVmu4M1wIkTlo0rVpB2FCjf_FyKNzQYj 9JyFgop5dJN_bFUPFJMZGUy_HErrH1cIS0JxBd9O2l7ICbXqH4NbpL0DmkiYwLpSPeiAheue9Kn3 n9MSOM9oZ.CKsUpvEJkrDSH5xNIOv.N9RRGOo54C42yXEZkERAYY9TbsnqWSeSTC8fmUfsbv2gfW u1WKTZ7esKHfkl.eBSTZIndqvYcfl7Z8O2A2wYan642Ylq2eBpyJOGhO2tAi8En6nWnIJ9aPK7Dv 4sw0np0fhnH5eW4mGEbV0r46U0FmIXyKXKdrSI5rdKAcA_1RHbXMb_vDUCbZbGXxsugF.IRoBbqi YOp6qO6hx Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sat, 11 Aug 2018 19:05:20 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp411.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ba6b82f6cafb15d612be5da60ce5b098; Sat, 11 Aug 2018 19:05:16 +0000 (UTC) From: Mark Millard Message-Id: <3596475F-13E2-42E3-A1AB-C0C9E2089969@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Broken arm support in clang now? Date: Sat, 11 Aug 2018 12:05:15 -0700 In-Reply-To: <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com> Cc: Dimitry Andric , "freebsd-toolchain@FreeBSD.org" To: Warner Losh References: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com> X-Mailer: Apple Mail (2.3445.9.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 19:05:28 -0000 [Resent from the right account. I wish I could remove the prior send.] On 2018-Aug-11, at 11:09 AM, Dimitry Andric wrote: >=20 > On 11 Aug 2018, at 19:31, Warner Losh wrote: >>=20 >> On Sat, Aug 11, 2018, 10:20 AM Dimitry Andric = wrote: >> On 11 Aug 2018, at 16:55, Warner Losh wrote: >>>=20 >>> It looks like armv5 clang bogusly uses lld: >>>=20 >>> =46rom a 'make buildkernel' of the RT1310 kernel config: >>>=20 >>> cc -target arm-gnueabi-freebsd12.0 > ... >>> ld: warning: lld uses extended branch encoding, no object with = architecture >>> supporting feature detected. >>> ld: warning: lld may use movt/movw, no object with architecture = supporting >>> feature detected. > ... Did the build get either of the below notices? Both? make[1]: "/usr/src/Makefile.inc1" line 341: SYSTEM_COMPILER: Determined = that CC=3Dcc matches the source tree. Not bootstrapping a = cross-compiler. make[1]: "/usr/src/Makefile.inc1" line 346: SYSTEM_LINKER: Determined = that LD=3Dld matches the source tree. Not bootstrapping a cross-linker. ? (The example text was taken from an amd64 -> aarch64 cross build.) >> Host is amd64. Target is arm. No src.conf. Did a full buildworld = TARGET=3Darm a few days ago. /usr/bin/ld is lld. >=20 > Okay, so in the above "cc" command, can you somehow figure out which = cc > executable it is using? And please add a -v to the "linking = kernel.full" > command line, so it shows exactly which linker it runs? >=20 > I have the idea that it is preferring your /usr/bin/ld over > ${WORLDTMP}/usr/bin/ld... =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)