arm64: Build error with gcc 6
Hello,
commit e1a50de37860 ("arm64: cputype: Silence Sparse warnings") introduces "UL" suffix to a hex number, but it causes a build error with gcc-6 series. I've hit below error with 6.2.1 and 6.4.1. Of course this is resolved by the latest stable gcc-7.2.1. But from the compatibility point of view, should we revert it?
AS arch/arm64/kernel/head.o/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S: Assembler messages:/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: junk at end of line, first unrecognized character is L' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: unexpected characters following instruction at operand 2 -- movz x1,:abs_g1_s:0xff00ffffffUL' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: unexpected characters following instruction at operand 2 -- `movk x1,:abs_g0_nc:0xff00ffffffUL' make[2]: *** [/home/mhiramat/ksrc/linux/scripts/Makefile.build:425: arch/arm64/kernel/head.o] error 1
I've checked with below 2 latest gccs.
Thank you,
Signature · 1 line
Masami Hiramatsu <[email protected]>
Hi Masami Hiramatsu,
Quoted 15 lines · Masami Hiramatsu
commit
e1a50de37860("arm64: cputype: Silence Sparse warnings") introduces "UL" suffix to a hex number, but it causes a build error with gcc-6 series. I've hit below error with 6.2.1 and 6.4.1. Of course this is resolved by the latest stable gcc-7.2.1. But from the compatibility point of view, should we revert it?AS
arch/arm64/kernel/head.o/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S: Assembler messages:/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: junk at end of line, first unrecognized character isL' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: unexpected characters following instruction at operand 2 --movz x1,:abs_g1_s:0xff00ffffffUL'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: unexpected characters following instruction at operand 2 -- `movk x1,:abs_g0_nc:0xff00ffffffUL' make[2]: *** [/home/mhiramat/ksrc/linux/scripts/Makefile.build:425:arch/arm64/kernel/head.o] error 1
Quoted 5 lines
I've checked with below 2 latest gccs.
The fix is pending:
This is in Linus' tree now, so should be in -rc3.
baruch
Signature · 3 lines
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -Quoted 22 lines · On Sun, 25 Feb 2018 07:14:44 +0200 Baruch Siach <[email protected]> wrote:
Hi Masami Hiramatsu,
Quoted 19 lines · Masami Hiramatsu
commit
e1a50de37860("arm64: cputype: Silence Sparse warnings") introduces "UL" suffix to a hex number, but it causes a build error with gcc-6 series. I've hit below error with 6.2.1 and 6.4.1. Of course this is resolved by the latest stable gcc-7.2.1. But from the compatibility point of view, should we revert it?AS
arch/arm64/kernel/head.o/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S: Assembler messages:/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: found 'L', expected: ')'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: junk at end of line, first unrecognized character isL' /home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: unexpected characters following instruction at operand 2 --movz x1,:abs_g1_s:0xff00ffffffUL'/home/mhiramat/ksrc/linux/arch/arm64/kernel/head.S:677: Error: unexpected characters following instruction at operand 2 -- `movk x1,:abs_g0_nc:0xff00ffffffUL' make[2]: *** [/home/mhiramat/ksrc/linux/scripts/Makefile.build:425:arch/arm64/kernel/head.o] error 1I've checked with below 2 latest gccs.
Quoted 7 lines
The fix is pending:
This is in Linus' tree now, so should be in -rc3.
Great! I used linux-next tree and hit above bug, so I'll use linus tree.
Thank you,
Signature · 1 line
Masami Hiramatsu <[email protected]>