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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D615C433EF for ; Wed, 22 Dec 2021 18:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344745AbhLVScz (ORCPT ); Wed, 22 Dec 2021 13:32:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233997AbhLVScy (ORCPT ); Wed, 22 Dec 2021 13:32:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2BFBC061574; Wed, 22 Dec 2021 10:32:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8736561C1E; Wed, 22 Dec 2021 18:32:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1803C36AE5; Wed, 22 Dec 2021 18:32:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1640197973; bh=oFYOckPrfQfT+uCoOEZdyGToL0hqy4zg5P6iJUy3w1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dyMhwi0LEaJGm8qABqcqgBke3EtgOYjBBVJEZeAtY8BmH6px+WmDk82rO7+W92Mu1 8pO0dmA5kBM97u0Ox7C8kmNWqYAGx3Ys+BwUOoZmCoLs94h2uroISKAda33lnQlX/r 18JpPiEJx+Pyq7FMqec5mGNQHIOOSTy0AMeZEfUFh+LcIgcqRsxmB6Z3eWIBzrjjc2 8E+UCxMEdv23dVEa9yEXG3JY1ZLZMWbr+g9NLfdfKq/VNKiG7HEMYCkUFYrWYCBGAU uQQba9SLIef6ahPwmBppHOBZvlD8IC0MZN109fOl4hkV8VjDLrlgHLw0tfxtPvD6b5 4MC2yQgkebysQ== Date: Wed, 22 Dec 2021 11:32:48 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: llvm@lists.linux.dev, open list , Linux-Next Mailing List , Linux ARM , Nick Desaulniers , Arnd Bergmann , Catalin Marinas , Ard Biesheuvel , Nicolas Pitre , Linus Walleij Subject: Re: [next] arm: current.h:53:6: error: out of range pc-relative fixup value Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 22, 2021 at 11:57:20PM +0530, Naresh Kamboju wrote: > [ Please ignore this email if it is already reported ] > > On Linux next 20211220 (and 20211222) tag following arm config builds failed > with clang-11, clang-12, clang-13 and clang-nightly. > > Build errors: > ------------- > In file included from /builds/linux/kernel/sched/core.c:10: > In file included from /builds/linux/include/trace/events/sched.h:8: > In file included from /builds/linux/include/linux/kthread.h:6: > In file included from /builds/linux/include/linux/sched.h:12: > /builds/linux/arch/arm/include/asm/current.h:53:6: error: out of range > pc-relative fixup value > asm(LOAD_SYM_ARMV6(%0, __current) : "=r"(cur)); > ^ > /builds/linux/arch/arm/include/asm/insn.h:25:2: note: expanded from > macro 'LOAD_SYM_ARMV6' > " ldr " #reg ", =" #sym " \n\t" \ > ^ > :1:3: note: instantiated into assembly here > ldr r2, =__current > ^ Report on our issue tracker with discussion: https://github.com/ClangBuiltLinux/linux/issues/1551 Ard has a fix that should resolve this here: https://lore.kernel.org/r/20211222104939.1154570-1-ardb@kernel.org/ I am about to reply with a Tested-by tag, I have tested LLVM 12 and 13 and my 14 build is running right now. Might be helpful for you to run that patch through your matrix as well. Cheers, Nathan