[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140320061056.GA24600@localhost>
Date: Thu, 20 Mar 2014 14:10:56 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Paul Gortmaker <paul.gortmaker@...driver.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Anatolij Gustschin <agust@...x.de>, kbuild-all@...org,
H Hartley Sweeten <hartleys@...ionengravers.com>
Subject: Re: undefined reference to `i2c_add_adapter'
Hi Paul,
On Wed, Mar 19, 2014 at 02:09:00PM -0400, Paul Gortmaker wrote:
> On 14-03-19 06:45 AM, Fengguang Wu wrote:
> > FYI.
> >
> > The first bad commit is probably a bug fix that unveils the link errors.
>
> Yes, kvm doesn't build if you checkout 9a15c944f76cffa55~1
> But if you disable kvm/paravirt/guest in your .config, then
> you will see the same i2c link error. I tried building the
> prev. release (v.2.6.39) but my gcc was simply too new for
> such an ancient kernel.
>
> > tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: 9a15c944f76cffa5581959cefe709c7c4ea26994
> > commit: 9dac77fa4011bdb4b541a8db087eac96a602faec KVM: x86 emulator: fold decode_cache into x86_emulate_ctxt
> > date: 2 years, 8 months ago
> > config: i386-randconfig-xb0-03190932 (attached as .config)
> >
> > All error/warnings:
> >
> > drivers/built-in.o: In function `mb862xx_i2c_init':
> >>> (.text+0x8c0aa): undefined reference to `i2c_add_adapter'
> > drivers/built-in.o: In function `mb862xx_i2c_exit':
> >>> (.text+0x8c13a): undefined reference to `i2c_del_adapter'
>
> Do you have a .config that exhibits the same fail on master?
> The 3.0 config you've attached, after an "oldconfig" doesn't
> fail for me on master.
Yes, attached is the .config for linus/master. I confirmed that it can
reproduce the link errors on it:
MODPOST vmlinux.o
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
drivers/built-in.o: In function `mb862xx_i2c_init':
(.text+0xc1ffe): undefined reference to `i2c_add_adapter'
drivers/built-in.o: In function `mb862xx_i2c_exit':
(.text+0xc208a): undefined reference to `i2c_del_adapter'
make[1]: *** [vmlinux] Error 1
make: *** [sub-make] Error 2
gcc (Debian 4.6.3-1) 4.6.3
Thanks,
Fengguang
View attachment "i386-randconfig-xb0-03190932" of type "text/plain" (95393 bytes)
Powered by blists - more mailing lists