Re: parallel make broken with ORC unwinder

From: Josh Poimboeuf
Date: Tue Dec 19 2017 - 11:42:01 EST


On Tue, Dec 19, 2017 at 04:42:12PM +0100, Vegard Nossum wrote:
> Hi,
>
> When I run make -j64 on a v4.14 kernel or newer with ORC_UNWINDER=y
> the kernel build breaks like this:
>
> $ make -j64
> CHK include/config/kernel.release
> CHK include/generated/uapi/linux/version.h
> DESCEND objtool
> CC scripts/mod/empty.o
> [...]
> security/smack/smack_lsm.o: warning: objtool: elf_update: cannot write
> data to file
> [...]
> drivers/atm/uPD98402.o: warning: objtool: elf_update: cannot write data to file
> AR arch/x86/entry/vdso/built-in.o
> CC security/keys/permission.o
> CC arch/x86/entry/vsyscall/vsyscall_gtod.o
> CC security/keys/process_keys.o
> CC [M] arch/x86/kvm/../../../virt/kvm/irqchip.o
> Segmentation fault
> make[2]: *** [drivers/atm/uPD98402.o] Error 139
> make[2]: *** Waiting for unfinished jobs....

Hi Vegard,

Thanks for reporting this. Can you clarify why rewriting the file in
place seems buggy?

--
Josh