Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2892039rdb; Mon, 4 Dec 2023 10:13:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4p5y+Z7Au/hEXROthCGxboCo58QrjFmWxxROwnU76/5IYY13Yk1rWtK2W8p6TEU7nqTQQ X-Received: by 2002:a05:6a20:734d:b0:18f:97c:6155 with SMTP id v13-20020a056a20734d00b0018f097c6155mr5465292pzc.82.1701713599031; Mon, 04 Dec 2023 10:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701713599; cv=none; d=google.com; s=arc-20160816; b=tjLq2iTa+hkzOcVndboPVOPo3xUyBAs97N93Gs5sVl+9Q4uDuojTKsC8JNSNj5Clew LHsJ34/6cqbNmJSZ2AtjG+rx4iBPd/M01AGSCLmzPD5ybfRYvxnuGdsKZa5NSSQXaxu6 qTS0wG7kkAgb6wLVbW2Cv/wA3ptMlIG5cbekKmA7HSdr5hzHw9eIYIXZQJAuxDIySUHk DR8JXSNAhIY6jFgnGf4PGgQ83ghWby3zTvmBBKvAkdUHcyQJjv73/U34x3Ir/it81Ge3 u3oMrUimyac+KSD7B/Hqz/6jnUI83rsgQSB85BOheU/Uv8/PcsMhWmzNfdj8K7lRIReU t7bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oQyBWDasm8vIjnoU3LiqtYuQXMzVfRAnQNb6wNgu8ks=; fh=8kZDnVnYjkbO+9/iu9EjTORnO/tBkFOBXma92OhmK0Y=; b=xG3JK9NHgoTFBqu7gV0hLIsegSLOkU1Js9rAP9fJn7ibNm13zE88Iw36UPp3l4EjeQ xTk2VSdf4dZy/CbPX8/eLBwI91MdmvwD//WC+Qce7soL19k6UBIzCrmo1cJ46LgBpEeB N5mPzWc7t/rd/NoPokrvPYDMSheZdRasMQByzjRSUvGpmz1uwENuXYI5kFn29cW0nXNd cU1Lc+yINSb5Qd/s0s57u2c7mG90RWJA7SXyX6Atlz9EB4+7kUNHUOlyQLwb4L7CmW+D +WHoff88/4rOBauH2SC3NYRl3w2CBKCdILIcKGPUYHxfNozGYsovczqkXaroJDX1aib+ k3IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pq53kDja; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s17-20020a632c11000000b005c66415a758si3958600pgs.468.2023.12.04.10.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 10:13:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pq53kDja; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CE397805363E; Mon, 4 Dec 2023 10:13:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjLDSNC (ORCPT + 99 others); Mon, 4 Dec 2023 13:13:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbjLDSNB (ORCPT ); Mon, 4 Dec 2023 13:13:01 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8142AA for ; Mon, 4 Dec 2023 10:13:07 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1E36C433C8; Mon, 4 Dec 2023 18:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701713587; bh=ZnF++KDAwRvjCUKLyEG+QdraHD7QYVU2OsL3PPOdigc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Pq53kDjarcnqVwJBMAHI7DkjDZTij2orbEmtr6uX1KJdWfLSgtGrJGJJ1MWCM1Ns/ +k6snGazyw+FcMAWXZfPapU+24iXOSXhFQwRL3k7UoxMFwaVqVltkXYoNCTlEG1Bte E5DE1AWqGuFgQfUl0wjRQSuk7mrr5HA3MRMLAJAlYY0AFLnXcvWF8D0TZO9U69jlrb zYXxIpMxjViFo5XEeuumn9Erb7UNesBj8zcknk45dVOhgCd8eJVs4qLNqvfFPTHkef zjni7Awuw+1XFeKPGLE2zoihO1xco35ldUt9wM8xiMwOMmGbvw9xduJ+B8XYoOT7IL IRwRzjykF8nuA== Date: Mon, 4 Dec 2023 11:13:04 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: clang-built-linux , Linux ARM , open list , Linux Regressions , lkft-triage@lists.linaro.org, Russell King - ARM Linux , Arnd Bergmann , Nick Desaulniers Subject: Re: clang-nightly: vdso/compat_gettimeofday.h:152:15: error: instruction variant requires ARMv6 or later Message-ID: <20231204181304.GA2043538@dev-arch.thelio-3990X> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 10:13:15 -0800 (PST) Hi Naresh, On Mon, Dec 04, 2023 at 05:33:26PM +0530, Naresh Kamboju wrote: > Following build errors noticed on Linux next-20231204 tag with clang-nightly > for arm and arm64. > > ## Test Regressions (compared to next-20231201) > * arm64, build > - clang-nightly-defconfig > - clang-nightly-defconfig-40bc7ee5 > - clang-nightly-lkftconfig > - clang-nightly-lkftconfig-kselftest > > * arm, build > - clang-nightly-allnoconfig > - clang-nightly-axm55xx_defconfig > - clang-nightly-bcm2835_defconfig > - clang-nightly-clps711x_defconfig > - clang-nightly-defconfig > - clang-nightly-exynos_defconfig > - clang-nightly-imx_v6_v7_defconfig > - clang-nightly-keystone_defconfig > - clang-nightly-lkftconfig > - clang-nightly-lkftconfig-kselftest > - clang-nightly-omap2plus_defconfig > - clang-nightly-pxa910_defconfig > - clang-nightly-s3c6400_defconfig > - clang-nightly-s5pv210_defconfig > - clang-nightly-sama5_defconfig > - clang-nightly-shmobile_defconfig > - clang-nightly-tinyconfig > - clang-nightly-u8500_defconfig > - clang-nightly-vexpress_defconfig > > > Reported-by: Linux Kernel Functional Testing > > > Build log on arm64: > --------- > In file included from lib/vdso/gettimeofday.c:5: > In file included from include/vdso/datapage.h:135: > arch/arm64/include/asm/vdso/compat_gettimeofday.h:152:15: error: > instruction variant requires ARMv6 or later > 152 | asm volatile("mov %0, %1" : "=r"(ret) : "r"(_vdso_data)); > | ^ > :1:2: note: instantiated into assembly here > 1 | mov r4, r1 > | ^ > In file included from :3: > lib/vdso/gettimeofday.c:139:3: error: invalid instruction > 139 | smp_rmb(); > | ^ > > Build log on arm: > --------- > In file included from arch/arm/vfp/vfpmodule.c:23: > arch/arm/include/asm/cp15.h:101:2: error: instruction requires: data-barriers > 101 | isb(); > | ^ This is caused by a change to Debian's LLVM that changes the internal defaults of the arm-linux-gnueabi and arm-linux-gnueabihf tuples: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/commit/907baf024b9a5a1626893d9e731b6c79ccf45c87 We use arm-linux-gnueabi for the kernel (see scripts/Makefile.clang) so now we have a hardcoded armv5te CPU, even if we are building for armv7 or such. I am still investigating into what (if anything) can be done to resolve this on the kernel side. We could potentially revert commit ddc72c9659b5 ("kbuild: clang: do not use CROSS_COMPILE for target triple") but I am not sure that will save us from that change, as tuxmake's CROSS_COMPILE=arm-linux-gnueabihf will cause us to have an armv7 CPU even though we may not be building for armv7. Cheers, Nathan