<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 04/07/2011 10:25 AM, Brunner, Brian T. wrote:
<blockquote
cite="mid:136E6E09F3177445ABF72A56B7F2B884032CFB4D@hitmhnpaw3-ex1.hi.hubbell-ad.com"
type="cite">
<pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I am trying to compile RHEL-6 kernel srpm on Fedora 14 and
run into the following problem. From what I read
-Werror flag causes warnings to be treated as errors - but I
don't see that flag on in the following. Any ideas?
</pre>
</blockquote>
<pre wrap="">
My guess:
gcc4.4.4 had --disable-werror by default, so we must -werror explicitly
to get warning treated as errors;
gcc4.5.1 does NOT have --disable-werror by default, so,
unless you specify --disable-werror on the compile line, warnings are
treated like errors.
I don't have either compiler version here at work, so I can't verify.
ANYHOW, if your 4.5.1 build tree Makefile has CFLAGS with
--disable-werrors in it, does the problem go away?
</pre>
</blockquote>
Hmm... If I understand you, then I need to rebuild gcc with this
config option? - I am using the gcc that came with f14 - Is there a
switch to gcc to disable this 'feature' when I am trying to build a
kernel - like -fdont-treat-warnings-as-errors <span
class="moz-smiley-s3"><span> ;-) </span></span><br>
<br>
<br>
<div class="moz-signature">-- <br>
Stephen Clark<br>
<b>NetWolves</b><br>
Sr. Software Engineer III<br>
Phone: 813-579-3200<br>
Fax: 813-882-0209<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
<a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
</div>
</body>
</html>