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 X-Spam-Level: X-Spam-Status: No, score=-14.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4431C433F5 for ; Thu, 16 Sep 2021 15:20:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B96360F4A for ; Thu, 16 Sep 2021 15:20:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238778AbhIPPV6 (ORCPT ); Thu, 16 Sep 2021 11:21:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:44782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238632AbhIPPV4 (ORCPT ); Thu, 16 Sep 2021 11:21:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 53EB361216; Thu, 16 Sep 2021 15:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631805635; bh=E9H0v3G3Ov/ePc/WdqGiURbGTrVRQfMaWxyj/2lWf6I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=XiR3lBfDdxd/En6kpPAMzQsptVKe9VXUdRghpBhphmlpPzEYGfazTxq6ntH535oSZ jyjChXMEuLLSlyg0Sr0HsMn7DojUU8OLIbe7lClxZ4CNm7dWFM0cMJgLI14CQg/hlQ q5J5HSsuSbzLfAjyP80+pDZUDOF8/0P3+WW7w/JA+54avH6JLdlmc9wLO1Cf7EXGE7 c4fZthPYB6XmkoD7HfpP2ir237FGFxbMesZfju9vTobJoGtk11tctDvYQ2NHpUwCbf Vrg1/HFl2eB/ZwniWOjo0PhntuLL+8z4IJIj26zTh/gzxCUoYDR4G+TWWKeKr1XYGZ ZOM6kG47xS7LQ== Subject: Re: clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,' To: Naresh Kamboju , open list , Greg Kroah-Hartman , Sasha Levin , lkft-triage@lists.linaro.org, llvm@lists.linux.dev, Linux-Next Mailing List Cc: Nick Desaulniers , Stephen Rothwell References: From: Nathan Chancellor Message-ID: Date: Thu, 16 Sep 2021 08:20:32 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Naresh, On 9/16/2021 6:45 AM, Naresh Kamboju wrote: > Following build warnings/ errors noticed while building linux next-20210916 > with clang-10, clang-11 and clang-12 for arm architecture. > - allnoconfig > - tinyconfig > > But builds PASS with clang-13. > > clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,' > make[2]: *** [/builds/linux/scripts/Makefile.build:288: > scripts/mod/empty.o] Error 1 > make[2]: Target '__build' not remade because of errors. > make[1]: *** [/builds/linux/Makefile:1329: prepare0] Error 2 > make[1]: Target '__all' not remade because of errors. > make: *** [Makefile:226: __sub-make] Error 2 > make: Target '__all' not remade because of errors. Thank you for the report. This is caused by the implicit switch to the integrated assembler in commit f12b034afeb3 ("scripts/Makefile.clang: default to LLVM_IAS=1"). Prior to LLVM 13, -Wa,-mimplicit-it=... was not properly handled by the integrated assembler but Nick fixed that: https://github.com/ClangBuiltLinux/linux/issues/1270 As noted in the above Linux commit, please adjust arm clang-10 through clang-12 builds with TuxSuite to pass 'LLVM_IAS=0' to make, which you can do with the 'make_variables' key: https://github.com/ClangBuiltLinux/continuous-integration2/blob/a998b85bf1d2ce4150005b225f4cde535fe12af5/tuxsuite/android-mainline.tux.yml#L207 Sorry for not giving you guys more of a heads up about that switch. Cheers, Nathan