Compileing vanila kernel on FC4
Øyvind Stegard
oyvinst at ifi.uio.no
Thu Jun 16 20:49:56 UTC 2005
Damir Dezeljin wrote:
> Hi.
>
> I'm trying to compile a vanila kernel (linux-2.6.11.12) on FC4.
> Unfortunately an error stops the compilation:
> ----
> make[3]: *** [drivers/i2c/algos/i2c-algo-bit.o] Error 1
> make[2]: *** [drivers/i2c/algos] Error 2
> make[1]: *** [drivers/i2c] Error 2
> make: *** [drivers] Error 2
> ----
>
Actually, only a minor patch is needed to make the vanilla kernel
compile with gcc4. I've attached a patch, it's tiny.
Patch can be applied like this:
$ cd /usr/src/linux-2.6.11.12 # [or wherever your kernel dir is]
$ patch -p1 < vanilla-gcc4.patch
Using gcc4 will also produce a lot more warning messages, but I've
successfully compiled working kernels with it using this patch.
If you don't want to patch, you can disable the i2c-features in the
kernel config, I think that should do the trick too, if you don't need
it (it's commonly used by tv-tuner cards).
Øyvind.
--
< Øyvind Stegard < oyvinst at ifi uio no >
< http://www.oyvind.nu/
< `Lottery: A tax on people who are bad at math.'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vanilla-gcc4.patch
Type: text/x-patch
Size: 924 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20050616/0c0028f4/attachment-0001.bin>
More information about the fedora-list
mailing list