Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
s25765 opened this issue Feb 28, 2023 · 2 comments
Open

Comments

@s25765
Copy link

s25765 commented Feb 28, 2023

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
Copy link
Author

s25765 commented Feb 28, 2023

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
Copy link
Author

s25765 commented Feb 28, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant