Re: sparc: clang: error: unknown argument: '-mno-fpu'

From: Arnd Bergmann
Date: Fri Mar 19 2021 - 07:33:17 EST


On Fri, Mar 19, 2021 at 8:36 AM Naresh Kamboju
<naresh.kamboju@xxxxxxxxxx> wrote:
>
> Linux mainline master build breaks for sparc defconfig.
> There are multiple errors / warnings with clang-12 and clang-11 and 10.
> - sparc (defconfig) with clang-12, clang-11 and clang-10
> - sparc (tinyconfig) with clang-12, clang-11 and clang-10
> - sparc (allnoconfig) with clang-12, clang-11 and clang-10
>
> make --silent --keep-going --jobs=8
> O=/home/tuxbuild/.cache/tuxmake/builds/1/tmp ARCH=sparc
> CROSS_COMPILE=sparc64-linux-gnu- 'HOSTCC=sccache clang' 'CC=sccache
> clang'

I don't think anyone has successfully built a sparc kernel with clang,
and I don't
think it's worth trying either, given how little upstream work the
sparc port sees
overall.

Arnd