Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1771787pxb; Mon, 20 Sep 2021 05:06:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXJg+7QHPgHi0FCvTq6E9G9x34w+GwqCb1+ngx0MqG/EQGlb6u+Rn5a4snzeJO7IR+CjOA X-Received: by 2002:a92:6a05:: with SMTP id f5mr16641013ilc.140.1632139577054; Mon, 20 Sep 2021 05:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632139577; cv=none; d=google.com; s=arc-20160816; b=DlPGHGQkTYl/FV/U6jeekWwtUf2m8it22mkxXj0qnAYJnSywuNgPu41c9AU/0UKYds cSkoZ3dIRt5fjmZr79Jf6178yuTsF5J+w55zcRxCGySK9+65R1UcgsZKs7A7yaJ0QsZZ wscveMfeYqRTKNKsCeWyUmXNI8IfLk0UtPYbQmpDovuCoEjueoFa5XvTlxegmOeicl3D r65x2QN8WzDPW8LzQd7c6bL9l03xeTQsk7KkgIP7H1sj40IfDKN9g/nTyrs/8dRbB/mE vetC5uZe3mSIJnkpUa1DfIfQH88OOqax4oOX1n5it4JSoGkeMfD6b+uxPjN/EYCP4xmi GUDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=VCi78mN2x2kHh1l5Km4KZVKR5L77ZE21c4hjNnlzASE=; b=hHqyR2V3T5eBOOjBhLReVhOO5ZyhqeYuPdWdpUE+j+S2evgMYCj/4v7Z+TPDs+8FYC bTT6K8WqwmXB9zJ4fZRdpOp+4dcX++BS2hJ7hRnJh38EQ5M+wVONsyu1t/safLsJEQ33 F9DscPDMxpRNLQBbUOnle+RhC5gRwlLf+whbWnlh0z9N0H/d1JzzJK11D6Iz6fJBolM5 QDz+89tyLF89+jz8vELz6L5iEYucrUkZU452utAYdhUFxNipVlomGMH+Ap2dGhsOXevj ojzua8ZMuN9DGMxlH1ltjfFeFEtLiJ9q8S0U1gKoxXj135VU0JCjdlX653gSMzoF9E5I C9OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=czLC+Ngk; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si3329737ilv.34.2021.09.20.05.05.49; Mon, 20 Sep 2021 05:06:17 -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=@linaro.org header.s=google header.b=czLC+Ngk; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233353AbhITG42 (ORCPT + 99 others); Mon, 20 Sep 2021 02:56:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbhITG41 (ORCPT ); Mon, 20 Sep 2021 02:56:27 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41A21C061574 for ; Sun, 19 Sep 2021 23:55:01 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id c22so57208172edn.12 for ; Sun, 19 Sep 2021 23:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VCi78mN2x2kHh1l5Km4KZVKR5L77ZE21c4hjNnlzASE=; b=czLC+Ngkh9GhtjcAnabJuWFebjDLfRI4M+rF3x6yxdDZ97gkMUCD7+kmL5o7Sw0MjA BlxSyWFW7kRDrCwOXWNU3t83vXCRCYy2iGz211SlEkBIjRq/zQTN6Y3qorISuiv4X5P9 /fLzafYo4yc0n2ZdUin4HmgYLlomWABX0GyQWiJnCsnEyf99jeZ9qIPaRx5AGAd9cTE5 Fijw8Ezp/DiMjvgJ8m26Z7SiA5scBcVX5YTNW0Jiuu2vjw3qDfi+saKv0lYXTWRDZft8 y2+nvrHqIl6miK0MIWOZkpuq8Gs97VPmnzoyRRww9YfS1FrdhoCjX+fQ6pyK1wBQsaNf 5r6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VCi78mN2x2kHh1l5Km4KZVKR5L77ZE21c4hjNnlzASE=; b=UZdjaYAgpFGpZDn5BA731OK5geCjwy/CA6WMiQA6CpCrXbEKPRijUqVxpsZGX7hZBg GD7DwQ0ibchsWlM5IsmJ1wB5pXGUunC96IRxnWhmRMqJcLZz8eUQfPt735O0hKVV8tiA lXtI6u6dqEDJhWxUfAFSHqPtjPv/NA7s1Kwu3nXnf9sV8VWUVlG5dObzoCym/guWTEWl MWSa2rORBWvAbRpwF5a9/ewK5wSZ6TPqUw/+pNr1n4GKegscQ7fZnTejycCOMnKunQLE VTnPUtTad+Aen35oJgwgEKWOubhIyYc2fDzEtbwM/EJIPEscApWfulK/Tlr48B/Oxy2v faqg== X-Gm-Message-State: AOAM533utyMOkYaJ8Xsb5yB6xxDlqiNoV5n1h9kxjysm5YkYZdqyP/64 t9PhOxL0wmqHrW9c/+v0crsRM3AqQirS/qhFHadKmw== X-Received: by 2002:aa7:d1d3:: with SMTP id g19mr26462988edp.103.1632120899694; Sun, 19 Sep 2021 23:54:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Naresh Kamboju Date: Mon, 20 Sep 2021 12:24:48 +0530 Message-ID: Subject: Re: x86_64: clang-10: :2:2: error: unknown use of instruction mnemonic without a size suffix To: Nathan Chancellor Cc: clang-built-linux , llvm@lists.linux.dev, open list , X86 ML , Nick Desaulniers , Linus Torvalds , Andy Lutomirski , Thomas Gleixner , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nathan, On Mon, 20 Sept 2021 at 09:13, Nathan Chancellor wrote: > > 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: > 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. We will update our gitlab pipeline CI configs with 'LLVM_IAS=0'. > > 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. Noted. - Naresh