Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Sep 2018 21:57:44 -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:  <CANCZdfqwq%2BjbBJnRNF=ef1iGVoNFux=Vptf3HSdNTGVD7DPzKg@mail.gmail.com>
In-Reply-To: <74775769-6810-63ab-d776-013bc72c8488@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> <CANCZdfrRNqHMrCdYuDgs=cLJfm11BVv8d-=D_c1s5jp1tz8ZKQ@mail.gmail.com> <CANCZdfqda%2B=MkzKc%2BhF0_1NZG90kTzxZuC5uJUE5qaDEW7szgA@mail.gmail.com> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hmmm, what does make -V LINKER_TYPE and make -V LINKER_FEATURES say?

They look good for me, but the only way you get this error is if they are
wrong.

Although from your typescript, I see:

===> lib/libc (cleandir)
make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26:
amd64 libc requires linker ifunc support

which tells me that we need to exclude all the non-build targets from this
check.... This will use the HOST linker rather than the TARGET linker.

So something like:

diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index a1ce123c0f33..11575e1cabff 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -21,10 +21,12 @@ LIBC_ARCH=${MACHINE_ARCH}
 LIBC_ARCH=${MACHINE_CPUARCH}
 .endif

+.if build(all)
 .if (${LIBC_ARCH} == amd64 || ${LIBC_ARCH} == i386) && \
     defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == ""
 .error ${LIBC_ARCH} libc requires linker ifunc support
 .endif
+.endif

 # All library objects contain FreeBSD revision strings by default; they
may be
 # excluded as a space-saving measure.  To produce a library that does

may be needed, but the problem may be related to caching these values from
the host as well, even though we rebuild them...

Warner

On Fri, Sep 21, 2018 at 9:38 PM Rebecca Cran <rebecca@bluestop.org> wrote:

> On 9/21/18 9:35 PM, Warner Losh wrote:
> >
> > 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.
>
>
> I've uploaded the full 'buildworld' output to
> https://bluestop.org/files/typescript.txt .
>
>
> --
>
> Rebecca
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqwq%2BjbBJnRNF=ef1iGVoNFux=Vptf3HSdNTGVD7DPzKg>