linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
	torvalds@linux-foundation.org
Subject: Minimum toolchain requirements?
Date: Fri, 14 Dec 2012 16:25:10 -0600	[thread overview]
Message-ID: <1355523910.18402.9@driftwood> (raw)

Although the README and Documentation/Changes both say the kernel  
builds with gcc 3.2, this is no loner the case. In reality the new 3.7  
kernel no longer builds under unpatched gcc 4.2.1 (the last GPLv2  
release).

Building for i686 breaks with "arch/x86/kernel/cpu/perf_event_p6.c:22:  
error: p6_hw_cache_event_ids causes a section type conflict" (trivial  
workaround: patch kernel so CONFIG_BROKEN_RODATA defaults to y).  
Building for mips breaks with "arch/mips/lib/delay.c:24:5: warning:  
"__SIZEOF_LONG__" is not defined". (Introduced January 2007, gcc git  
commit 6a60f216c210e. Easy enough to add an equivalent to my toolchain.)

Over in my Aboriginal Linux project I've been patching both the kernel  
and my GPLv2 toolchain for a while to work around these random  
breakages (such as when sh4 decided it would only build with binutils  
2.20, which had only been out for 3 months at the time). But since I'm  
supposed to be catching Documentation stuff that falls through the  
cracks, if the docs are clearly out of date I should probably update  
them.

I'm still regression testing each new kernel release against gcc 4.2.1,  
binutils 2.17, and make 3.81 (I.E. the last GPLv2 release of each  
tool). My personal preference would be to upgrade Documentation/Changes  
to say "gcc 4.2.1 and binutils 2.17 are the oldest supported versions",  
and then try to push patches upstream that prevent the kernel from  
building on those. Unfortunately, when I try to push patches to make  
older toolchains work, the reception isn't exactly warm.

So I ask the question: what are the current minimum requirements to  
build the kernel?

Rob

             reply	other threads:[~2012-12-14 23:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14 22:25 Rob Landley [this message]
2012-12-27 20:09 ` Minimum toolchain requirements? Shaun Ruffell
2012-12-28  3:35   ` Rob Landley
2013-01-14 19:29     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355523910.18402.9@driftwood \
    --to=rob@landley.net \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).