On Thu, Aug 11, 2005 at 01:20:35PM +0100, ctrlER wrote: > > > Horms wrote: > >On Thu, Aug 11, 2005 at 02:48:30AM +0100, ctrlER wrote: > > > >>Hi, I'm getting the folowing errors when compiling the kernel. > >> > >>CC [M] drivers/i2c/i2c-core.o > >>In file included from drivers/i2c/i2c-core.c:29: > >>include/linux/i2c.h:58: error: array type has incomplete element type > >>include/linux/i2c.h:197: error: array type has incomplete element type > >>drivers/i2c/i2c-core.c: In function 'i2c_transfer': > >>drivers/i2c/i2c-core.c:594: error: type of formal parameter 2 is > >>incomplete > >>drivers/i2c/i2c-core.c: In function 'i2c_master_send': > >>drivers/i2c/i2c-core.c:620: error: type of formal parameter 2 is > >>incomplete > >>drivers/i2c/i2c-core.c: In function 'i2c_master_recv': > >>drivers/i2c/i2c-core.c:649: error: type of formal parameter 2 is > >>incomplete > >>make[3]: *** [drivers/i2c/i2c-core.o] Error 1 > >>make[2]: *** [drivers/i2c] Error 2 > >>make[1]: *** [drivers] Error 2 > >>make[1]: Leaving directory `/usr/src/kernel-source-2.6.11' > >>make: *** [stamp-build] Error 2 > >>[EMAIL PROTECTED]:/usr/src/linux# > >> > >>Any ideas? > > > > > >At a guess, try compiling with gcc-3.3 instead of gcc-4.0. > >But unless you have a burning desire to use kernel-source-2.6.11, > >please try linux-source-2.6.12 which is now in the archive > >supplied by the linux-2.6 source package. > > > I'm using Debian unstable with kernel 2.6.8. > I'm using make-dpkg, how do I chose what version of gcc to use?
The easiest way that I know is to just edit the top level Makefile and replace gcc with gcc-3.3. > To build linux-source-2.6.12 what's the gcc version I should use, and > most important, where can I find that info so that in future updates I > dont get stuck again. linux-source-2.6.12 whould work fine with the latest and greatest toolchain in unstable, that is gcc 4.0 -- Horms -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

