* loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
@ 2026-04-29 21:46 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-04-29 21:46 UTC (permalink / raw)
To: Huacai Chen; +Cc: oe-kbuild-all, linux-kernel, Arnd Bergmann, Jiaxun Yang
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 57b8e2d666a31fa201432d58f5fe3469a0dd83ba
commit: 3d9aba6618d115750729bba2d1f8af180bd7d3bd LoongArch: Adjust build infrastructure for 32BIT/64BIT
date: 8 days ago
config: loongarch-randconfig-001-20260430 (https://download.01.org/0day-ci/archive/20260430/202604300518.niGSNE7F-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260430/202604300518.niGSNE7F-lkp@intel.com/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
| Fixes: 3d9aba6618d1 ("LoongArch: Adjust build infrastructure for 32BIT/64BIT")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604300518.niGSNE7F-lkp@intel.com/
All errors (new ones prefixed by >>):
>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
loongarch64-linux-gcc: note: valid arguments to '-march=' are: abi-default la464 la64v1.0 la64v1.1 la664 loongarch64 native; did you mean 'la64v1.0'?
>> loongarch64-linux-gcc: error: unrecognized argument in option '-mabi=ilp32s'
loongarch64-linux-gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
loongarch64-linux-gcc: note: valid arguments to '-march=' are: abi-default la464 la64v1.0 la64v1.1 la664 loongarch64 native; did you mean 'la64v1.0'?
>> loongarch64-linux-gcc: error: unrecognized argument in option '-mabi=ilp32s'
loongarch64-linux-gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
make[3]: *** [scripts/Makefile.build:289: scripts/mod/empty.o] Error 1 shuffle=3714732041
>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
loongarch64-linux-gcc: note: valid arguments to '-march=' are: abi-default la464 la64v1.0 la64v1.1 la664 loongarch64 native; did you mean 'la64v1.0'?
>> loongarch64-linux-gcc: error: unrecognized argument in option '-mabi=ilp32s'
loongarch64-linux-gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
make[3]: *** [scripts/Makefile.build:184: scripts/mod/devicetable-offsets.s] Error 1 shuffle=3714732041
make[3]: Target 'scripts/mod/' not remade because of errors.
make[2]: *** [Makefile:1336: prepare0] Error 2 shuffle=3714732041
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3714732041
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=3714732041
make: Target 'prepare' not remade because of errors.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread* loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
@ 2026-08-10 19:47 kernel test robot
2026-08-10 20:01 ` Arnd Bergmann
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2026-08-10 19:47 UTC (permalink / raw)
To: Huacai Chen; +Cc: oe-kbuild-all, linux-kernel, Arnd Bergmann, Jiaxun Yang
Hi Huacai,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 06cf61899d6498b33e4b7c87d99d5bd471ccc375
commit: 3d9aba6618d115750729bba2d1f8af180bd7d3bd LoongArch: Adjust build infrastructure for 32BIT/64BIT
date: 4 months ago
config: loongarch-randconfig-001-20260811 (https://download.01.org/0day-ci/archive/20260811/202608110230.c32X9KXj-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260811/202608110230.c32X9KXj-lkp@intel.com/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
| Fixes: 3d9aba6618d1 ("LoongArch: Adjust build infrastructure for 32BIT/64BIT")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608110230.c32X9KXj-lkp@intel.com/
All errors (new ones prefixed by >>):
>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
loongarch64-linux-gcc: note: valid arguments to '-march=' are: abi-default la464 la64v1.0 la64v1.1 la664 loongarch64 native; did you mean 'la64v1.0'?
loongarch64-linux-gcc: error: unrecognized argument in option '-mabi=ilp32s'
loongarch64-linux-gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
loongarch64-linux-gcc: note: valid arguments to '-march=' are: abi-default la464 la64v1.0 la64v1.1 la664 loongarch64 native; did you mean 'la64v1.0'?
loongarch64-linux-gcc: error: unrecognized argument in option '-mabi=ilp32s'
loongarch64-linux-gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
make[3]: *** [scripts/Makefile.build:289: scripts/mod/empty.o] Error 1 shuffle=28659922
>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
loongarch64-linux-gcc: note: valid arguments to '-march=' are: abi-default la464 la64v1.0 la64v1.1 la664 loongarch64 native; did you mean 'la64v1.0'?
loongarch64-linux-gcc: error: unrecognized argument in option '-mabi=ilp32s'
loongarch64-linux-gcc: note: valid arguments to '-mabi=' are: lp64d lp64f lp64s
make[3]: *** [scripts/Makefile.build:184: scripts/mod/devicetable-offsets.s] Error 1 shuffle=28659922
make[3]: Target 'scripts/mod/' not remade because of errors.
make[2]: *** [Makefile:1336: prepare0] Error 2 shuffle=28659922
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=28659922
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2 shuffle=28659922
make: Target 'prepare' not remade because of errors.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
2026-08-10 19:47 kernel test robot
@ 2026-08-10 20:01 ` Arnd Bergmann
0 siblings, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2026-08-10 20:01 UTC (permalink / raw)
To: kernel test robot, Huacai Chen; +Cc: oe-kbuild-all, linux-kernel, Jiaxun Yang
On Mon, Aug 10, 2026, at 21:47, kernel test robot wrote:
>
> tree:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> master
> head: 06cf61899d6498b33e4b7c87d99d5bd471ccc375
> commit: 3d9aba6618d115750729bba2d1f8af180bd7d3bd LoongArch: Adjust
> build infrastructure for 32BIT/64BIT
> date: 4 months ago
> config: loongarch-randconfig-001-20260811
> (https://download.01.org/0day-ci/archive/20260811/202608110230.c32X9KXj-lkp@intel.com/config)
> compiler: loongarch64-linux-gcc (GCC) 15.2.0
> reproduce (this is a W=1 build):
> (https://download.01.org/0day-ci/archive/20260811/202608110230.c32X9KXj-lkp@intel.com/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
> | Fixes: 3d9aba6618d1 ("LoongArch: Adjust build infrastructure for
> 32BIT/64BIT")
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes:
> https://lore.kernel.org/oe-kbuild-all/202608110230.c32X9KXj-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
>>> loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0'
I see that this option is supported by gcc-16 but not gcc-15.
Clang-22 also doesn't have it, not sure about clang-23 or higher.
How about this change?
--- a/arch/loongarch/Kconfig
+++ b/arch/loongarch/Kconfig
@@ -224,6 +224,7 @@ choice
config 32BIT
bool "32-bit kernel"
+ depends on GCC_VERSION >= 160000 || CLANG_VERSION >= 230000
help
Select this option if you want to build a 32-bit kernel.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-10 20:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29 21:46 loongarch64-linux-gcc: error: unrecognized argument in option '-march=la32v1.0' kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-08-10 19:47 kernel test robot
2026-08-10 20:01 ` Arnd Bergmann
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.