From nobody Tue May 17 17:56:14 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id BD3011AE2CD3; Tue, 17 May 2022 17:56:16 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L2kM44wCTz3jhn; Tue, 17 May 2022 17:56:16 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652810176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lSMJtFBpCqFqL9qTDceLopBNo5AVWbltiadedRYv4Qc=; b=niIQbiQPhbf/RHHDVasymEh71QtUR0tYHwjd/7Gx92wzP9l5tTRfFkWzUZGbvyEhtrEKAG 7S4BZcj1Bl/NumwiSyNEC0DPzgSvzgQD2REQy3Qcwtk+qCVjoQy0+7RLGsb4CIRNZHgVRA sgvuXuR2DB6gYSiIGsUncfNwkPQq60BL5GZHbc3u5lUJMTFqU/4lp74+2a2g1cOBxs2yN+ G3Y/34aqC6+ytitPzfDx/XEvIR5b+3iEOnaAmIqjgwYMaROXAOPAvrRvDAhzmXk9DHfGgy qxHCYfextb3sTKzCJ4qfUwO+Q1B3oZeFUBkheCOfPTk09tHLREKlfvk1waOVxw== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id DDC1F7710; Tue, 17 May 2022 17:56:15 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <5e5281b2-a9d1-3751-b09a-c88d210f4f55@FreeBSD.org> Date: Tue, 17 May 2022 10:56:14 -0700 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: git: 349cc55c9796 - main - Merge llvm-project main llvmorg-14-init-10186-gff7f2cfa959b Content-Language: en-US To: Charlie Li , Brooks Davis Cc: Dimitry Andric , "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" References: <202205141148.24EBmkZd015765@gitrepo.freebsd.org> <4b61bdc6-fdc7-57df-e9b7-52543fd083be@freebsd.org> <20220516154825.GF15201@spindle.one-eyed-alien.net> From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652810176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lSMJtFBpCqFqL9qTDceLopBNo5AVWbltiadedRYv4Qc=; b=a0C331JL8cXHrAGtYXgmgQpln0iceOPsReF6opA82EEFb1Z4I02Sc7l+XSKGg06KCoDQ1Z 0MuI5tlrv7lw0ZrVbHyAirIFkYbv5WHKKfpIF+Y6D9mlg8mWqv3LzvN6rUE3cdPvRHEpdF c1A0y4z8BKHmpEIrzsZC89sTXbwB5Wac1I8eBfoGrj5MC15uFS6liQYJGUfQkByNc3hfyw cT1p7mwcGZ87tM4kLT9jwXKNbt8sRQEUs+L09sWN/L4bcDSQ0GNElWzxl4L8VPd/gVA1Fo IlcfRBgnwS4N9kehto2dv6jQp9QgaVGVMua5M8lbJgOE/YTx63HumwN60JBItg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652810176; a=rsa-sha256; cv=none; b=eXDYDlZzj0/fKFq9PNodExNSkCHSgbWyigr2iX32prmvWzM6RvmkC1Q9RyGkp7WYOIv4U3 TfQlYNf9fz+tqMhMh2Y3pTCh0cJ7EzAosStFG29wykjmVt39rKjtPBU9+P4KjD3/XWHRc/ pjw+MkCwmxamWLNFTHzif831KfreEhMWb/B7QODouG1q9oL4z7hGCPOzTq7h1lVJDqOkR0 72MiRTCipyc5zAZsgGVM1mvTw+gE+3GsUrpg8Hixggp/P7kKWwHuYHzdpxIqCFu32tKVD3 +K1Jb6Ih4dyGiOSq2GeRHxAvQ9jZ7kS45htjZrT91hj2UJAptcf+bkeKo9zBTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 5/16/22 8:09 PM, Charlie Li wrote: > Brooks Davis wrote: >> On Mon, May 16, 2022 at 10:47:49AM -0400, Charlie Li wrote: >>> Dimitry Andric wrote: >>>> This was also reported by another user, and it turned out they were >>>> using WITHOUT_CROSS_COMPILER= in src.conf. If you also have that, try >>>> removing it and rebuilding. >>>> >>> Yeah I eventually figured that part out. Worked around (first attempt) >>> by building with devel/llvm14 CROSS_TOOLCHAIN, but resulted in certain >>> kernel modules (zfs and a few more) with malformed relocations. >>> Subsequent rebuild with the new world's toolchain corrected that. >> >> Does that mean we're missing patches in the port? Hopefully anything >> this critical can be merged into LLVM 14.0.3. >> > Probably: > > May 15 22:34:08 current-builder kernel: ---<>--- > May 15 22:34:08 current-builder kernel: Copyright (c) 1992-2022 The > FreeBSD Project. > May 15 22:34:08 current-builder kernel: Copyright (c) 1979, 1980, 1983, > 1986, 1988, 1989, 1991, 1992, 1993, 1994 > May 15 22:34:08 current-builder kernel: The Regents of the > University of California. All rights reserved. > May 15 22:34:08 current-builder kernel: FreeBSD is a registered > trademark of The FreeBSD Foundation. > May 15 22:34:08 current-builder kernel: FreeBSD 14.0-CURRENT #121 > main-n255657-48a1a6be196: Sun May 15 21:59:12 EDT 2022 > May 15 22:34:08 current-builder kernel: > root@current-builder:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 > May 15 22:34:08 current-builder kernel: clang version 14.0.2 > [...] > May 15 22:34:08 current-builder kernel: kldload: unexpected relocation > type 42, symbol index 8321 These are all type 42: #define R_X86_64_REX_GOTPCRELX 42 It's not a LLVM bug so much as it is probably missing support in the kernel and/or loader for this type of relocation. kldxref might also need updating. I suspect due to a mismatch of old lld with new clang or some such that the old lld failed to resolve these relocations to some other type or something weird like that? -- John Baldwin