Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4988

Raspberry Pi OS • Kernel build failing

$
0
0
I have 3 raspberry pi's, but can only successfully build a kernel on one of the three.

Code:

Calculon:  Linux calculon 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/LinuxPi4:            Linux pi4 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/LinuxPi5:            Linux pi5 6.1.0-rpi7-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
Following the instructions located at https://www.raspberrypi.com/documentati ... el-locally, I am able to clone the kernel source from the repository, but when I start the builds, only Calculon completes the task successfully. The other two boards, a pi4 and pi5, end the make before completion with the following error:

Code:

    CC      kernel/iomem.o  CC      kernel/rseq.o  UPD     kernel/config_data  GZIP    kernel/config_data.gz  CC [M]  kernel/configs.o  AR      kernel/built-in.amake: *** [Makefile:2014: .] Error 2
Line 2014 of the Makefile is:

Code:

  2014          $(Q)$(MAKE) $(build)=$@ need-builtin=1 need-modorder=1 $(single-goals)
I cannot determine what the difference in the environments could be that is causing the error. Clearly something to do with need-builtin=1, but I cannot seem to locate a Makefile reference that discusses what that actually does. I tried using the -d flag to get additional information, but it didn't make much sense to me:

Code:

...Considering target file 'include/generated/vdso-offsets.h'.File 'include/generated/vdso-offsets.h' was considered already.Reaping winning child 0x55b6240010 PID 316342Removing child 0x55b6240010 PID 316342 from chain.Considering target file 'Image.gz'. File 'Image.gz' does not exist.   Considering target file 'vmlinux'.    File 'vmlinux' does not exist.      Considering target file 'vmlinux_o'.       File 'vmlinux_o' does not exist.          Considering target file '.'.           File '.' does not exist.            Considering target file 'prepare'.             File 'prepare' does not exist.               Considering target file 'prepare0'.               File 'prepare0' was considered already.               Pruning file 'prepare0'.              Pruning file 'prepare0'.             Considering target file 'stack_protector_prepare'.             File 'stack_protector_prepare' was considered already.             Considering target file 'vdso_prepare'.             File 'vdso_prepare' was considered already.             Considering target file 'prepare0'.             File 'prepare0' was considered already.             Finished prerequisites of target file 'prepare'.            Must remake target 'prepare'.            Successfully remade target file 'prepare'.           Considering target file 'prepare'.           File 'prepare' was considered already.           Finished prerequisites of target file '.'.          Must remake target '.'.Need a job token; we don't have childrenPutting child 0x55b623ead0 (.) PID 316421 on the chain.          Recipe of '.' is being run.          Pruning file '.'.          Pruning file '.'.         Considering target file 'autoksyms_recursive'.         File 'autoksyms_recursive' was considered already.         Considering target file 'FORCE'.         File 'FORCE' was considered already.         Pruning file '.'.       Considering target file 'vmlinux.a'.        File 'vmlinux.a' does not exist.          Pruning file '.'.          Pruning file '.'.          Pruning file '.'....   File 'modules_prepare' does not exist.    Pruning file 'prepare'.   Considering target file 'prepare'.   File 'prepare' was considered already.   Finished prerequisites of target file 'modules_prepare'.  Must remake target 'modules_prepare'.Live child 0x55b623ead0 (.) PID 316421Need a job token; we have childrenLive child 0x55b623ead0 (.) PID 316421Obtained token for child 0x55b6376850 (modules_prepare).Reading makefile 'scripts/Kbuild.include' (search path) (no ~ expansion)...Reading makefile 'scripts/Makefile.compiler' (search path) (no ~ expansion)...Reading makefile 'Kbuild' (search path) (no ~ expansion)...Reading makefile 'scripts/Makefile.lib' (search path) (no ~ expansion)...Live child 0x55b623ead0 (.) PID 316421Reading makefile '..checked-atomic-arch-fallback.h.cmd' (search path) (don't care) (no ~ expansion)...Live child 0x55b623ead0 (.) PID 316421Reading makefile '..checked-atomic-instrumented.h.cmd' (search path) (don't care) (no ~ expansion)...Reading makefile '..checked-atomic-long.h.cmd' (search path) (don't care) (no ~ expansion)...Reading makefile 'arch/arm64/kernel/.asm-offsets.s.cmd' (search path) (don't care) (no ~ expansion)...Live child 0x55b623ead0 (.) PID 316421Live child 0x55b623ead0 (.) PID 316421Putting child 0x55b6376850 (modules_prepare) PID 316431 on the chain.  Recipe of 'modules_prepare' is being run. Considering target file 'modpost'.  File 'modpost' does not exist.  ...                       Considering target file 'kernel/time'. File 'kernel/time' was considered already. Considering target file 'kernel/trace'. File 'kernel/trace' was considered already. Finished prerequisites of target file 'kernel/'.Must remake target 'kernel/'.Need a job token; we don't have childrenSuccessfully remade target file 'kernel/'.Reaping winning child 0x5561cbdce0 PID 316779Removing child 0x5561cbdce0 PID 316779 from chain.Reaping losing child 0x55b623ead0 PID 316421make: *** [Makefile:2014: .] Error 2Removing child 0x55b623ead0 PID 316421 from chain.
I've tried to Google the problem, but I come up empty. Maybe I'm not asking the right question?

Thanks for any assistance that can be rendered.

Statistics: Posted by AndrewJ — Tue Feb 27, 2024 12:12 am



Viewing all articles
Browse latest Browse all 4988

Trending Articles