build failure of malta_qemu_32r6_defconfig
Hi Thomas,
I was building v5.10.28 with malta_qemu_32r6_defconfig and noticed that it fails to build, so tried next-20210407 to see if it has been fixed. But linux-next also has the issue with gcc-10.
The error is:
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime':./arch/mips/include/asm/vdso/gettimeofday.h:103:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target
103 | asm volatile(
| ^~~
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_gettimeofday':
./arch/mips/include/asm/vdso/gettimeofday.h:33:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target
33 | asm volatile(
| ^~~
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_getres':
./arch/mips/include/asm/vdso/gettimeofday.h:123:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target
123 | asm volatile(
| ^~~
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime64':
./arch/mips/include/asm/vdso/gettimeofday.h:57:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target
57 | asm volatile(
| ^~~Any idea how to fix this? Please ignore if it has been reported before.
--
Regards
Sudip
Quoted 7 lines · Sudip Mukherjee <[email protected]> 于2021年4月8日周四 上午2:26写道:
Hi Thomas,
I was building v5.10.28 with
malta_qemu_32r6_defconfigand noticed that it fails to build, so tried next-20210407 to see if it has been fixed. But linux-next also has the issue with gcc-10.
Quoted 6 lines
The error is:
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime':./arch/mips/include/asm/vdso/gettimeofday.h:103:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target103 | asm volatile( | ^~~
this operation try to save lo and hi register, while they are not exisiting on r6.
We are working on figure out a patch for it.
Quoted 19 lines
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_gettimeofday':./arch/mips/include/asm/vdso/gettimeofday.h:33:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target33 | asm volatile( | ^~~ ./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_getres': ./arch/mips/include/asm/vdso/gettimeofday.h:123:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target 123 | asm volatile( | ^~~ ./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime64': ./arch/mips/include/asm/vdso/gettimeofday.h:57:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target 57 | asm volatile( | ^~~Any idea how to fix this? Please ignore if it has been reported before.
--
Regards
Sudip
Signature · 1 line
YunQiang Su
Thomas Bogendoerfer
maintainerQuoted 10 lines · YunQiang Su
Quoted 9 lines · Sudip Mukherjee <[email protected]> 于2021年4月8日周四 上午2:26写道:
Hi Thomas,
I was building v5.10.28 with
malta_qemu_32r6_defconfigand noticed that it fails to build, so tried next-20210407 to see if it has been fixed. But linux-next also has the issue with gcc-10.The error is:
Quoted 8 lines
Quoted 4 lines
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime':./arch/mips/include/asm/vdso/gettimeofday.h:103:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target103 | asm volatile( | ^~~this operation try to save lo and hi register, while they are not exisiting on r6.
We are working on figure out a patch for it.
looks like there is already a patch in patchwork, which just needs a workup:
https://patchwork.kernel.org/project/linux-mips/patch/[email protected]/
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
Hi Thomas,
Quoted 17 lines · Thomas Bogendoerfer
Quoted 15 lines · YunQiang Su
Quoted 13 lines · Sudip Mukherjee <[email protected]> 于2021年4月8日周四 上午2:26写道:
Hi Thomas,
I was building v5.10.28 with
malta_qemu_32r6_defconfigand noticed that it fails to build, so tried next-20210407 to see if it has been fixed. But linux-next also has the issue with gcc-10.The error is:
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime':./arch/mips/include/asm/vdso/gettimeofday.h:103:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target103 | asm volatile( | ^~~
Quoted 8 lines
Quoted 3 lines
this operation try to save lo and hi register, while they are not exisiting on r6.
We are working on figure out a patch for it.looks like there is already a patch in patchwork, which just needs a workup:
https://patchwork.kernel.org/project/linux-mips/patch/[email protected]/
Looks like there has been no response to it since last 8 months. Do you want me to respin it and send a proper patch?
--
Regards
Sudip
Thomas Bogendoerfer
maintainerQuoted 25 lines · Sudip Mukherjee
Hi Thomas,
Quoted 21 lines · Thomas Bogendoerfer
Quoted 18 lines · YunQiang Su
Quoted 7 lines · Sudip Mukherjee <[email protected]> 于2021年4月8日周四 上午2:26写道:
Hi Thomas,
I was building v5.10.28 with
malta_qemu_32r6_defconfigand noticed that it fails to build, so tried next-20210407 to see if it has been fixed. But linux-next also has the issue with gcc-10.Quoted 6 lines
The error is:
./arch/mips/include/asm/vdso/gettimeofday.h: In function '__vdso_clock_gettime':./arch/mips/include/asm/vdso/gettimeofday.h:103:2: error: the register 'lo' cannot be clobbered in 'asm' for the current target103 | asm volatile( | ^~~this operation try to save lo and hi register, while they are not exisiting on r6.
We are working on figure out a patch for it.
Quoted 7 lines
Quoted 4 lines
looks like there is already a patch in patchwork, which just needs a workup:
https://patchwork.kernel.org/project/linux-mips/patch/[email protected]/
Looks like there has been no response to it since last 8 months. Do you want me to respin it and send a proper patch?
that would me fantastic and much appreciated :-)
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]