2023-11-21 14:31:00

by Naresh Kamboju

[permalink] [raw]
Subject: SuperH: fs/namespace.c: In function '__se_sys_listmount': syscalls.h:258:9: internal compiler error: in change_address_1, at emit-rtl.c:2275

The SuperH tinyconfig and allnoconfig builds started failing from 20231120 tag
Please find the following builds warnings / errors.

sh:
build:
* gcc-11-tinyconfig

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

Build errors:
----------
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=sh
CROSS_COMPILE=sh4-linux-gnu- 'CC=sccache sh4-linux-gnu-gcc'
'HOSTCC=sccache gcc'
Generating include/generated/machtypes.h
<stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp]
during RTL pass: final
In file included from /builds/linux/fs/namespace.c:11:
/builds/linux/fs/namespace.c: In function '__se_sys_listmount':
/builds/linux/include/linux/syscalls.h:258:9: internal compiler error:
in change_address_1, at emit-rtl.c:2275
258 | }
\
| ^
/builds/linux/include/linux/syscalls.h:233:9: note: in expansion of
macro '__SYSCALL_DEFINEx'
233 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
/builds/linux/include/linux/syscalls.h:225:36: note: in expansion of
macro 'SYSCALL_DEFINEx'
225 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name,
__VA_ARGS__)
| ^~~~~~~~~~~~~~~
/builds/linux/fs/namespace.c:5019:1: note: in expansion of macro
'SYSCALL_DEFINE4'
5019 | SYSCALL_DEFINE4(listmount, const struct mnt_id_req __user *, req,
| ^~~~~~~~~~~~~~~
0x129d9d7 internal_error(char const*, ...)
???:0
0x5dbc4d fancy_abort(char const*, int, char const*)
???:0
0x7ddd3e adjust_address_1(rtx_def*, machine_mode, poly_int<1u, long>,
int, int, int, poly_int<1u, long>)
???:0
0x81dd91 output_operand(rtx_def*, int)
???:0
0x81e5a4 output_asm_insn(char const*, rtx_def**)
???:0
0x8226a8 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
{standard input}: Assembler messages:
{standard input}:11800: Warning: end of file not at end of a line;
newline inserted
{standard input}:11856: Error: missing operand
{standard input}:11856: Error: invalid operands for opcode
{standard input}:11837: Error: displacement to undefined symbol .L2699
overflows 8-bit field
{standard input}:11690: Error: pcrel too far
{standard input}:11705: Error: pcrel too far
{standard input}:11707: Error: pcrel too far
{standard input}:11712: Error: pcrel too far
{standard input}:11719: Error: pcrel too far
{standard input}:11732: Error: pcrel too far
{standard input}:11737: Error: pcrel too far
{standard input}:11760: Error: pcrel too far
{standard input}:11772: Error: pcrel too far
{standard input}:11777: Error: pcrel too far
{standard input}:11778: Error: pcrel too far
{standard input}:11788: Error: pcrel too far
{standard input}:11791: Error: pcrel too far
{standard input}:11807: Error: pcrel too far
{standard input}:11809: Error: pcrel too far
{standard input}:11844: Error: pcrel too far
make[4]: *** [/builds/linux/scripts/Makefile.build:243: fs/namespace.o] Error 1


kernel: 6.7.0-rc2
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_ref: master
git_sha: 07b677953b9dca02928be323e2db853511305fa9
git_describe: next-20231121
Test details: https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231121

Regressions (compared to build next-20231117)
------------------------------------------------------------------------

sh:
build:
* gcc-8-allnoconfig
* gcc-11-tinyconfig
* gcc-11-allnoconfig
* gcc-8-tinyconfig

Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231121/testrun/21199202/suite/build/test/gcc-11-tinyconfig/history/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20231121/testrun/21199202/suite/build/test/gcc-11-tinyconfig/log


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


2023-11-21 15:07:43

by Arnd Bergmann

[permalink] [raw]
Subject: Re: SuperH: fs/namespace.c: In function '__se_sys_listmount': syscalls.h:258:9: internal compiler error: in change_address_1, at emit-rtl.c:2275

On Tue, Nov 21, 2023, at 15:25, Naresh Kamboju wrote:
> The SuperH tinyconfig and allnoconfig builds started failing from 20231120 tag
> Please find the following builds warnings / errors.
>
> /builds/linux/include/linux/syscalls.h:233:9: note: in expansion of
> macro '__SYSCALL_DEFINEx'
> 233 | __SYSCALL_DEFINEx(x, sname, __VA_ARGS__)
> | ^~~~~~~~~~~~~~~~~
> /builds/linux/include/linux/syscalls.h:225:36: note: in expansion of
> macro 'SYSCALL_DEFINEx'
> 225 | #define SYSCALL_DEFINE4(name, ...) SYSCALL_DEFINEx(4, _##name,
> __VA_ARGS__)
> | ^~~~~~~~~~~~~~~
> /builds/linux/fs/namespace.c:5019:1: note: in expansion of macro
> 'SYSCALL_DEFINE4'
> 5019 | SYSCALL_DEFINE4(listmount, const struct mnt_id_req __user *, req,
> | ^~~~~~~~~~~~~~~
> 0x129d9d7 internal_error(char const*, ...)
> ???:0
> 0x5dbc4d fancy_abort(char const*, int, char const*)
> ???:0
> 0x7ddd3e adjust_address_1(rtx_def*, machine_mode, poly_int<1u, long>,
> int, int, int, poly_int<1u, long>)
> ???:0
> 0x81dd91 output_operand(rtx_def*, int)
> ???:0
> 0x81e5a4 output_asm_insn(char const*, rtx_def**)
> ???:0
> 0x8226a8 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
> ???:0
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.

It's clearly a compiler bug, and I get the same thing with
all sh4 compilers I have on my machine, I tried with gcc-7.5
through gcc-13.

I also see that the defconfigs work fine, so it's probably
just hitting some weird corner case. You could try opening
a bug report against gcc, but I'm not sure it's worth it.

Arnd

Subject: Re: SuperH: fs/namespace.c: In function '__se_sys_listmount': syscalls.h:258:9: internal compiler error: in change_address_1, at emit-rtl.c:2275

On Tue, 2023-11-21 at 16:05 +0100, Arnd Bergmann wrote:
> I also see that the defconfigs work fine, so it's probably
> just hitting some weird corner case. You could try opening
> a bug report against gcc, but I'm not sure it's worth it.

Please do and CC me and Oleg Endo who is still taking care of the backend.

Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913