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:
What warnings are you seeing ?
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.
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.
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.
Somehow I missed that you were using Arjan's 2.6 kernel.
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...
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?
I've just removed the -Werror via a patch; it annoyed me too ;)