2023-11-27 08:58:05

by Naresh Kamboju

[permalink] [raw]
Subject: parisc: bug.h:71:17: error: invalid 'asm': operand number out of range

The parisc tinyconfig built with gcc-11 failed on mainline v6.7-rc3.

git_describe: v6.7-rc3
git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline

parisc:
build:
* gcc-11-tinyconfig

In file included from lib/math/int_log.c:14:
lib/math/int_log.c: In function 'intlog2':
arch/parisc/include/asm/bug.h:71:17: error: invalid 'asm': operand
number out of range
71 | asm volatile("\n"
\
| ^~~


Reported-by: Linux Kernel Functional Testing <[email protected]>

Links:
- https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.7-rc3/testrun/21323529/suite/build/test/gcc-11-tinyconfig/log
- https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.7-rc3/testrun/21323529/suite/build/test/gcc-11-tinyconfig/history/
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2Yk9c7RsS6V5pdDdOYzHSrlpZQk/

--
Linaro LKFT
https://lkft.linaro.org


Subject: Re: parisc: bug.h:71:17: error: invalid 'asm': operand number out of range

On 27.11.23 09:57, Naresh Kamboju wrote:
> The parisc tinyconfig built with gcc-11 failed on mainline v6.7-rc3.
>
> git_describe: v6.7-rc3
> git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline
>
> parisc:
> build:
> * gcc-11-tinyconfig
>
> In file included from lib/math/int_log.c:14:
> lib/math/int_log.c: In function 'intlog2':
> arch/parisc/include/asm/bug.h:71:17: error: invalid 'asm': operand
> number out of range
> 71 | asm volatile("\n"
> \
> | ^~~
>
>
> Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> Links:
> - https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.7-rc3/testrun/21323529/suite/build/test/gcc-11-tinyconfig/log
> - https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.7-rc3/testrun/21323529/suite/build/test/gcc-11-tinyconfig/history/
> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2Yk9c7RsS6V5pdDdOYzHSrlpZQk/

Thx for the report. FWIW & TWIMC, briefly looked into this and to my
untrained eyes it looks like the kernel test robot ran into this a few
days ago already with a randconfig and gcc13:

https://lore.kernel.org/all/[email protected]/

Ciao, Thorsten

2023-11-27 10:02:28

by Helge Deller

[permalink] [raw]
Subject: Re: parisc: bug.h:71:17: error: invalid 'asm': operand number out of range

On 11/27/23 10:20, Linux regression tracking (Thorsten Leemhuis) wrote:
> On 27.11.23 09:57, Naresh Kamboju wrote:
>> The parisc tinyconfig built with gcc-11 failed on mainline v6.7-rc3.
>>
>> git_describe: v6.7-rc3
>> git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline
>>
>> parisc:
>> build:
>> * gcc-11-tinyconfig
>>
>> In file included from lib/math/int_log.c:14:
>> lib/math/int_log.c: In function 'intlog2':
>> arch/parisc/include/asm/bug.h:71:17: error: invalid 'asm': operand
>> number out of range
>> 71 | asm volatile("\n"
>> \
>> | ^~~
>>
>>
>> Reported-by: Linux Kernel Functional Testing <[email protected]>
>>
>> Links:
>> - https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.7-rc3/testrun/21323529/suite/build/test/gcc-11-tinyconfig/log
>> - https://qa-reports.linaro.org/lkft/linux-mainline-master/build/v6.7-rc3/testrun/21323529/suite/build/test/gcc-11-tinyconfig/history/
>> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2Yk9c7RsS6V5pdDdOYzHSrlpZQk/

Thanks for reporting!

I've pushed a patch into the for-next git tree to fix this.
https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/log/?h=for-next

Thanks!
Helge