Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 21:34:13 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        rebecca@bluestop.org
Cc:        Mark Johnston <markj@freebsd.org>, Ed Maste <emaste@freebsd.org>,  FreeBSD Current <freebsd-current@freebsd.org>,  "freebsd-toolchain@FreeBSD.org" <freebsd-toolchain@freebsd.org>
Subject:   Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored
Message-ID:  <CANCZdfrRNqHMrCdYuDgs=cLJfm11BVv8d-=D_c1s5jp1tz8ZKQ@mail.gmail.com>
In-Reply-To: <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org>
References:  <2E7136DD-9C25-44C1-8C9A-310C2D1D7189@yahoo.com> <CAPyFy2BHUocGh-H8xfmdQXTTX_Qvoi50xKzoTGco8Cn9FfGcyQ@mail.gmail.com> <20180921193139.GB5120@raichu> <CAPyFy2DTw-LGXUVCP2W0MOW0bXWe2An18Y-Uy-U6X40UJCiy6w@mail.gmail.com> <20180921220639.GF5120@raichu> <83c3a1bd-6922-20d1-4559-26bca1995229@bluestop.org> <CANCZdfrAZkz-6RwG8N_iMt4OOxaBFRpdLCo4h7q2KnLrb_A%2BPg@mail.gmail.com> <33ea78c3-7954-d30e-4f40-dcada55e7367@bluestop.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 21, 2018 at 9:30 PM Rebecca Cran <rebecca@bluestop.org> 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 <emaste@FreeBSD.org>
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrRNqHMrCdYuDgs=cLJfm11BVv8d-=D_c1s5jp1tz8ZKQ>