Re: [kbuild-all] Re: make[2]: *** [arch/powerpc/Makefile.postlink:31: vmlinux] Error 1
From: Chen, Rong A
Date: Fri Aug 06 2021 - 06:30:44 EST
On 8/6/2021 3:25 AM, Randy Dunlap wrote:
On 8/5/21 3:28 AM, Chen, Rong A wrote:
On 8/4/2021 11:10 AM, Randy Dunlap wrote:
On 7/30/21 1:29 AM, kernel test robot wrote:
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master
head: 764a5bc89b12b82c18ce7ca5d7c1b10dd748a440
commit: cf536e185869d4815d506e777bcca6edd9966a6e Makefile: extend
32B aligned debug option to 64B aligned
date: 10 weeks ago
config: powerpc64-randconfig-c023-20210730 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cf536e185869d4815d506e777bcca6edd9966a6e
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout cf536e185869d4815d506e777bcca6edd9966a6e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0
make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
make[2]: *** [arch/powerpc/Makefile.postlink:31: vmlinux] Error 1
---
Hi ktr/lkp,
This is not "All errors". I suggest that you improve your output by
(also) grepping for "ERROR:", so that the following lines would be
included here:
ERROR: start_text address is c000000000000200, should be
c000000000000100
ERROR: try to enable LD_HEAD_STUB_CATCH config option
ERROR: see comments in arch/powerpc/tools/head_check.sh
Hi Randy,
Thanks for the advice, the "ERROR:" lines weren't redirected to
stderr, so the bot didn't notice them, it looks difficult to change
the output.
Hi Rong,
So 0day bot only checks stderr for errors?
yes, as far as it goes.
Best Regards,
Rong Chen
That is almost reasonable (IMO).
Michael, in the file arch/powerpc/tools/head_check.sh,
what do you think about redirecting all of the ERROR: lines
to stdout (echo "..." >&2)?
Best Regards,
Rong Chen
and yes, enabling LD_HEAD_STUB_CATCH does fix this build error.
thanks.