Re: undefined reference to `printk'

From: Joe Perches
Date: Sat Sep 24 2016 - 23:46:35 EST


On Sun, 2016-09-25 at 11:40 +0800, kbuild test robot wrote:
> Hi Joe,

Hey Fengguang

> It's probably a bug fix that unveils the link errors.

I think all of these reports about compiler-gcc integrations
are bogons.

> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 9c0e28a7be656d737fb18998e2dcb0b8ce595643
> commit: cb984d101b30eb7478d32df56a0023e4603cba7f compiler-gcc: integrate the various compiler-gcc[345].h files
> date: 1 year, 3 months ago
> config: m32r-allnoconfig (attached as .config)
> compiler: m32r-linux-gcc (GCC) 6.2.0
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout cb984d101b30eb7478d32df56a0023e4603cba7f
> # save the attached .config to linux build tree
> make.cross ARCH=m32r
>
>
> All errors (new ones prefixed by >>):
>
>
> arch/m32r/kernel/built-in.o: In function `default_eit_handler':
> > > (.text+0x3fc): undefined reference to `printk'

There isn't any association to integration here.

>