Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1732928pxb; Mon, 20 Sep 2021 04:08:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3SC5JkX4WPBt7yn0z8LlWMzVPvIsley39eE4FgfGOuhm3Wh7rIOrgy+vd/CTlnLXmwm0G X-Received: by 2002:a02:964c:: with SMTP id c70mr887928jai.85.1632136095533; Mon, 20 Sep 2021 04:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632136095; cv=none; d=google.com; s=arc-20160816; b=e1RV0xxlF9/FRboEXqkAqtIDtvJZgP1rJ0NCzPn9K0A8hdIy0UIQHj496PiT3nYZr5 K9KTnVe+Y4vMTKyH0B4xIu2mEAu+JbCzVEF0clMTJORTJA9IjVPLmX8l5G59/NC7DcxU /MfVaSRPuz6/HsTiOJlrdpzWdF8ig06f7Zeu0wmiMqn1JgCYL+MKOMqFbQyB+y8jPs1I wUqrVpHxNPdPLIWg10xwogJlJvbIshG6HGRExwdo6YIV5evt7O1epEWz44coGcCM7zHb mlra2VDEhK5gsuM7PRo/q4YD/CJRESE9jdWPoYxaX1KsPORl3Fi8XH4dU3B4onduDV99 A1yg== 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=+xP/7RtwiLJtUtuK2Wu/v1M9K6UJ2qfpi/KkffQCwpM=; b=niowWMNPfF6WUcTSIHclWRg9hUbxJAx0l/uvWx1sby/+q9/V6LrGlAzwHEdXXV2HIW ItgBPWqrK250cuS9JqgFWL7NjK0ql70HmzD0XCyEVu2M4fFXiAGnGz5ZOEgMqRzCyC0A uFWgslKIoH5Aeefu/1YuKinp09heGlsmOk7Ho50uTK2Ph4vFfDNU+AE6/zUBNMsbtDPy xLxQxi8bQqXjVv7vnh5svUY1SAzU6YR/4EoMkjkTmsTSpDj5peUj6d74RBfRfwYhybsP nKSBMiESO2fPFKZ5vEFvJx4TCs+2idpTegyBlPQ0liOdJklFfimJYIGQ+2iOlYSZf9IC bu5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aQiMuFIs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si11353318iot.14.2021.09.20.04.08.00; Mon, 20 Sep 2021 04:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aQiMuFIs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbhITDov (ORCPT + 99 others); Sun, 19 Sep 2021 23:44:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:33256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbhITDou (ORCPT ); Sun, 19 Sep 2021 23:44:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6EAB160EE0; Mon, 20 Sep 2021 03:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632109404; bh=p7Ma5NlNd/XzVcB4FIQKl7ZT6RMFembGdKgtyqS11/k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aQiMuFIsCXfDdFq8hsjpQWdJtId+IqassqcmizLf3Ac1NK8Bp4H2pDqXtpCtDaxHX vWEiutV8JZGZ8AM3aeTHfqmVEh5RH3Nh9AkCCdBJ1OrxW7oO+1JLZpJeHbdxSfvgaJ XpPfDwDt6FVCMUc9GvbmhEXHYbcPW6+lVTDnPNXLAWyF4sre6hkBkpDAcOeQviAZ0N tdJsCDoQTH1Gm2iZw93d6D8Z/p2Jqu8Qv5kkh5+0/WioUCVrkUhx6zZ7DMdxnR1Cpt i1mv+thd9eCu1ATm0OB4CAmWGg+MLtUiAhsv51XDKYV6q2EoK07C/FOm1hiQfPD1qg cTpy0j+DRgc0Q== Date: Sun, 19 Sep 2021 20:43:19 -0700 From: Nathan Chancellor To: Naresh Kamboju Cc: clang-built-linux , llvm@lists.linux.dev, open list , X86 ML , Nick Desaulniers , Linus Torvalds , Andy Lutomirski , Thomas Gleixner , Ingo Molnar Subject: Re: x86_64: clang-10: :2:2: error: unknown use of instruction mnemonic without a size suffix 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 Hi Naresh, On Mon, Sep 20, 2021 at 08:55:46AM +0530, Naresh Kamboju wrote: > [Please ignore this email if it is already reported ] > > Following build warnings/ errors noticed while building linux mainline > master branch > with clang-10 for x86_64 architecture. > But clang-11, clang-12 and clang-13 build pass. > > :2:2: error: unknown use of instruction mnemonic > without a size suffix > lsl %rax, %rax > ^ > :1:1: note: while in macro instantiation > LOAD_CPU_AND_NODE_SEG_LIMIT %rax > ^ > :2:2: note: while in macro instantiation > GET_PERCPU_BASE %rax > ^ > /builds/linux/arch/x86/entry/entry_64.S:887:2: note: while in macro > instantiation > SAVE_AND_SET_GSBASE scratch_reg=%rax save_reg=%rbx > ^ > make[3]: *** [/builds/linux/scripts/Makefile.build:379: > arch/x86/entry/entry_64.o] Error 1 > arch/x86/entry/entry_64_compat.o: warning: objtool: .entry.text+0x215: > can't find jump dest instruction at .entry.text+0x21a > make[3]: Target '__build' not remade because of errors. > make[2]: *** [/builds/linux/scripts/Makefile.build:540: arch/x86/entry] Error 2 > make[2]: Target '__build' not remade because of errors. > make[1]: *** [/builds/linux/Makefile:1868: arch/x86] Error 2 Thanks for the report. This is another case where the implicit switch to the integrated assembler exposed a previously fixed issue in LLVM: https://github.com/ClangBuiltLinux/linux/issues/1079 This cannot be fixed in the LLVM 10 branch as it is no longer updated so if you want to keep testing with clang-10 for x86_64 on mainline, please add 'LLVM_IAS=0' to your make command like we did in our own CI. As a quick aside, would you mind updating my email address in your system for reports to nathan@kernel.org? It will ensure it gets sent to the correct inbox so that I do not miss things, as I do not use my personal address for kernel development anymore. Cheers, Nathan