From owner-freebsd-arch@freebsd.org Wed May 16 13:43:22 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 3DB6CEE33AB for ; Wed, 16 May 2018 13:43:22 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C1E6E69509 for ; Wed, 16 May 2018 13:43:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x243.google.com with SMTP id p3-v6so1971859itc.0 for ; Wed, 16 May 2018 06:43:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=lOkfg4sTz/GWj/GhcIOzyqmVV3jdU85rN2I34dL2Pgg=; b=URFxnAbxS3ShaICEvw8oNosHoxxv7UjMXhAHrpzXd32rwaae6Wp721zs5JsLHYOrgj h92AJMhfoG5TwoFNQ0K0Ylcvh3gEOL3rlSyvJOPr0CSrwAEq4qgaOnZvUEZiXDZLNGbB 3nP59g7avX+Vl2rZ8T9JutCbLRBtX4fsQnS1wA27KKPTpwVM0dLb9gG+u7mVjeAOFihs dhU5k+BTstGYs+F86s9jD3lho6EhKvyyqRCVTPgTMjizckOXLwq2COjF2ES3PeBK5Qyr 0FVM7ri70uE9jRa+J2deDzNUIHqyaZnH4DdA0088SwAp+MOqNXZSQLvqN/sRhUuFoJsF F7Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=lOkfg4sTz/GWj/GhcIOzyqmVV3jdU85rN2I34dL2Pgg=; b=a+fLefkoGOgwkypKrTuhg8X0j7epTXe5Uyd7TVTWJTmBV05R7eGWKLVvMT7gzP0dQI qDPaSfVZfDBUgorvxbfvuS/mEEZPkAvklYjhMMi6ht3MGd6aneEG4CN+jjbe2Z7c6gWn QJH4xj31rSUwGFWSyLhU+vuEyTlAIM3uVM4pmAOMeRRX7S+W9KCopuMuXCOgyR3OSNEO i3t3Cncwp3mI0JAkiM93GZXVyW+JrOOlit2nqgEdb69xziCX2r5uhCfYTcg+j0onPI2s R8hJNaYhgcCLfJYbT2sFuB+QCm0T1AILso78L9VzO7DHstaXaEQ929ijJkkUI0PjSIaR 9rTg== X-Gm-Message-State: ALKqPwfuoUCzTBAXHKukMuov33hMvr4Li8vKcjAzov82j7kuVOQo0scj EC4hRo2uzyCjj32ms+62ugoqobON/1yHIDgKx6vMjQ== X-Google-Smtp-Source: AB8JxZqd7dQiZiNAPviP0numtOGUsj+L6GeEWI5qbr5UmshCiEfZSp8O9BT6R+Qf7OUxqViKrRmN2aCXcb2H73fSnGY= X-Received: by 2002:a6b:be01:: with SMTP id o1-v6mr989880iof.299.1526478200853; Wed, 16 May 2018 06:43:20 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:a649:0:0:0:0:0 with HTTP; Wed, 16 May 2018 06:43:18 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <201805161335.w4GDZvSM000645@pdx.rh.CN85.dnsmgr.net> References: <201805161335.w4GDZvSM000645@pdx.rh.CN85.dnsmgr.net> From: Warner Losh Date: Wed, 16 May 2018 07:43:18 -0600 X-Google-Sender-Auth: JtiirrviErtNqkGMIx0bHqxZtFE Message-ID: Subject: Re: Can't build kernel anymore: amd64 kernel requires linker ifunc support To: "Rodney W. Grimes" Cc: Hans Petter Selasky , Emeric POUPON , Oliver Pinter , freebsd-arch Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 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 13:43:22 -0000 On Wed, May 16, 2018 at 7:35 AM, Rodney W. Grimes < freebsd-rwg@pdx.rh.cn85.dnsmgr.net> wrote: > > 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? > No. It's a transient requirement that will be gone shortly when Ed does the next step of lld integration. Wanrer