From owner-freebsd-toolchain@freebsd.org Thu Aug 16 14:14:41 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 0F85310676EA for ; Thu, 16 Aug 2018 14:14:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-11.consmr.mail.ne1.yahoo.com (sonic307-11.consmr.mail.ne1.yahoo.com [66.163.190.34]) (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 982B084870 for ; Thu, 16 Aug 2018 14:14:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: rJuwjaUVM1kckP5SJ9oP_DR2w76hK1HJt8wdqelYUu3FT6dD.BXaKaYmckwepNK e1p_iV65ADmCIHhQsNCELwHzl3YZEFGOZXLyGorLS4GwFkMGgoAOtPAv6vfgVza7Z71X7ShKBnug 4AJk7w.uyvVtqnIx3GgDwjiPRk5eEK2HL4QOxWm5VzUZLZ_x8QdenKZ_qGDE6PSWxeHbwH0A5Xr3 oKlRCALbqenVQdoO3KqOqJpFUMXRKJuWfkdEXFUlwVLffGFYivk98kfIWIWpIg4vceia.O.6X5DR Gh9McNKxW.1HEuQUjqKZ1_Qzo2a9jE3UuhGqxYkrKC3HIY7Crx2mR7ABmRYiGzgMgzuWyDhj9xK5 KY2V8gNJ1CKL.vpJBv0_NaaN5wkyCYgXQFczT9E.qjm7wg_cfzJsaOpjWEP1GnpsXGi9UFbiXx8i 3uG__.zMeFPY3FAdqDkd6azsKE4l4Mo.KakZ0Ago9gZC147sjGiVMsyRsQ.E9jcZXWtJpQrqdt3F eDdptPpU92XdQ6VViVCE.o58mfQNMfEQVfGND9M.klceHH3sSWn62XAfOaVPM4Mr3ugrzcTHytIe GVgK2d2mzJijPzAejAaw3GV4Q3SZuqNXs5JxzHJvgzf2xHa12BXd4X1C9NW8Lf6lUPbRbuDFO5ey zUnMMfApY16jrrKQOb0dVeKve.ykN9KD2Am4YVAqx1C8KM6u1qa3Hv2iJjL1T8Aq3EbZ7UWEkV8B dJtff6qxnp4xJ_ctzkgG7o54zQr4WW.FjlbdyOhcFGc99Hza5yJW0QcybFXJkTVj0PvQHHboXJti C_IueQFLA7HHRJH2ua8TaakrlWgt6N_mEuHHsGZZsHd5xPhuPyvtGQ2IcokvpyBeTgcfyaz8VhlT szkmSMH_NrOfKo.Pbg9L58TiO8hlnRZXzpo48voUR8sR1q4gpKKfcbefsCy9yp2H5R3OtDMJCHJL HujRgEbDUBsXeA5wtZ7AhKZdSft.a_G454C7hY4r8Jp5jfGJEdltM_BKBwndkqPge1XsLbmP_gjI 1FXbfJn4- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 16 Aug 2018 14:14:33 +0000 Received: from ip70-189-131-151.lv.lv.cox.net (EHLO [192.168.0.105]) ([70.189.131.151]) by smtp402.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c6cfe08495dc118317c568ebaf4f64bf; Thu, 16 Aug 2018 14:14:30 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Broken arm support in clang now? From: Mark Millard In-Reply-To: Date: Thu, 16 Aug 2018 07:14:28 -0700 Cc: Warner Losh , "freebsd-toolchain@FreeBSD.org" , Dimitry Andric Content-Transfer-Encoding: quoted-printable Message-Id: <86844298-1268-4F5E-A6CD-64CADC022FB9@yahoo.com> References: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com> <230C1E7D-04DB-4E45-8A40-F6B2F5E557E9@yahoo.com> To: Ed Maste X-Mailer: Apple Mail (2.3445.9.1) 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: Thu, 16 Aug 2018 14:14:41 -0000 On 2018-Aug-16, at 6:38 AM, Ed Maste wrote: > On 11 August 2018 at 20:45, Mark Millard via freebsd-toolchain > wrote: >>=20 >> Is the link command itself available? (The .../sys/*/kernel.full.meta >> likely has it if it is still around.) >=20 > I tried a tinderbox build right now and saw the lld warnings from > linking zfs.ko. It appears to be fallout from the change to build > clang and lld only once for tinderbox, because we're invoking ld from > the ${HOST_TARGET} path: >=20 > = /scratch/tmp/emaste/obj/scratch/tmp/emaste/freebsd/freebsd11-amd64/tmp/usr= /bin/ld > -m armelf_fbsd -Bshareable -znotext -d -warn-common --build-id=3Dsha1 > -o zfs.ko.full zfs.kld > = /scratch/tmp/emaste/obj/scratch/tmp/emaste/freebsd/freebsd11-amd64/tmp/usr= /bin/ld: > warning: lld uses extended branch encoding, no object with > architecture supporting feature detected. > = /scratch/tmp/emaste/obj/scratch/tmp/emaste/freebsd/freebsd11-amd64/tmp/usr= /bin/ld: > warning: lld may use movt/movw, no object with architecture supporting > feature detected. So ld.lld is not a valid cross linker for some arm variants? A architecture specific bootstrap one is needed? Is this because armelf_fbsd is not specific enough to identify the accurate target emulation? Is it because the .o's are not sufficient for that identification? Note: I got the questions from reading the output in: # ld.lld=20 ld.lld: error: no input files ld.lld: error: target emulation unknown: -m or at least one .o file = required So it appears that -m and/or .o's are used to identify targets. I'm not clear on the criteria when both are present. (ld.lld does not take -target as an argument.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)