public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Nathan Chancellor <nathan@kernel•org>
To: Naresh Kamboju <naresh.kamboju@linaro•org>,
	open list <linux-kernel@vger•kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation•org>,
	Sasha Levin <sashal@kernel•org>,
	lkft-triage@lists•linaro.org, llvm@lists•linux.dev,
	Linux-Next Mailing List <linux-next@vger•kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google•com>,
	Stephen Rothwell <sfr@canb•auug.org.au>
Subject: Re: clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,'
Date: Thu, 16 Sep 2021 08:20:32 -0700	[thread overview]
Message-ID: <c3a29fd8-e743-868c-3705-460fd38b7add@kernel.org> (raw)
In-Reply-To: <CA+G9fYu0dngeohP9M39Odj5-5ax97ZgA=KqV8_g2yYLdOGMQSg@mail.gmail.com>

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

      reply	other threads:[~2021-09-16 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-16 13:45 clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,' Naresh Kamboju
2021-09-16 15:20 ` Nathan Chancellor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c3a29fd8-e743-868c-3705-460fd38b7add@kernel.org \
    --to=nathan@kernel$(echo .)org \
    --cc=gregkh@linuxfoundation$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=lkft-triage@lists$(echo .)linaro.org \
    --cc=llvm@lists$(echo .)linux.dev \
    --cc=naresh.kamboju@linaro$(echo .)org \
    --cc=ndesaulniers@google$(echo .)com \
    --cc=sashal@kernel$(echo .)org \
    --cc=sfr@canb$(echo .)auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox