From owner-freebsd-current@freebsd.org Sat Sep 22 03:57:57 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 02BCD10B002C for ; Sat, 22 Sep 2018 03:57:57 +0000 (UTC) (envelope-from wlosh@bsdimp.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 772FA7F7E2 for ; Sat, 22 Sep 2018 03:57:56 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd41.google.com with SMTP id e12-v6so13900814iok.12 for ; Fri, 21 Sep 2018 20:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S36lH5revQv/fstuZqTN5rze1M8BIoaU/sV9Pp0Y9N0=; b=NFWpqi9b1t9tQ0Yf44VIyW/iABW63fB+6HTtz4082bsX6DYeA9GXIlozilQ5ziZzNs 2u5wRK5fhz4FnEiysd+HsyH7ZKg731gBFSdsn2UfMdbLJtXpqG4G8FZ8+R/AgAc16cQP lgoZjDNHJAA9EATli3+WfJgD0lFpVX0movFo/3qHcuqR5G3vDNCusHyyx6bmXg1G7djA jTymz/lEqIS+sh8JTWTUNzTe6tmM4SGTfzyNYUwxLu7k/LApBgFmPjQm+i+Ehst6ij2j Q+QsgwhwonI3W448mDV7gFvN+yWOYbcXWHpLCIVjlLqWc0J1fp5rnQbNGZ9hRfbtHnkP ORXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S36lH5revQv/fstuZqTN5rze1M8BIoaU/sV9Pp0Y9N0=; b=artw3QgO8uoIfbTURjPkVHeEs7W32Xjy5ND3vZIjJDb02OqCaLm42cuFjBN9Lg24J5 eFQZNSPKM9yJ86kHr3HCctBcf+yFvRfbdPinXnv50Ef/KyQfJ/BIRnh+VHDh2p2Yy3TN sf9COpPLlbfDiOijL8DeMx63PP1axcjJ3JBJzVUWXF45MqYK9P8vXnFV3R9QerCsbW2n WKDawedqKYyfpWUd4ggMcg1AzALKIyNHNWqNLG4H9hBuPWq7r8GoO+o9D/dbV8xzFk56 ZN3nCrsuKoLV9AhDxUXSbP12P5fJ5Gchf/ZR0S20WuApiy4+X5FTyvDpA5V7y7C6Rv7g 53Iw== X-Gm-Message-State: ABuFfohcVFlrE/jyoqU/8fEx5XhELH6VJg2zbAoW0D/oG1rmTMH4VJ0W JJ768fJSnSAO36grb0UDedDlzmD0PZRwHbZIPbaXFA== X-Google-Smtp-Source: ACcGV625+hnIZOeA/TaU+H1tYUufcLoJQlGCEkC+6PCRNmaxkZ6XC1u9Aew2Aa3C0CLvmT6ZRq2DbObWflul+hrHpD4= X-Received: by 2002:a6b:7117:: with SMTP id q23-v6mr491651iog.37.1537588675628; Fri, 21 Sep 2018 20:57:55 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <74775769-6810-63ab-d776-013bc72c8488@bluestop.org> From: Warner Losh Date: Fri, 21 Sep 2018 21:57:44 -0600 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: rebecca@bluestop.org Cc: Mark Johnston , Ed Maste , FreeBSD Current , "freebsd-toolchain@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 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: Sat, 22 Sep 2018 03:57:57 -0000 Hmmm, what does make -V LINKER_TYPE and make -V LINKER_FEATURES say? They look good for me, but the only way you get this error is if they are wrong. Although from your typescript, I see: ===> lib/libc (cleandir) make[4]: "/usr/home/bcran/workspace/freebsd/lib/libc/Makefile" line 26: amd64 libc requires linker ifunc support which tells me that we need to exclude all the non-build targets from this check.... This will use the HOST linker rather than the TARGET linker. So something like: diff --git a/lib/libc/Makefile b/lib/libc/Makefile index a1ce123c0f33..11575e1cabff 100644 --- a/lib/libc/Makefile +++ b/lib/libc/Makefile @@ -21,10 +21,12 @@ LIBC_ARCH=${MACHINE_ARCH} LIBC_ARCH=${MACHINE_CPUARCH} .endif +.if build(all) .if (${LIBC_ARCH} == amd64 || ${LIBC_ARCH} == i386) && \ defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} == "" .error ${LIBC_ARCH} libc requires linker ifunc support .endif +.endif # All library objects contain FreeBSD revision strings by default; they may be # excluded as a space-saving measure. To produce a library that does may be needed, but the problem may be related to caching these values from the host as well, even though we rebuild them... Warner On Fri, Sep 21, 2018 at 9:38 PM Rebecca Cran wrote: > On 9/21/18 9:35 PM, Warner Losh wrote: > > > > I meant to add, can you give a few lines before the error is spewed > > here in email? My IRC computer died before I could see any answers > > there... > > > > My 11.2-stable system has 6.0.1, so I can't test from there. > > > I've uploaded the full 'buildworld' output to > https://bluestop.org/files/typescript.txt . > > > -- > > Rebecca > >