Bug 107642

Summary: -Werr in the aic7xx Makefile prevents sucessful kernel build
Product: [Retired] Red Hat Raw Hide Reporter: Dan Berger <dberger>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-22 15:09:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
partial build log showing warnings none

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 ;)