build error for kernel
by gglq000 from LinuxQuestions.org on (#6Q37P)
The thing about building linux kernel is i have no idea where the error is and it does not tell clearly which file/line the error is coming from:
For example:
1)
Makefile:69: but there are so many makefiles in kernel source, it is impossible to tell which one?
2) make: *** [Makefile:1437: tools/objtool] Error 2
This above make one to believe it is a makefile in tools/objtool folder but there is a Makefile in there but it only has 71 lines.
WTF??
sudo make -j64
mkdir -p /home/nonroot/extdir/gg/git/kernelbuild/5.14.0-480.el9.x86_64/tools/objtool && make O=/home/nonroot/extdir/gg/git/kernelbuild/5.14.0-480.el9.x86_64 subdir=tools/objtool --no-print-directory -C objtool
make[2]: *** [Makefile:53: /home/nonroot/extdir/gg/git/kernelbuild/5.14.0-480.el9.x86_64/tools/objtool/objtool-in.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:69: objtool] Error 2
make: *** [Makefile:1437: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....
scripts/Makefile.build:415: warning: overriding recipe for target 'modules.order'
Makefile:1531: warning: ignoring old recipe for target 'modules.order'
For example:
1)
Makefile:69: but there are so many makefiles in kernel source, it is impossible to tell which one?
2) make: *** [Makefile:1437: tools/objtool] Error 2
This above make one to believe it is a makefile in tools/objtool folder but there is a Makefile in there but it only has 71 lines.
WTF??
sudo make -j64
mkdir -p /home/nonroot/extdir/gg/git/kernelbuild/5.14.0-480.el9.x86_64/tools/objtool && make O=/home/nonroot/extdir/gg/git/kernelbuild/5.14.0-480.el9.x86_64 subdir=tools/objtool --no-print-directory -C objtool
make[2]: *** [Makefile:53: /home/nonroot/extdir/gg/git/kernelbuild/5.14.0-480.el9.x86_64/tools/objtool/objtool-in.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:69: objtool] Error 2
make: *** [Makefile:1437: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....
scripts/Makefile.build:415: warning: overriding recipe for target 'modules.order'
Makefile:1531: warning: ignoring old recipe for target 'modules.order'