From owner-freebsd-toolchain@freebsd.org Sat Sep 22 03:34:25 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 7BEAA10AF447 for ; Sat, 22 Sep 2018 03:34:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x12c.google.com (mail-it1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) (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 04E8D7E333 for ; Sat, 22 Sep 2018 03:34:25 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x12c.google.com with SMTP id e14-v6so4392437itf.1 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=CwuCmYdb+/8RA8dJkqQ5cwDqArTFDEF6TRQL8sS7ogjyZMFeSc9eOf4WqaD0tZBAam kOp6NB6eZ4SAuy5HKRQkYbBovAl4OaYd4J0A6UbYrUDSxn54XhIGJq1YyM+z62DjrXma 5qZnJ9PM2/3hoNvVamm6aD2vUx2HIyN8r0+M3tPmLrAs1xy78WYtTHvihUxPI7hwj2QO g4gqOq20gKwWxl28/EzVDnbWdK0aCYVUh61siiR8ui1SIk9Qvk25BzF32Ko1/AbvGEV8 4iR86Q8GIfFNWvrdmZ2AnDg7LgQg1DZzkRWhuEdyqkIhmFvRqmhKHhbaiD9V9jTtaPci bKnQ== X-Gm-Message-State: APzg51AwIvlTrQwFuRGuW3Ej79aMpCtP0p59yjHre00Bm8p0MvxiXAOr 0AePkHj0rc0xYWcX5RLIbILyvNP8Ix9b5PzYzmG3Fg== 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-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: 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