From owner-freebsd-arch@freebsd.org Wed May 16 13:22:44 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 A0CFAEE203E for ; Wed, 16 May 2018 13:22:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) (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 1AD50685B4 for ; Wed, 16 May 2018 13:22:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x244.google.com with SMTP id e20-v6so1822285itc.1 for ; Wed, 16 May 2018 06:22:44 -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=mKtu5V9L+q7BYS918pxZK49MvEJQi52WUb8H3a8lKN4=; b=J8IG52s9j7RludQicDf6tvBIP3FRrIVKbBjQBZ1vg7pe3SjMrRFvzKGvkuLV/10/fd yxPjDXoQyQHmvCvK3aC5Mckdx1cY/vYqvRWIQE03eGxrbAAzoaUKBS1a3CNgXI0xJ1Kn APYwlPebvdKIbagJ0dmk7wZanBAHZqlQucJ/ZQVD0e03X+x0MTzYd/cd6jns37BW/IKz 3WB4uZ2vwyqJVaxnVKDy9bPLtsMgmok2nKxRSjKYstvkLB+qXsY63Vu7obNGMtvo0oeF Ybf4RhDufK8Y9+Bs3rxmjswJxfcPZTHnvcTGhWL5Pl64M7fN+wggaw5L3tcV15io//7q 98RA== 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=mKtu5V9L+q7BYS918pxZK49MvEJQi52WUb8H3a8lKN4=; b=cNXwSmYVU7nKbkecVNJeIxk5Rtooex8RvEi23cHtoT06h5noMPOl8fc4bmGtkrOkZl rvbHc8haZTdeO7QBwPA+pZuUGChxAeaJQuDa1/TtzF0gatVwXal9sy0wD3iNDx6GEHMm Ju8tC3O/AEXsHgBq8H/ScoSWag2p+soPZVXBhhlM7c5qX8DR34sgqJmAVDQb+VC6MMGX yHEFdcJF0MPcVEByjQmdnI1MlzqSYQbLeZunpv0PWEBfXqX0mosWJRg2P6HN+UE0X+Od r1ovhgnZUFBI7z9Pfaa6dQ2S7QteDHhPCmygMiXggk0iRBa/8w1XprK3NTOcIXg5pmNm L1ng== X-Gm-Message-State: ALKqPwfespK+aT0KQ/+H6Q4RIIDN2C0K5H+nsHODCMioqQiokwxFuuII Q2uThqLf2Y+kPh6kl2gpNk/JtHkrSuUi4X8GjqKbWw== X-Google-Smtp-Source: AB8JxZr+70CgPj/5H+LQc0fS1MwjL5UI4h1dwsaBBsuKaD7sfmFcIGkpND4LcLlRFmFH2FNcUOA9LHpYxhI9KCgT4Yo= X-Received: by 2002:a6b:3846:: with SMTP id f67-v6mr955091ioa.117.1526476963350; Wed, 16 May 2018 06:22:43 -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:22:42 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <115a98db-8cb0-93e9-8f4f-1080ea79ae73@selasky.org> References: <1427128516.12874490.1526456240718.JavaMail.zimbra@stormshield.eu> <793855837.12916849.1526461655128.JavaMail.zimbra@stormshield.eu> <470629758.12930429.1526463753682.JavaMail.zimbra@stormshield.eu> <115a98db-8cb0-93e9-8f4f-1080ea79ae73@selasky.org> From: Warner Losh Date: Wed, 16 May 2018 07:22:42 -0600 X-Google-Sender-Auth: f6xbgUiPJFs3jYYLIbr86xcwXXY Message-ID: Subject: Re: Can't build kernel anymore: amd64 kernel requires linker ifunc support To: Hans Petter Selasky Cc: 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:22:44 -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. Warner