From owner-freebsd-toolchain@freebsd.org Mon Aug 20 00:12:33 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 90F64107CD87 for ; Mon, 20 Aug 2018 00:12:33 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x242.google.com (mail-io0-x242.google.com [IPv6:2607:f8b0:4001:c06::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2492070FE7; Mon, 20 Aug 2018 00:12:33 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x242.google.com with SMTP id l14-v6so11195776iob.7; Sun, 19 Aug 2018 17:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2PiJ9b9WKfCFh9lcmi3kig7psyitZhI1mk0n2YRHE7I=; b=e8VJoRu2r0KFd0AzipRQGXX+/l1xszATtGuLlU50RoyM20jSqy1cK+HFCkHJcdksRW 2HIG2hJIEKtcZDA0Mv+Ehtv4WiJlelOhD9DoI6BdUzFFitjhsK5yp9yQLgILLQWTPU3d pZvhqJbFjcPwENarEfNUyFdU26Z0mLFvvNIE+5IyPjaWnvMJ6WOpsKn2oohfe2fktxH7 6Q7ljlZ/LXUdw7agCPRIwVW1YtGJBW9wSPRsQqm803MKpqpGcqTO60bzdQSF1s8Ewzdy 56FpvbeL/RoDvQAW2cjZYHqNTSqLTBCddVB/x7JLrSqUUTUiVjG8MAF0CBeumoM2z3LV w5gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2PiJ9b9WKfCFh9lcmi3kig7psyitZhI1mk0n2YRHE7I=; b=V4A0a0NmORAJ/dEObnD8XSVAIH28JrwnPLlhCr/COKcmu6m/VFTuf+8GqqqLJ/cHUy F3F6Mkw7A2U/DTGCS234lysDkPuaAri5FwPB8lOFzP3Luvz+egdIsCZjXN12T/g99q2i k6KirE/xg774ZeztTNhL9BWRrTkSTAHggVpwgTHbbebiQAjCN/ic1ES/2Ks1dfBKylXc qrPNN/BrEWYOdwi1tQENB5oQdAQpyywEkYLGwds2ESy3RLUX3qi3a1lbpg55o3iyvlxc mpHqjpx+7OMqW9F7v01mhbn7dJMDCoRHrgWt+5Yv5ePf24gCxt4zfPTtcjg1RyGLVaKa xIyA== X-Gm-Message-State: AOUpUlEqZLaDFx9/m4g5cDJ6F+nmJFJNfIbLynQ+Hc2MMzTmqlrTs/HN +8xLePzy9fxL0vloGWNjlmKw6CO5qXeLAPDrnk3Trg== X-Google-Smtp-Source: AA+uWPwhPxmmGdmZrf1QWg/OqJGUzdNSRnZkKsDvpe5K5mk0SDZ6QqhDPvdfqKFcPPV7APx2iUjc0veQvhIt7BsvyCA= X-Received: by 2002:a6b:ac45:: with SMTP id v66-v6mr34066579ioe.66.1534723952467; Sun, 19 Aug 2018 17:12:32 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 2002:a6b:4a08:0:0:0:0:0 with HTTP; Sun, 19 Aug 2018 17:12:11 -0700 (PDT) In-Reply-To: References: <1880880F-9D9D-47E0-A7A4-5369A3770F89@FreeBSD.org> <8B467E75-A6D3-41A5-8EA1-4DDFE0E14CC5@nexustechnology.com> <230C1E7D-04DB-4E45-8A40-F6B2F5E557E9@yahoo.com> <86844298-1268-4F5E-A6CD-64CADC022FB9@yahoo.com> From: Ed Maste Date: Sun, 19 Aug 2018 20:12:11 -0400 X-Google-Sender-Auth: yQk88jUk-YMC0zNfsHSLQINvVHg Message-ID: Subject: Re: Broken arm support in clang now? To: Mark Millard Cc: Warner Losh , "freebsd-toolchain@FreeBSD.org" , Dimitry Andric Content-Type: text/plain; charset="UTF-8" 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: Mon, 20 Aug 2018 00:12:33 -0000 On 16 August 2018 at 10:49, Mark Millard wrote: > > Ahh. Okay. 32-bit non-armv7+ cannot be fully llvm based. > Intersting. Indeed; there are a couple of patches in review upstream to address the outstanding issues involved with using lld to link armv5/armv6. > The implication would be that ld was then directly > invoked instead of via cc (clang). Yes, the issue I encountered appears to be a bug in recent logic that shares a single clang and lld for multiple architectures in "make tinderbox." It's directly invoking a newly-built lld. The other issue observed with lld errors from linking arm or armv6 appears to be due to a failure to execute "make buildworld" or "make kernel-toolchain" before "make buildkernel." In this case the build invokes the host's system linker (ld). Previously on amd64 this was the GNU BFD ld, not a cross-linker, and this resulted in an error. Now that amd64's system ld is lld it's inherently a cross linker.