[PATCH 1/2] powerpc/64: Set default CPU in Kconfig

Christophe Leroy christophe.leroy at csgroup.eu
Wed Feb 1 22:41:10 AEDT 2023



Le 01/02/2023 à 12:31, Naresh Kamboju a écrit :
> Following build regression started from next-20230131.
> 
> Regressions found on powerpc:
> 
>    build/clang-nightly-tqm8xx_defconfig
>    build/clang-nightly-ppc64e_defconfig
> 
> 
> make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=0 tqm8xx_defconfig
> make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=powerpc CROSS_COMPILE=powerpc64le-linux-gnu- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=0
> 
> error: unknown target CPU '860'
> note: valid target CPU values are: generic, 440, 450, 601, 602, 603, 603e, 603ev, 604, 604e, 620, 630, g3, 7400, g4, 7450, g4+, 750, 8548, 970, g5, a2, e500, e500mc, e5500, power3, pwr3, power4, pwr4, power5, pwr5, power5x, pwr5x, power6, pwr6, power6x, pwr6x, power7, pwr7, power8, pwr8, power9, pwr9, power10, pwr10, powerpc, ppc, ppc32, powerpc64, ppc64, powerpc64le, ppc64le, future
> make[2]: *** [/builds/linux/scripts/Makefile.build:114: scripts/mod/devicetable-offsets.s] Error 1
> error: unknown target CPU '860'
> note: valid target CPU values are: generic, 440, 450, 601, 602, 603, 603e, 603ev, 604, 604e, 620, 630, g3, 7400, g4, 7450, g4+, 750, 8548, 970, g5, a2, e500, e500mc, e5500, power3, pwr3, power4, pwr4, power5, pwr5, power5x, pwr5x, power6, pwr6, power6x, pwr6x, power7, pwr7, power8, pwr8, power9, pwr9, power10, pwr10, powerpc, ppc, ppc32, powerpc64, ppc64, powerpc64le, ppc64le, future
> make[2]: *** [/builds/linux/scripts/Makefile.build:252: scripts/mod/empty.o] Error 1


On GCC, the possible values are:

ppc-linux-gcc: note : valid arguments to ‘-mcpu=’ are: 401 403 405 405fp 
440 440fp 464 464fp 476 476fp 505 601 602 603 603e 604 604e 620 630 740 
7400 7450 750 801 821 823 8540 8548 860 970 G3 G4 G5 a2 cell e300c2 
e300c3 e500mc e500mc64 e5500 e6500 ec603e native power3 power4 power5 
power5+ power6 power6x power7 power8 powerpc powerpc64 powerpc64le rs64 
titan

How do you tell CLANG that you are building for powerpc 8xx ?

> 
>      
> Reported-by: Linux Kernel Functional Testing <lkft at linaro.org>
> 
> https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230201/testrun/14479384/suite/build/test/clang-nightly-tqm8xx_defconfig/history/
> 
> The bisection pointed to this commit,
>    45f7091aac35 ("powerpc/64: Set default CPU in Kconfig")
> 
> --
> Linaro LKFT
> https://lkft.linaro.org


More information about the Linuxppc-dev mailing list