Re: stackdepot.c:undefined reference to `__irqentry_text_start'
From: Randy Dunlap
Date: Sun Jul 11 2021 - 11:51:33 EST
On 7/11/21 8:13 AM, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: de5540965853e514a85d3b775e9049deb85a2ff3
> commit: 788691464c29455346dc613a3b43c2fb9e5757a4 mm/slub: use stackdepot to save stack trace in objects
> date: 3 days ago
> config: arc-randconfig-r004-20210711 (attached as .config)
> compiler: arc-elf-gcc (GCC) 9.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=788691464c29455346dc613a3b43c2fb9e5757a4
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 788691464c29455346dc613a3b43c2fb9e5757a4
> # save the attached .config to linux build tree
> mkdir build_dir
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks':
>>> stackdepot.c:(.text+0x5a): undefined reference to `__irqentry_text_start'
>>> arc-elf-ld: stackdepot.c:(.text+0x5a): undefined reference to `__irqentry_text_start'
> arc-elf-ld: stackdepot.c:(.text+0x62): undefined reference to `__irqentry_text_end'
> arc-elf-ld: stackdepot.c:(.text+0x62): undefined reference to `__irqentry_text_end'
> arc-elf-ld: stackdepot.c:(.text+0x6a): undefined reference to `__softirqentry_text_start'
> arc-elf-ld: stackdepot.c:(.text+0x6a): undefined reference to `__softirqentry_text_start'
> arc-elf-ld: stackdepot.c:(.text+0x72): undefined reference to `__softirqentry_text_end'
> arc-elf-ld: stackdepot.c:(.text+0x72): undefined reference to `__softirqentry_text_end'
Please see https://lore.kernel.org/lkml/20210710145033.2804047-1-linux@xxxxxxxxxxxx/