From owner-freebsd-current@freebsd.org Sat Sep 22 03:35:40 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 88AAD10AF515 for ; Sat, 22 Sep 2018 03:35:40 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it1-x130.google.com (mail-it1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 15D6C7E3FE for ; Sat, 22 Sep 2018 03:35:40 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it1-x130.google.com with SMTP id f14-v6so4393356ita.4 for ; Fri, 21 Sep 2018 20:35:40 -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=oLvxsvyJ8l2kYungGYkCQdf0/v4/WpnDqzIb7ZFY6pw=; b=a8VAhAFv+TAZLsCATF3AQQL14+KN02hanB2+676RzH1CZ/o96vkaz5xdOerHRlOhTZ wEYLdlasEht6RIVAtIZ8Jb08zQfhD57xaeoHvTlcGAlMfbPI4FQeZKgQIVZvWG8I15sf QsBX/irrQiHXty74D//fIrQiZEOJ3SkcJJPKclTsufX325n72Pvf8d/DF2HbPkUGg+Au gHJfMQcqSavDLVVYz6RSs1MFxexbkFky0VfSJ+13CNwXSFFLFeFssUoM+x/+cHDJKbrH qMCGkZDBSRBEaxnEyo7leDVnvnMEnwtLP/AGwNxhxxbVKenZqjMXvpddycCLj5sP4ydX vhVQ== 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=oLvxsvyJ8l2kYungGYkCQdf0/v4/WpnDqzIb7ZFY6pw=; b=bu1X/zH/6mfzYWr3mYdty/F9trjlpJWSkUW0H6/GWobryIUyOxPFJyz+07bmHYKlkm CbRSYmIRoevHzjJ4iYh5GEjwffp7RfcQL8Sb+9IYVox+2pRJuN/TkzO3e6WmbONx4eTa +QItjNs7AmhMYtjPU5GrsV2GcfIwhH6gUB29JKaqBR8gT5aMzN0WqfDSj2tCZHSm26RL gXPa6UXiOSnWIq5hOjRfKjWJk01PVe4V4LeLNMqW+o9g8Nw+py0gxqVXHwWoGU/wBAA1 9fFsI2pZMMg19newE4xdqDL7+YY7PiNav3PkVJhgjTIr9ZTWhfRjCXrgT5lWrNw5jK/K FoFg== X-Gm-Message-State: APzg51CqJjmYy3LG5oV/kAzIcEGBzUqyzeMOnT4EJLF5+93hkdNcv5rA 530/b9YknIbN+rFPk9+wSPyDoK8++nBIayym3nLIWA== X-Google-Smtp-Source: ANB0VdZC6cei0QiTAp/IDbWQ65JfxDR7a7ngCCauKHqAWAj8UZU998+cU+B3I2//ALzbUPvrWiSSDg9wrBVEPDeOWYo= X-Received: by 2002:a02:4306:: with SMTP id s6-v6mr525733jab.140.1537587339400; Fri, 21 Sep 2018 20:35:39 -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: From: Warner Losh Date: Fri, 21 Sep 2018 21:35:28 -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:35:40 -0000 On Fri, Sep 21, 2018 at 9:34 PM Warner Losh wrote: > > > 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. > I meant to add, can you give a few lines before the error is spewed here in email? My IRC computer died before I could see any answers there... My 11.2-stable system has 6.0.1, so I can't test from there. Warner