From owner-freebsd-current@freebsd.org Sat Sep 22 03:34:25 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 7991110AF446 for ; Sat, 22 Sep 2018 03:34:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x132.google.com (mail-it1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) (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 058CA7E334 for ; Sat, 22 Sep 2018 03:34:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x132.google.com with SMTP id p79-v6so4392249itp.3 for ; Fri, 21 Sep 2018 20:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TxfUbbwf3tCPr5N83UPGqNMUvSxqnN6g8D0r3AEKsPc=; b=tDBZRDIXKUoy3fJV3cQYR0S8MukGBjP2XOVsPyv7zCMYWnE2rCCejJc3r8BKOfSNou BKttq4/ZBYfZ5V2M+24T95oz5EX1myl8J0rnm1iQ/1/C9O01kDLWpU2qCtwzyo0TN/Qr 4gCqiS9cH72Ayx1OO/7q93PgFXqy+o1E4iVc28oA7RO7q378t/fq74apdKowOt35iAO9 3+WVuJ+kAqeJIkzS9LS35+BEZurg+DtAObChmHAXcSeGSlRzsdjSTN3CUPAgq0Uop578 3uBnsbfNFO53VAzEvYezuuHYnIO7aDNekLaLG0ITk1riAmYe9PWKDaxUNO+Vcw6cmnuc QZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TxfUbbwf3tCPr5N83UPGqNMUvSxqnN6g8D0r3AEKsPc=; b=LHDai+TZz8Ozj8aLYe1gBWvhxp4VtPcGTa3SYAMGwRmmaO0UUJg7GJdG7KWG5UTq8w BQxc/SjJsXieWS9KSrItCFyvntHAdP621gXdlt49Otcmu5BUs3E+DYQoshZZLTS3cyGD t53xScNRN/I2cV8zqwEZ2pCpXAQ8TIq6jHiIKuLFgCanfU7rm23ZKEmWU5PtFzSAZcmr 2vPVESLoYP8OSM6wI/B+HZuEcO2tXnp+QUMOTu+T3CatxDgl4ErM6gqtsjpDIYOH5jWq aMdmv+VnNZ8v9fWEUyIDNircNSqgtmyXY8FkXvzH7qrAzIGM4Vo6POgwQ9Ro9wmy8KSF t50A== X-Gm-Message-State: APzg51D6P5C1sgN7jYx2K/HE+dTQ79RxPru27CfXYE5EBwDRQbVlwQzF eGezNZn3MLB+Lrr9v3ToIgZqgfuYPhbEOG614i7l3w== X-Google-Smtp-Source: ANB0VdZ6/3KOaAQ7gsFE2f597RX9azbec7XLhsXdpa+ThNj0oze+IzTFh7qBfVp7F3faMKaEVmLHWqmvEHkiYL4Q8RA= X-Received: by 2002:a02:59cc:: with SMTP id v73-v6mr536313jad.5.1537587264157; Fri, 21 Sep 2018 20:34:24 -0700 (PDT) MIME-Version: 1.0 References: <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <20180921193139.GB5120@raichu> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> In-Reply-To: <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org> From: Warner Losh Date: Fri, 21 Sep 2018 21:34:13 -0600 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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: Sat, 22 Sep 2018 03:34:25 -0000 On Fri, Sep 21, 2018 at 9:30 PM Rebecca Cran wrote: > On 9/21/18 9:09 PM, Warner Losh wrote: > > > On Fri, Sep 21, 2018 at 9:02 PM Rebecca Cran via freebsd-toolchain < > > freebsd-toolchain@freebsd.org> wrote: > > > >> On 9/21/18 4:06 PM, Mark Johnston wrote: > >>> https://reviews.freebsd.org/D17279 for anyone else that would like to > >>> review. > >> > >> Is that possibly related to the error I'm getting trying to build > >> -CURRENT on 11.2? > >> > >> > >> make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: > >> amd64 libc requires linker ifunc support > >> > > Yea, that should absolutely work. If it doesn't, that's a big big > problem. > > > I see, it was introduced earlier today in lib/libc/Makefile: > > > commit ef8030831eccec4e481a1766fc1c67f7cadadac9 > Author: emaste > Date: Fri Sep 21 17:49:37 2018 +0000 > > libc: require ifunc-capable linker for amd64/i386 > > We expect to introduce optimized libc routines in the near future, > which requires use of a linker that supports ifuncs. > > Approved by: re (gjb, kib) > Sponsored by: The FreeBSD Foundation > > > And /usr/bin/ld -v on my 11.2 system says: > > > GNU ld 2.17.50 [FreeBSD] 2007-07-03 > What does ld.lld say? However, it shouldn't matter: we don't build libc until *AFTER* we build ld.lld, so this error is bogusly triggering. I suspect that it needs to be limited to only building targets, since tree traversal ones, as well as install targets don't have this dependency. Warner