All of lore.kernel.org
 help / color / mirror / Atom feed
* clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,'
@ 2021-09-16 13:45 ` Naresh Kamboju
  0 siblings, 0 replies; 3+ messages in thread
From: Naresh Kamboju @ 2021-09-16 13:45 UTC (permalink / raw)
  To: open list, Greg Kroah-Hartman, Sasha Levin, clang-built-linux,
	lkft-triage, llvm, Linux-Next Mailing List
  Cc: Nathan Chancellor, Nick Desaulniers, Stephen Rothwell

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.

Build config:
https://builds.tuxbuild.com/1yDgHTBClkDVAW6MLcYwAdsXznO/config

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

meta data:
--------------
    git_describe: next-20210916
    git_ref: master
    git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
    git_sha: 368847b165bbfbdcf0bd4c96b167893dcdb13aba
    git_short_log: 368847b165bb (\"Add linux-next specific files for 20210916\")
    kconfig: [
        allnoconfig
    ],
    kernel_version: 5.14.0
    target_arch: arm
    toolchain: clang-12

Steps to reproduce:
tuxmake --runtime podman --target-arch arm --toolchain clang-12
--kconfig allnoconfig

--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,'
@ 2021-09-16 13:45 ` Naresh Kamboju
  0 siblings, 0 replies; 3+ messages in thread
From: Naresh Kamboju @ 2021-09-16 13:45 UTC (permalink / raw)
  To: open list, Greg Kroah-Hartman, Sasha Levin, clang-built-linux,
	lkft-triage, llvm, Linux-Next Mailing List
  Cc: Nathan Chancellor, Nick Desaulniers, Stephen Rothwell

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.

Build config:
https://builds.tuxbuild.com/1yDgHTBClkDVAW6MLcYwAdsXznO/config

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

meta data:
--------------
    git_describe: next-20210916
    git_ref: master
    git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
    git_sha: 368847b165bbfbdcf0bd4c96b167893dcdb13aba
    git_short_log: 368847b165bb (\"Add linux-next specific files for 20210916\")
    kconfig: [
        allnoconfig
    ],
    kernel_version: 5.14.0
    target_arch: arm
    toolchain: clang-12

Steps to reproduce:
tuxmake --runtime podman --target-arch arm --toolchain clang-12
--kconfig allnoconfig

--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,'
  2021-09-16 13:45 ` Naresh Kamboju
  (?)
@ 2021-09-16 15:20 ` Nathan Chancellor
  -1 siblings, 0 replies; 3+ messages in thread
From: Nathan Chancellor @ 2021-09-16 15:20 UTC (permalink / raw)
  To: Naresh Kamboju, open list, Greg Kroah-Hartman, Sasha Levin,
	lkft-triage, llvm, Linux-Next Mailing List
  Cc: Nick Desaulniers, Stephen Rothwell

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-16 15:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 13:45 clang: error: unsupported argument '-mimplicit-it=always' to option 'Wa,' Naresh Kamboju
2021-09-16 13:45 ` Naresh Kamboju
2021-09-16 15:20 ` Nathan Chancellor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.