From owner-freebsd-current@freebsd.org Tue Sep 25 13:03:14 2018 Return-Path: Delivered-To: freebsd-current@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 566D610B191E for ; Tue, 25 Sep 2018 13:03:14 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it1-x134.google.com (mail-it1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (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 E2A7E70E4C for ; Tue, 25 Sep 2018 13:03:13 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it1-x134.google.com with SMTP id w200-v6so6849597itc.4 for ; Tue, 25 Sep 2018 06:03:13 -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=oG/uWL0DgGh6nxYHnTvZJt02Y7Poi4BxxWfSqdjsz20=; b=FoXrmKKmbmLjWt6dgQ11rid1+5csboN+ECAaEljRW9Ba3jjucsqPyWW3opNcPRC7Sj 6sPGEPa9tn8tAaaLcwywYdHO2MeOYzNfO6y/oa/N27t0hAj6FOUEd1r1f+dCFo24YHhG /wSkS7E6tIkQ7p/pjmh7FDrntnUuaJyVI5PDFPbeq9U5y+hkmbaIAietEkqwEn8KC1rL +904Cxujh44DnsRIRGQkjLfXaVklZdwqi5gyzvJ1Fj9z/nkSXHd86GBGg7CcopA9F1GH r3zN458vW7/r6h5DnGAO/m+kYLQmzSvT2Fe6F687GVygCzDJw45G2rBSYDN7dDqI/Tse 1yOA== 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=oG/uWL0DgGh6nxYHnTvZJt02Y7Poi4BxxWfSqdjsz20=; b=UggVbTML8pY9lPv3L+FEPaZ5HNNC8GLWlEeamcVk56hzBtUoi0TaBcQfrzJWQZf1Xu M+1xzkWG9BuWzSGNFChXSitqSCscEp7s/SCc+93U6ruM9OYn6POPU7axQv7faXde5hlz d8+g9/ybaKgeh3xahTmHqKmxayfWYaGkXRcoakRhSXNxTCcZm7zEXtOeIV2uOtVyAlWA FBfoWCfdG7CtkCln6LvUHI+nl+EKpUSBwwck27P+Q9mae3XC24cURWY3zIPQhbDjYhUy hFT95VSF7bgUCLHBM+8eL7xlUscQGgt+f7tgsbt2UXOVsKIgeweCpJ4vcKZ4bNulgfp3 15Hg== X-Gm-Message-State: ABuFfoiykqnz+rRW2GRqTh1g/ppHlf7N/aF0l4+TdCA6PsqA7cItXSuP 46Fw/9MVqEFbFds+lnxXxFh/7cYhJUmzjV3MoNxXt8Sn X-Google-Smtp-Source: ACcGV63vYkiKnbp4xnkIEULhhw+x7Ktettx6RlIL/d0w718MownPqzgmj2iBr9nuBq3v32jZruNQnricmxS1Hc9Giks= X-Received: by 2002:a24:728f:: with SMTP id x137-v6mr566584itc.40.1537880589475; Tue, 25 Sep 2018 06:03:09 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 2002:a5e:d505:0:0:0:0:0 with HTTP; Tue, 25 Sep 2018 06:02:48 -0700 (PDT) In-Reply-To: <20180924235555.759b418d@mscad14> References: <20180923181818.7f3cb925@mscad14> <20180924235555.759b418d@mscad14> From: Ed Maste Date: Tue, 25 Sep 2018 09:02:48 -0400 X-Google-Sender-Auth: 2PKBdCgQjCo7QPlLgInU570vZXo Message-ID: Subject: Re: Buildowrld tries to use old ld, and fails To: soralx@cydem.org Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2018 13:03:14 -0000 On 25 September 2018 at 02:55, wrote: > >> The normal procedure shouldn't need any LD= overrides; is there >> something unique in your build? Any src.conf settings? > > Indeed, I had "WITHOUT_LLD_BOOTSTRAP=yes" in src.conf. Not sure how > that line made it into this file on a number of my systems... perhaps > an artifact of old -CURRENT upgrade procedure that I've forgotten about. Glad to hear it's resolved now. > I was just following a note 20180510 from UPDATING. It worked before. > And there are no newer entries overruling the old note, so I thought > it should still work as before... Ah, indeed. In addition to that note now being obsolete (and no superseding note) there's another issue: the LD= suggestion applied only to buildkernel (but perhaps was not sufficiently clear). > Strange that overriding LD works when pointing to ld from binutils, but > not always with ld.lld linker; for example, 'stand/i386/mbr/' ignores > "LD=ld.lld", but not "LD=/usr/local/bin/ld". This is a side effect of the linker feature detection. What's happening here is that when lld is detected the build adds the -no-rosegment flag, so when LD=ld.lld is in use the flag is added, then the linker invoked from the compiler driver doesn't handle the flag. When LD=/usr/local/bin/ld the flag is not added at all. I will see about an update for UPDATING.