Re: Merge branch 'core-objtool-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

From: youling 257
Date: Wed Apr 08 2020 - 22:01:01 EST


d937a6dfc9428f470c3ce4d459c390944ddef538 caused 64bit kernel build
failed on 32bit userspace.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d937a6dfc9428f470c3ce4d459c390944ddef538

2020-04-08 16:13 GMT+08:00, youling 257 <youling257@xxxxxxxxx>:
> after this merge branch, build 64bit kernel failed on 32bit userspace.
>
>
> CC tools/objtool/builtin-check.o
> CC tools/objtool/builtin-orc.o
> In file included from check.h:10,
> from builtin-check.c:18:
> elf.h: In function âsec_offset_hashâ:
> elf.h:102:14: error: right shift count >= width of type
> [-Werror=shift-count-overflow]
> 102 | oh = offset >> 32;
> | ^~
> cc1: all warnings being treated as errors
> mv: ææèå'tools/objtool/.builtin-check.o.tmp' çæäçæ(stat): ææéäæäæçå
> make[6]: *** [/tools/build/Makefile.build:97ïtools/objtool/builtin-check.o]
> éè 1
> make[6]: *** æåçåæåæçäå....
> HOSTCC scripts/kallsyms
> In file included from check.h:10,
> from builtin-orc.c:17:
> elf.h: In function âsec_offset_hashâ:
> elf.h:102:14: error: right shift count >= width of type
> [-Werror=shift-count-overflow]
> 102 | oh = offset >> 32;
> | ^~
> In file included from arch/x86/decode.c:14:
> arch/x86/../../elf.h: In function âsec_offset_hashâ:
> arch/x86/../../elf.h:102:14: error: right shift count >= width of type
> [-Werror=shift-count-overflow]
> 102 | oh = offset >> 32;
> | ^~
> cc1: all warnings being treated as errors
> mv: ææèå'tools/objtool/.builtin-orc.o.tmp' çæäçæ(stat) CC
> tools/objtool/help.o
> : ææéäæäæçå
> make[6]: *** [/tools/build/Makefile.build:97ïtools/objtool/builtin-orc.o] éè
> 1
> CC tools/objtool/pager.o
> CC tools/objtool/parse-options.o
> CC tools/objtool/run-command.o
> CC tools/objtool/sigchain.o
> HOSTCC scripts/recordmcount
> CC tools/objtool/subcmd-config.o
> HOSTCC scripts/sorttable
> HOSTCC scripts/asn1_compiler
> HOSTCC scripts/extract-cert
> HOSTLD scripts/genksyms/genksyms
> cc1: all warnings being treated as errors
> mv: ææèå'tools/objtool/arch/x86/.decode.o.tmp' çæäçæ(stat): ææéäæäæçå
> make[7]: ***
> [/tools/build/Makefile.build:97ïtools/objtool/arch/x86/decode.o]
> éè 1
> make[6]: *** [/tools/build/Makefile.build:139ïarch/x86] éè 2
> make[5]: *** [Makefile:46ïtools/objtool/objtool-in.o] éè 2
> make[5]: *** æåçåæåæçäå....
>