2022-10-01 20:50:16

by kernel test robot

[permalink] [raw]
Subject: {standard input}:1440: Error: unrecognized opcode: `mbar'

Hi Christophe,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: b357fd1c2afc1a3e1b73dc4574bb7ac0e3bd4193
commit: 2255411d1d0f0661d1e5acd5f6edf4e6652a345a powerpc/44x: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')
date: 9 weeks ago
config: powerpc-randconfig-r015-20221001
compiler: powerpc-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2255411d1d0f0661d1e5acd5f6edf4e6652a345a
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 2255411d1d0f0661d1e5acd5f6edf4e6652a345a
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

{standard input}: Assembler messages:
>> {standard input}:1440: Error: unrecognized opcode: `mbar'
{standard input}:1457: Error: unrecognized opcode: `mbar'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
Selected by [y]:
- PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]

--
0-DAY CI Kernel Test Service
https://01.org/lkp


Attachments:
(No filename) (1.83 kB)
config (148.27 kB)
Download all attachments

2022-10-02 18:12:47

by Christophe Leroy

[permalink] [raw]
Subject: Re: {standard input}:1440: Error: unrecognized opcode: `mbar'



Le 01/10/2022 à 22:39, kernel test robot a écrit :
> Hi Christophe,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: b357fd1c2afc1a3e1b73dc4574bb7ac0e3bd4193
> commit: 2255411d1d0f0661d1e5acd5f6edf4e6652a345a powerpc/44x: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')
> date: 9 weeks ago
> config: powerpc-randconfig-r015-20221001
> compiler: powerpc-linux-gcc (GCC) 12.1.0
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2255411d1d0f0661d1e5acd5f6edf4e6652a345a
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 2255411d1d0f0661d1e5acd5f6edf4e6652a345a
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> | Reported-by: kernel test robot <[email protected]>
>
> All errors (new ones prefixed by >>):
>
> {standard input}: Assembler messages:
>>> {standard input}:1440: Error: unrecognized opcode: `mbar'
> {standard input}:1457: Error: unrecognized opcode: `mbar'

When you select CONFIG_TOOLCHAIN_DEFAULT_CPU=y, you have to provide a
compiler which matches your config.

Here you are building for powerpc 44x, seems like your version of GCC
doesn't default to -mpcu=440


>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for HOTPLUG_CPU
> Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
> Selected by [y]:
> - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
>

2022-10-13 02:31:48

by Chen, Rong A

[permalink] [raw]
Subject: Re: [kbuild-all] Re: {standard input}:1440: Error: unrecognized opcode: `mbar'



On 10/3/2022 1:57 AM, Christophe Leroy wrote:
>
>
> Le 01/10/2022 à 22:39, kernel test robot a écrit :
>> Hi Christophe,
>>
>> FYI, the error/warning still remains.
>>
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head: b357fd1c2afc1a3e1b73dc4574bb7ac0e3bd4193
>> commit: 2255411d1d0f0661d1e5acd5f6edf4e6652a345a powerpc/44x: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')
>> date: 9 weeks ago
>> config: powerpc-randconfig-r015-20221001
>> compiler: powerpc-linux-gcc (GCC) 12.1.0
>> reproduce (this is a W=1 build):
>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>> chmod +x ~/bin/make.cross
>> # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2255411d1d0f0661d1e5acd5f6edf4e6652a345a
>> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>> git fetch --no-tags linus master
>> git checkout 2255411d1d0f0661d1e5acd5f6edf4e6652a345a
>> # save the config file
>> mkdir build_dir && cp config build_dir/.config
>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash
>>
>> If you fix the issue, kindly add following tag where applicable
>> | Reported-by: kernel test robot <[email protected]>
>>
>> All errors (new ones prefixed by >>):
>>
>> {standard input}: Assembler messages:
>>>> {standard input}:1440: Error: unrecognized opcode: `mbar'
>> {standard input}:1457: Error: unrecognized opcode: `mbar'
>
> When you select CONFIG_TOOLCHAIN_DEFAULT_CPU=y, you have to provide a
> compiler which matches your config.
>
> Here you are building for powerpc 44x, seems like your version of GCC
> doesn't default to -mpcu=440

Hi Christophe,

Thanks for the reply, we'll disable CONFIG_TOOLCHAIN_DEFAULT_CPU for
powerpc.

Best Regards,
Rong Chen

>
>
>>
>> Kconfig warnings: (for reference only)
>> WARNING: unmet direct dependencies detected for HOTPLUG_CPU
>> Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n])
>> Selected by [y]:
>> - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=y] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y]
>>
> _______________________________________________
> kbuild-all mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>