Bug 107642 - -Werr in the aic7xx Makefile prevents sucessful kernel build
Summary: -Werr in the aic7xx Makefile prevents sucessful kernel build
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: kernel
Version: 1.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-10-21 17:10 UTC by Dan Berger
Modified: 2007-04-18 16:58 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-10-22 15:09:34 UTC
Embargoed:


Attachments (Terms of Use)
partial build log showing warnings (19.80 KB, text/plain)
2003-10-21 21:42 UTC, Dan Berger
no flags Details

Description Dan Berger 2003-10-21 17:10:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701
Galeon/1.3.9

Description of problem:
drivers/scsi/aic7xxx/Makefile has EXTRA_CFLAGS set to -Idrivers/scsi -Werr,
which prevents the kernel from building sucessfully.  Removing the -Werr allows
the build to complete.

Disclaimer: I haven't used the aic7xxx driver, so I've no idea if it's actually
working.

Version-Release number of selected component (if applicable):
kernel-source-2.6.0-0.test8.1.60

How reproducible:
Always

Steps to Reproduce:
1. configure the kernel
2. type make
3. get coffee
4. observe build failure
    

Additional info:

Comment 1 Dave Jones 2003-10-21 19:49:55 UTC
What warnings are you seeing ?


Comment 2 Dan Berger 2003-10-21 21:42:58 UTC
Created attachment 95364 [details]
partial build log showing warnings

This is a partial build log, building from the test source packages on a RH 9
box.  These warnings are not unique to the aic7xxx directory, but I included
only those to keep the size down.

Comment 3 Dave Jones 2003-10-21 21:58:15 UTC
Is this with the gcc32 compiler ?
The check_unused feature should only be in newer gcc's, which you shouldn't be
using for kernel builds.


Comment 4 Dan Berger 2003-10-22 00:50:24 UTC
It is (gcc version 3.2.2 - as shipped with RH 9).  Does that mean one should
install the compat-gcc package to build a kernel?  The test kernel RPMs seem to
have been built with gcc 3 - and I followed suit.

$ strings /lib/modules/2.6.0-0.test8.1.62/kernel/drivers/scsi/aic7xxx/aic7xxx.ko
| grep -i gcc
vermagic=2.6.0-0.test8.1.62 686 gcc-3.3

I'm curious to know how these RPMs are built, if new versions of gcc emit this
warning, and that makefile specifies -werr.

Comment 5 Dave Jones 2003-10-22 01:22:43 UTC
Somehow I missed that you were using Arjan's 2.6 kernel.


Comment 6 Arjan van de Ven 2003-10-22 07:15:13 UTC
Yes this -Werror is absolutely obnoxious. Please file a bug in
bugzilla.kernel.org about that.
The fact that you get a warning means you have a too old gcc; the rawhide one
compiles things just fine...


Comment 7 Dan Berger 2003-10-22 15:05:38 UTC
see kernel.org bug 1208.  (which, somehow, I didn't find when I searched before
filing this one).  should this be closed as upstream, then?

Comment 8 Arjan van de Ven 2003-10-22 15:09:34 UTC
I've just removed the -Werror via a patch; it annoyed me too ;)



Note You need to log in before you can comment on or make changes to this bug.