ivandavidov / minimal

Minimal Linux Live (MLL) is a tiny educational Linux distribution, which is designed to be built from scratch by using a collection of automated shell scripts. Minimal Linux Live offers a core environment with just the Linux kernel, GNU C library, and Busybox userland utilities.
https://ivandavidov.github.io/minimal
GNU General Public License v3.0
1.52k stars 297 forks source link

make[2]: *** [scripts/Makefile.build:357: arch/x86/entry/thunk_64.o] Error 1 #271

Open s25765 opened 1 year ago

s25765 commented 1 year ago

Hi,

When I ran build_minimal_linux_live.sh, it exited with error, then I cd to the kernel directory and ran make again, I got following errors: steveh@ubuntu:~/minimal_linux_live_15-Dec-2019/work/kernel/linux-5.4.3$ make CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h AS arch/x86/entry/thunk_64.o arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table make[2]: [scripts/Makefile.build:357: arch/x86/entry/thunk_64.o] Error 1 make[2]: Deleting file 'arch/x86/entry/thunk_64.o' make[1]: [scripts/Makefile.build:509: arch/x86/entry] Error 2 make: [Makefile:1652: arch/x86] Error 2

How can I fix this error?

Thanks, SteveH

s25765 commented 1 year ago

I also tried running make with CFLAGS defined and specified bzImage. See screen output below.

steveh@ubuntu:~/minimal_linux_live_15-Dec-2019/work/kernel/linux-5.4.3$ make "CFLAGS=-Os -s -fno-stack-protector -fomit-frame-pointer -U_FORTIFY_SOURCE" bzImage CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h AS arch/x86/entry/thunk_64.o arch/x86/entry/thunk_64.o: warning: objtool: missing symbol table make[2]: [scripts/Makefile.build:357: arch/x86/entry/thunk_64.o] Error 1 make[2]: Deleting file 'arch/x86/entry/thunk_64.o' make[1]: [scripts/Makefile.build:509: arch/x86/entry] Error 2 make: [Makefile:1652: arch/x86] Error 2

s25765 commented 1 year ago

Good news -- I changed kernel version to linux-5.19.9.tar.xz in .config, now 02_build_kernel.sh executed successfully. Here is the last few lines of screen output:

HDRINST usr/include/asm/ipcbuf.h
HDRINST usr/include/asm/unistd_32.h
HDRINST usr/include/asm/param.h
HDRINST usr/include/asm/fcntl.h
HDRINST usr/include/asm/ioctls.h
HDRINST usr/include/asm/resource.h
HDRINST usr/include/asm/termios.h
HDRINST usr/include/asm/poll.h
HDRINST usr/include/asm/types.h
INSTALL /home/steveh/minimal_linux_live_15-Dec-2019/work/kernel/kernel_installed/include

BUILD KERNEL END steveh@ubuntu:~/minimal_linux_live_15-Dec-2019$ echo $? 0

So this ticket can be closed.

Thanks!