Re: error: ABI 'o32' is not supported on CPU 'mips64'
From: Philip Li
Date: Thu Sep 05 2024 - 23:42:58 EST
On Thu, Sep 05, 2024 at 10:56:15AM +0100, Jiaxun Yang wrote:
>
>
> 在2024年9月5日九月 上午10:22,Maciej W. Rozycki写道:
> > On Sat, 31 Aug 2024, kernel test robot wrote:
> >
> >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> >> head: fb24560f31f9dff2c97707cfed6029bfebebaf1c
> >> commit: 2326c8f2022636a1e47402ffd09a3b28f737275f MIPS: Fix fallback march for SB1
> >> date: 7 weeks ago
> >> config: mips-randconfig-r121-20240830 (https://download.01.org/0day-ci/archive/20240831/202408310705.y2OPq3Xs-lkp@xxxxxxxxx/config)
> >> compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
> >> reproduce: (https://download.01.org/0day-ci/archive/20240831/202408310705.y2OPq3Xs-lkp@xxxxxxxxx/reproduce)
> >>
> >> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> >> the same patch/commit), kindly add following tags
> >> | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> >> | Closes: https://lore.kernel.org/oe-kbuild-all/202408310705.y2OPq3Xs-lkp@xxxxxxxxx/
> >>
> >> All errors (new ones prefixed by >>):
> >>
> >> >> error: ABI 'o32' is not supported on CPU 'mips64'
> >> >> error: error: ABI 'o32' is not supported on CPU 'mips64'
> >> ABI 'o32' is not supported on CPU 'mips64'
> >> make[3]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1
> >> make[3]: *** [scripts/Makefile.build:244: scripts/mod/empty.o] Error 1
> >> make[3]: Target 'scripts/mod/' not remade because of errors.
> >> make[2]: *** [Makefile:1207: prepare0] Error 2
> >> make[2]: Target 'prepare' not remade because of errors.
> >> make[1]: *** [Makefile:240: __sub-make] Error 2
> >> make[1]: Target 'prepare' not remade because of errors.
> >> make: *** [Makefile:240: __sub-make] Error 2
> >> make: Target 'prepare' not remade because of errors.
> >
> > This is a compiler bug. The MIPS64 ISA does certainly support the o32
> > ABI, so they need to fix their "CPU 'mips64'" definition.
>
> Just for record, this has been fixed in LLVM-17 [1], while the bit is still
> on LLVM 15.
Thanks for the info, the bot will ignore the issue on clang-15/16 in future.
>
> Thanks
> [1]: https://github.com/llvm/llvm-project/commit/7983f8aca82e258174849f1cc6a70029353e9887
>
> >
> > Maciej
>
> --
> - Jiaxun
>