From owner-freebsd-current@freebsd.org Mon Sep 24 14:36:36 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 EC9F110ADDAD for ; Mon, 24 Sep 2018 14:36:35 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 86F92834E8 for ; Mon, 24 Sep 2018 14:36:35 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io1-xd36.google.com with SMTP id y3-v6so17766084ioc.5 for ; Mon, 24 Sep 2018 07:36:35 -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=v/P8YsapWenwQ3CtIM0mk7tuxKOjP0yDvdqxBmyWWcg=; b=odQJitBg1LVngAenKrojwP2sn1ThDUwODQPaLvlcE86EJ3ZvvFFAryGcjL6dXW/PwT 9lAmu4dITZaVYjqeDCGZCUOMQ6q+36fj5uIPIGcxGoWF0CPeIe+IBQGVLceatAAaj1jy Ul6hm2PvG3PVYGDmQk79r6P5DXaLcqG1/x9tqFwRnmn36qCRripZrcU/1zHfgesHR55c fs226sHELckL3mWw0nrkf4c1I4Y1j5HJKrnubJiriEU6mUPd6wCNgHssNTmBtLhM6rL9 0gQRJCDN5b3U9jTOY0nYaNvbK3bafGMcHXQPcZTm0PO233nmQKrKYgfQ9q649MruTaHV M5FQ== 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=v/P8YsapWenwQ3CtIM0mk7tuxKOjP0yDvdqxBmyWWcg=; b=Hw+Fvyczr0vqUbua8l/d63TbfSq1S3W1xtILtnvaY8+w/nwvh0G3Q0f5jwnkAHizey p5x52hNtMyzeNHGTaCRzvtClsmP/Xt/7y/SKDIoA5V9E3F4xVAZzGos93lXQo7Kcn3zc MgCguS2UuPYs8CIOKv4sIvIysyvbmjDcDoORw2bqZ12bL/giLO/ppGupCwHm6Qr/rPlv Ji4B131DmdjOqPzqebmVYzeOFqRQR04I0KULj78DJQVU8mNrGSzFSQW5PwZ0HY5UN/Ps U5rtU2Ox+GvIjWRBOKzHIzqq47zDQIiqy1b2j7Ml1fMo4LfIGppD++kjZ4TutuCU3//L NWlw== X-Gm-Message-State: ABuFfohm9+Cm27duEBus7rSgxmzO02BqECa5mJVH3viZYo+vB53v0cA3 cKgCHjQdrQtdKLo68VyYGgI8srz2DXWbZZBw55W7kg== X-Google-Smtp-Source: ACcGV61SnM8Pcr6PPB3PFXUEWxZ/wBCHi47YQWnVx3Uoe8VpnQNlQ/DMhepSqOLNv+mL3jWVgs6LU6Pk9i2409bGcww= X-Received: by 2002:a6b:fe09:: with SMTP id x9-v6mr7217969ioh.294.1537799794802; Mon, 24 Sep 2018 07:36:34 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 2002:a6b:fd15:0:0:0:0:0 with HTTP; Mon, 24 Sep 2018 07:36:14 -0700 (PDT) In-Reply-To: <20180923181818.7f3cb925@mscad14> References: <20180923181818.7f3cb925@mscad14> From: Ed Maste Date: Mon, 24 Sep 2018 10:36:14 -0400 X-Google-Sender-Auth: nUFN5YBNf8M0bjHea7AzCCJopVQ 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: Mon, 24 Sep 2018 14:36:36 -0000 On 23 September 2018 at 21:18, wrote: > > Howdy! > > Since a couple months ago, the world on -CURRENT cannot be built using > the normal procedure: > time env LD=ld.lld make -j6 buildworld buildkernel The normal procedure shouldn't need any LD= overrides; is there something unique in your build? Any src.conf settings? > Here's the result: > [late in buildowrld process] > --- all_subdir_stand --- > /usr/obj/usr/src/amd64.amd64/tmp/usr/bin/ld: unrecognized option '--no-rosegment' > /usr/obj/usr/src/amd64.amd64/tmp/usr/bin/ld: use the --help option for usage information > cc: error: linker command failed with exit code 1 (use -v to see invocation) > make[5]: stopped in /usr/src/stand/i386/mbr > > Workaround is to use linker from binutils: > env LD=/usr/local/bin/ld make buildworld Just overriding LD isn't sufficient to choose a linker, because most linking is performed by the compiler driver (i.e., cc) which does not use the LD variable.