From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AA37C4167B for ; Mon, 4 Dec 2023 18:13:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PlCZ2nRIHSEZ70JYENT9kO56GfYjPaMdV7HTy83TW3o=; b=xc6JoGJrzJynSS j6fEwVMEcq428SUI+0alHtpkRWZcfE1KiOnO48jLQHB+80Na0W6hTJOXR8koUfFhYgDoNjmuWhAHw rWgo9F+74yPS9EgB6ZT407YY83Jrpp6cOfiOev3ciLYB9R5EdMR7pDbKtMPsqLwX36OCz+pVAL+qx A9/reiFQCV7sl44fQtX/eSQJDHZXASiZPG+1j1w8bryzTvc/oexgvLc9G/0XPp56uAqTct6yD9Fwg B43F3375sR46yGj9KSypKjhngDrruvxhg9RntQU7Dmq00mylR2p1Z5JWdh7WqXpNfZLFjCwvUgS5h d4V5Zt/oCUg0khKUQf7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rADRT-005Gbk-0d; Mon, 04 Dec 2023 18:13:15 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rADRP-005Gag-2r for linux-arm-kernel@lists.infradead.org; Mon, 04 Dec 2023 18:13:13 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 29276CE128C; Mon, 4 Dec 2023 18:13:08 +0000 (UTC) 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231204_101312_302150_497858AD X-CRM114-Status: GOOD ( 13.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel