Re: make: *** [stamp-build] Error 2
On Thu, Aug 11, 2005 at 01:20:35PM +0100, ctrlER 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
drivers/i2c/i2c-core.c: In function 'i2c_master_send':
drivers/i2c/i2c-core.c:620: error: type of formal parameter 2 is
drivers/i2c/i2c-core.c: In function 'i2c_master_recv':
drivers/i2c/i2c-core.c:649: error: type of formal parameter 2 is
make: *** [drivers/i2c/i2c-core.o] Error 1
make: *** [drivers/i2c] Error 2
make: *** [drivers] Error 2
make: Leaving directory `/usr/src/kernel-source-2.6.11'
make: *** [stamp-build] Error 2
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.
Found another way in man kernel-package
MAKEFLAGS="CC=gcc-3.3" make-kpkg ...
I've done several atempts and I've got some errors when using gcc 4.0
even with 2.6.12, but with gcc-3.3 I havent got any problems.
I'm going to get the Debianized version of 2.6.12 and try to build it.
It's my first kernel compile so I'm a bit lost.
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
Thank you for all your help.
note: please continue to cc to me because I don't subscribe the list.