Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944146 - sys-kernel/gentoo-kernel-6.6.58-r1: unable to compile on RPi4 due to pahole eating all memory
Summary: sys-kernel/gentoo-kernel-6.6.58-r1: unable to compile on RPi4 due to pahole e...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2024-11-20 14:03 UTC by kavol
Modified: 2024-11-20 14:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kavol 2024-11-20 14:03:14 UTC
Trying to update world on my Raspberry Pi 4 with 4 GiB RAM recently caused the machine to hang.
On second try, with top running on another connection, the last thing I see is it was compiling the kernel and pahole eating the whole memory and ioswap getting above 90% then the machine stops responding completely (top screen no more refreshed, trying new ssh connection hangs indefinitely ...) After invoking OOM killer manually via sysrq, it returns to normal - however emerge finishes with error, without installing the new kernel obviously.

Reproducible: Always

Steps to Reproduce:
1. have Gentoo on Raspberry Pi with 4 GiB RAM
2. emerge -1 sys-kernel/gentoo-kernel

Actual Results:  
system hangs
emerge output ends in:

+ aarch64-unknown-linux-gnu-ld.bfd -EL -maarch64elf -z noexecstack --no-warn-rwx-segments --no-undefined -X -shared -Bsymbolic -z notext --no-apply-dynamic-relocs --fix-cortex-a53-843419 --build-id=sha1 -X --orphan-handling=warn --script=./arch/arm64/kernel/vmlinux.lds -o .tmp_vmlinux.btf --whole-archive vmlinux.a .vmlinux.export.o init/version-timestamp.o --no-whole-archive --start-group ./drivers/firmware/efi/libstub/lib.a --end-group
+ info BTF .btf.vmlinux.bin.o
+ printf '  %-7s %s\n' BTF .btf.vmlinux.bin.o
  BTF     .btf.vmlinux.bin.o
+ LLVM_OBJCOPY=aarch64-unknown-linux-gnu-objcopy
+ pahole -J --btf_gen_floats -j --lang_exclude=rust --skip_encoding_btf_inconsistent_proto --btf_gen_optimized .tmp_vmlinux.btf


Expected Results:  
emerge finishes cleanly
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-20 14:09:04 UTC
Maybe we should backport https://lore.kernel.org/linux-kbuild/20241102100452.793970-1-flo@geekplace.eu/.