From owner-freebsd-arch@freebsd.org Wed May 16 14:04:35 2018 Return-Path: Delivered-To: freebsd-arch@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 B9D88EE476E for ; Wed, 16 May 2018 14:04:35 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F3476A4E6 for ; Wed, 16 May 2018 14:04:34 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w4GDZvSq000646; Wed, 16 May 2018 06:35:57 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w4GDZvSM000645; Wed, 16 May 2018 06:35:57 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201805161335.w4GDZvSM000645@pdx.rh.CN85.dnsmgr.net> Subject: Re: Can't build kernel anymore: amd64 kernel requires linker ifunc support In-Reply-To: To: Warner Losh Date: Wed, 16 May 2018 06:35:57 -0700 (PDT) CC: Hans Petter Selasky , Emeric POUPON , Oliver Pinter , freebsd-arch X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2018 14:04:35 -0000 > On Wed, May 16, 2018 at 3:49 AM, Hans Petter Selasky > wrote: > > > On 05/16/18 11:42, Emeric POUPON wrote: > > > >> > >> Thanks for your help. > >>>> > >>>> Actually, I already did all the steps described here: > >>>> https://www.freebsd.org/doc/handbook/makeworld.html with success. > >>>> After step 10, I now get this error. > >>>> I tried to put WITHOUT_LLD_BOOTSTRAP=yes in /etc/src.conf + rebuild > >>>> everything with no luck. > >>>> > >>>> > >>>> Please remove this line from your src.conf, lld is required for building > >>> kernel since the ifunc support. > >>> > >>> > >> I already did all the steps of the handbook without this line, and I > >> finally had the issue I described. > >> What I told is that adding this line + make buildworld does not solve the > >> kernel building issue. > >> > > > > Try adding: > > > > -m $PWD/share/mk > > > > After make. > > > > Not sure if it helps. > > > LD=ld.lld make > > is the magic here. The kernel needs a new linker to properly link in the > ifunc, and that's not our ancient ld. lld does it, as does the latter-day > binutils. Since this now seems to be a mandatory thing to get a kernel built can it please be set in the Makefile that is needing it? -- Rod Grimes rgrimes@freebsd.org