From owner-freebsd-current@freebsd.org Mon Sep 24 19:10:52 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 1461910B5076; Mon, 24 Sep 2018 19:10:52 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 970048EE80; Mon, 24 Sep 2018 19:10:51 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io1-xd41.google.com with SMTP id w11-v6so18545022iob.2; Mon, 24 Sep 2018 12:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vTakfpZRg7YQdsoqxp5rdGAbaNe5ZZUrlJASpxEFkLE=; b=MnEcyJ7Ih0sVale6tfd9bLLZ30VmRgRUePdXEKHhUoN+Q1K2zaZDPZipVFf8QWcLCP 0qml5g9koxRfz6Of3hgG1Hy1g9peRT9mo5we3ylXXI6QP0IVU2iQ9lv5sJeh+nge/1Yp 7Qv7UY7EC5OaLroM9EC0/CqXvnVKdVv6YB87NKRDv3tJ/zG7NgccbxHTglxLxYg2kep4 Vg+X4dpLgIn1KHN91oDp9rXX0MpKFR8fAKwo4Al0aZ1eX1w7V6GlRTk4vh/+AZHL6pUJ H0Q1sDxSlvp6BQ25DY70FVLtz8Y7b6chrDdO45vQRm0HLSae282Wb2oiGcq/K9e5DZH0 FFgA== 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=vTakfpZRg7YQdsoqxp5rdGAbaNe5ZZUrlJASpxEFkLE=; b=hMFLYxT7aPnpeIRGaT+iJbYA6c9PpPcf3EGl3pHvUBgxfvlSg1hDKDk5lYmZWg7DLS pk/M9PRKVs1hW3B/5Zc02TY2REVzDdXRaXGOIxo9tJp0f3G98hIXHK4A82jcd9eFXXKh YLbln8fHJQyRhXqb357aPXfEnCJLDZRu91j89vmeAC5LQcycmVPVN0uoeQaX9sPgaqB/ GuPbMWrcI5cjKElnlIYCFXgkx4To4uvac0wZ34jsu8qdQ3wVqLt9hp/a187OQXxEWWP5 H6UICv2xsRvkXzHsa8Ke9Kn1hg/ViV+Eofx9cXX5Bj2+mRWtVyx2Otg50wRHyDrZjsoI Ew/A== X-Gm-Message-State: ABuFfohn56/LkTIfjdumw4f5P7E7zKX1zz7hVqcjwodHVg4YPgl/knxK 59J74Fc/fJSn7aYQ5zUoXKxq7eup5SW/HELW0dHnNri1 X-Google-Smtp-Source: ACcGV618tqgNsB/y2OxbJO8Wb9Jbgae0N2TmUx3s+QytDix6BLcxQ8vh3GsnkfCXUU4/vBKBv+wd+/cPyzDhdGq9CSs= X-Received: by 2002:a6b:ac45:: with SMTP id v66-v6mr250184ioe.66.1537816250742; Mon, 24 Sep 2018 12:10:50 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 2002:a6b:fd15:0:0:0:0:0 with HTTP; Mon, 24 Sep 2018 12:10:30 -0700 (PDT) In-Reply-To: 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> From: Ed Maste Date: Mon, 24 Sep 2018 15:10:30 -0400 X-Google-Sender-Auth: DBPsOI2RfAAPbrULRmnbgQWJts8 Message-ID: Subject: Re: building head -r338675 with devel/amd64-gcc: /usr/local/x86_64-unknown-freebsd12.0/bin/ld: warning: -z ifunc-noplt ignored To: Michael Tuexen Cc: Warner Losh , Rebecca Cran , Mark Johnston , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" 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: Mon, 24 Sep 2018 19:10:52 -0000 On 23 September 2018 at 07:31, Michael Tuexen wrote: > 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? This safety belt is in place to ensure we don't build a non-functional kernel - now that the i386 kernel requires ifunc support using old GNU ld results in a kernel that doesn't boot. The workaround for the "old way" is to explicitly set LD=ld.lld in the environment - "LD=ld.lld make -j 6" should work. More details in this -arch thread, when amd64 encountered this hiccup: https://lists.freebsd.org/pipermail/freebsd-arch/2018-May/018967.html The same issue now affects i386 as it has started using ifuncs, and will be resolved once we can switch i386's /usr/bin/ld to be lld, which is waiting on ports fixes in PR214864.