Date: Wed, 16 May 2018 07:22:42 -0600 From: Warner Losh <imp@bsdimp.com> To: Hans Petter Selasky <hps@selasky.org> Cc: Emeric POUPON <emeric.poupon@stormshield.eu>, Oliver Pinter <oliver.pinter@hardenedbsd.org>, freebsd-arch <freebsd-arch@freebsd.org> Subject: Re: Can't build kernel anymore: amd64 kernel requires linker ifunc support Message-ID: <CANCZdfq_V7CO8v%2BjXu0hQG1-k3-7a%2BjPK_abDoe_9V3p4Lk8DA@mail.gmail.com> In-Reply-To: <115a98db-8cb0-93e9-8f4f-1080ea79ae73@selasky.org> References: <1427128516.12874490.1526456240718.JavaMail.zimbra@stormshield.eu> <CAPQ4fftBd1YQ0_VGk5iRPAYA11fGbajYZ4-3t=RSrW1tOKzftw@mail.gmail.com> <793855837.12916849.1526461655128.JavaMail.zimbra@stormshield.eu> <CAPQ4ffspTD1Y5Bw%2B%2BOKSErzAsp0NWybG6bLPGiTA2MOdCWcyPg@mail.gmail.com> <470629758.12930429.1526463753682.JavaMail.zimbra@stormshield.eu> <115a98db-8cb0-93e9-8f4f-1080ea79ae73@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 16, 2018 at 3:49 AM, Hans Petter Selasky <hps@selasky.org> 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. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq_V7CO8v%2BjXu0hQG1-k3-7a%2BjPK_abDoe_9V3p4Lk8DA>