From owner-freebsd-current@freebsd.org Sun Sep 23 11:36:13 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 8DC8610B34E2; Sun, 23 Sep 2018 11:36:13 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 08DB272EE1; Sun, 23 Sep 2018 11:36:12 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.9] (p57BB4914.dip0.t-ipconnect.de [87.187.73.20]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 038CA721E280D; Sun, 23 Sep 2018 13:36:09 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored From: Michael Tuexen In-Reply-To: Date: Sun, 23 Sep 2018 13:36:08 +0200 Cc: rebecca@bluestop.org, Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Transfer-Encoding: quoted-printable Message-Id: 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> <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> To: Warner Losh X-Mailer: Apple Mail (2.3445.9.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de 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: Sun, 23 Sep 2018 11:36:13 -0000 Resending from correct address... > On 22. Sep 2018, at 05:57, Warner Losh wrote: >=20 > Hmmm, what does make -V LINKER_TYPE and make -V LINKER_FEATURES say? >=20 > They look good for me, but the only way you get this error is if they = are > wrong. >=20 > Although from your typescript, I see: >=20 > =3D=3D=3D> lib/libc (cleandir) > make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line = 26: > amd64 libc requires linker ifunc support >=20 > 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. >=20 > So something like: >=20 > 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=3D${MACHINE_ARCH} > LIBC_ARCH=3D${MACHINE_CPUARCH} > .endif >=20 > +.if build(all) > .if (${LIBC_ARCH} =3D=3D amd64 || ${LIBC_ARCH} =3D=3D i386) && \ > defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} =3D=3D "" > .error ${LIBC_ARCH} libc requires linker ifunc support > .endif > +.endif Using this patch I was able to build/install world and kernel on an i386 = system. However, after removing it, I can't build world then. When trying to = compile a kernel "the old way" I end up with: tuexen@head:~/head/sys/i386/conf % config -g TCP WARNING: duplicate option `GEOM_PART_GPT' encountered. Kernel build directory is ../compile/TCP Don't forget to do ``make cleandepend && make depend'' tuexen@head:~/head/sys/i386/conf % cd ../compile/TCP/ tuexen@head:~/head/sys/i386/compile/TCP % make -j 6 make: "../../../conf/../../../conf/kern.pre.mk" line 126: amd64/i386 = kernel requires linker ifunc support This is r338893. amd64 works without any problem. So this is i386 specific. Any idea how = to fix it? Best regards Michael >=20 > # All library objects contain FreeBSD revision strings by default; = they > may be > # excluded as a space-saving measure. To produce a library that does >=20 > may be needed, but the problem may be related to caching these values = from > the host as well, even though we rebuild them... >=20 > Warner >=20 > On Fri, Sep 21, 2018 at 9:38 PM Rebecca Cran = wrote: >=20 >> On 9/21/18 9:35 PM, Warner Losh wrote: >>>=20 >>> 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... >>>=20 >>> My 11.2-stable system has 6.0.1, so I can't test from there. >>=20 >>=20 >> I've uploaded the full 'buildworld' output to >> https://bluestop.org/files/typescript.txt . >>=20 >>=20 >> -- >>=20 >> Rebecca >>=20 >>=20 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"