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? gcc -Wp,-MD,arch/x86/kernel/acpi/realmode/.wakemain.o.d -nostdinc -isystem /usr/lib/gcc/i686-redhat-linux/4.5.1/include -nostdinc -isystem /usr/lib/gcc/i686-redhat-linux/4.5.1/include -Iinclude -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include include/linux/autoconf.h -D__KERNEL__ -Iinclude -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include include/linux/autoconf.h -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot -Wall -Wstrict-prototypes -march=i386 -mregparm=3 -include /home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot/code16gcc.h -fno-strict-aliasing -fomit-frame-pointer -ffreestanding -fno-toplevel-reorder -fno-stack-protector -mpreferred-stack-boundary=2 -m32 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(wakemain)" -D"KBUILD_MODNAME=KBUILD_STR(wakemain)" -D"DEBUG_HASH=57" -D"DEBUG_HASH2=38" -c -o arch/x86/kernel/acpi/realmode/.tmp_wakemain.o arch/x86/kernel/acpi/realmode/wakemain.c cc1: warnings being treated as errors arch/x86/kernel/apic/apic.c: In function 'lapic_suspend': arch/x86/kernel/apic/apic.c:2008:3: error: statement with no effect arch/x86/kernel/apic/apic.c: In function 'lapic_resume': arch/x86/kernel/apic/apic.c:2085:3: error: statement with no effect make[5]: *** [arch/x86/kernel/apic/apic.o] Error 1 make[4]: *** [arch/x86/kernel/apic] Error 2 Thanks, -- Stephen Clark *NetWolves* Sr. Software Engineer III Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark at netwolves.com http://www.netwolves.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110407/2f247e55/attachment-0005.html>
On Thu, Apr 7, 2011 at 3:10 PM, Steve Clark <sclark at netwolves.com> wrote:> 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? > > ? gcc -Wp,-MD,arch/x86/kernel/acpi/realmode/.wakemain.o.d? -nostdinc > -isystem /usr/lib/gcc/i686-redhat-linux/4.5.1/include -nostdinc -isystem > /usr/lib/gcc/i686-redhat-linux/4.5.1/include -Iinclude > -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include > include/linux/autoconf.h -D__KERNEL__ -Iinclude > -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include > include/linux/autoconf.h -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ > -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot > -Wall -Wstrict-prototypes -march=i386 -mregparm=3 -include > /home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot/code16gcc.h > -fno-strict-aliasing -fomit-frame-pointer -ffreestanding > -fno-toplevel-reorder -fno-stack-protector -mpreferred-stack-boundary=2 > -m32?? -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(wakemain)" > -D"KBUILD_MODNAME=KBUILD_STR(wakemain)" -D"DEBUG_HASH=57" -D"DEBUG_HASH2=38" > -c -o arch/x86/kernel/acpi/realmode/.tmp_wakemain.o > arch/x86/kernel/acpi/realmode/wakemain.c > cc1: warnings being treated as errors > arch/x86/kernel/apic/apic.c: In function 'lapic_suspend': > arch/x86/kernel/apic/apic.c:2008:3: error: statement with no effect > arch/x86/kernel/apic/apic.c: In function 'lapic_resume': > arch/x86/kernel/apic/apic.c:2085:3: error: statement with no effect > make[5]: *** [arch/x86/kernel/apic/apic.o] Error 1 > make[4]: *** [arch/x86/kernel/apic] Error 2 > > Thanks, > -- > Stephen?Clark > NetWolves > Sr.?Software?Engineer?III > Phone:?813-579-3200 > Fax:?813-882-0209 > Email:?steve.clark at netwolves.com > http://www.netwolves.com >Have you checked on the Fedora forums, or mailing list? -- Kind Regards Rudi Ahlers SoftDux Website: http://www.SoftDux.com Technical Blog: http://Blog.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532
On 04/07/2011 09:13 AM, Rudi Ahlers wrote:> On Thu, Apr 7, 2011 at 3:10 PM, Steve Clark<sclark at netwolves.com> wrote: >> 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? >> >> gcc -Wp,-MD,arch/x86/kernel/acpi/realmode/.wakemain.o.d -nostdinc >> -isystem /usr/lib/gcc/i686-redhat-linux/4.5.1/include -nostdinc -isystem >> /usr/lib/gcc/i686-redhat-linux/4.5.1/include -Iinclude >> -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include >> include/linux/autoconf.h -D__KERNEL__ -Iinclude >> -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include >> include/linux/autoconf.h -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ >> -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot >> -Wall -Wstrict-prototypes -march=i386 -mregparm=3 -include >> /home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot/code16gcc.h >> -fno-strict-aliasing -fomit-frame-pointer -ffreestanding >> -fno-toplevel-reorder -fno-stack-protector -mpreferred-stack-boundary=2 >> -m32 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(wakemain)" >> -D"KBUILD_MODNAME=KBUILD_STR(wakemain)" -D"DEBUG_HASH=57" -D"DEBUG_HASH2=38" >> -c -o arch/x86/kernel/acpi/realmode/.tmp_wakemain.o >> arch/x86/kernel/acpi/realmode/wakemain.c >> cc1: warnings being treated as errors >> arch/x86/kernel/apic/apic.c: In function 'lapic_suspend': >> arch/x86/kernel/apic/apic.c:2008:3: error: statement with no effect >> arch/x86/kernel/apic/apic.c: In function 'lapic_resume': >> arch/x86/kernel/apic/apic.c:2085:3: error: statement with no effect >> make[5]: *** [arch/x86/kernel/apic/apic.o] Error 1 >> make[4]: *** [arch/x86/kernel/apic] Error 2 >> >> Have you checked on the Fedora forums, or mailing list? >> >>I googled for it. I thought that since RHEL-6 is going to soon be Centos 6 that someone on this list might know the answer. I am only using RHEL-6 til Centos 6 is released and will have to recompile the srpm for the kernel then so I thought I would get a head start. -- Stephen Clark *NetWolves* Sr. Software Engineer III Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark at netwolves.com http://www.netwolves.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110407/ba6ee593/attachment-0005.html>
On 07/04/11 15:10, Steve Clark wrote:> 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?Most likely because it's considered risky to have warnings. They might hide potential issues if not being fixed. And halting on warnings is a nice way how to catch them among all the log data a kernel compile can produce. However, this question probably belongs more to the Fedora Kernel mailing list [1], as this is a Fedora issue not a CentOS issue. You know, two different distributions ;-) kind regards, David Sommerseth [1] <https://www.redhat.com/mailman/listinfo/fedora-kernel-list>> gcc -Wp,-MD,arch/x86/kernel/acpi/realmode/.wakemain.o.d -nostdinc > -isystem /usr/lib/gcc/i686-redhat-linux/4.5.1/include -nostdinc -isystem > /usr/lib/gcc/i686-redhat-linux/4.5.1/include -Iinclude > -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include > include/linux/autoconf.h -D__KERNEL__ -Iinclude > -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/include -include > include/linux/autoconf.h -g -Os -D_SETUP -D_WAKEUP -D__KERNEL__ > -I/home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot > -Wall -Wstrict-prototypes -march=i386 -mregparm=3 -include > /home/sclark/rpmbuild/BUILD/kernel-2.6.32/arch/x86/kernel/acpi/realmode/../../../boot/code16gcc.h > -fno-strict-aliasing -fomit-frame-pointer -ffreestanding > -fno-toplevel-reorder -fno-stack-protector -mpreferred-stack-boundary=2 > -m32 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(wakemain)" > -D"KBUILD_MODNAME=KBUILD_STR(wakemain)" -D"DEBUG_HASH=57" > -D"DEBUG_HASH2=38" -c -o arch/x86/kernel/acpi/realmode/.tmp_wakemain.o > arch/x86/kernel/acpi/realmode/wakemain.c > cc1: warnings being treated as errors > arch/x86/kernel/apic/apic.c: In function 'lapic_suspend': > arch/x86/kernel/apic/apic.c:2008:3: error: statement with no effect > arch/x86/kernel/apic/apic.c: In function 'lapic_resume': > arch/x86/kernel/apic/apic.c:2085:3: error: statement with no effect > make[5]: *** [arch/x86/kernel/apic/apic.o] Error 1 > make[4]: *** [arch/x86/kernel/apic] Error 2 > > Thanks,
On Thu, 2011-04-07 at 09:10 -0400, Steve Clark wrote:> 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? >Fedora 14 ships with gcc 4.5.1 and RHEL 6 is shipped with gcc 4.4.4 I would try compiling on either a Fedora 12 (gcc 4.4.4) or Fedora 13 (gcc 4.4.5) too see if you get the same issue. Regards Neil
centos-bounces at centos.org wrote:> 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?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? Insert spiffy .sig here: Life is complex: it has both real and imaginary parts. //me ******************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.Hubbell.com - Hubbell Incorporated**