[YBA] kernel compile errors with GCC >= 4.6
Oleg Goldshmidt
pub at goldshmidt.org
Wed Apr 4 12:49:44 IDT 2012
On Wed, Apr 4, 2012 at 10:03 AM, Jonathan Ben Avraham <yba at tkos.co.il>wrote:
> Dear linux-il colleagues,
> GCC 4.6 introduced many new warnings that cause -Werror to stop the
> compilation for some platforms, such as powerpc, in various files.
>
Oh, I didn't even know they finally introduced -Werror... Good.
If it is in the way maybe KCFLAGS=-Wno-error or similar may serve as a
workaround? Or KBUILD_ENABLE_EXTRA_GCC_CHECKS="" ?
Cf. Documentation/kbuild/kbuild.txt
You didn't say what kernel version - I just went to LXR for the latest.
> My question is in general, is there somewhere where the relationship
> between kernel version and gcc version (or other compiler version) is made
> explicit?
>
Not that I know of. The minimal versions of everything needed are in
Documentation/Changes. I guess you are not interested in "minimal".
I would be very much surprised if the kernel could not be built with
gcc-4.6 - this is stock on Fedora, so lots of people must be using it.
Maybe not on PowerPC, though
--
Oleg Goldshmidt | oleg at goldshmidt.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120404/59fab94f/attachment-0001.html>
More information about the Linux-il
mailing list