Bugzilla – Bug 183
warings when compiling kernel
Last modified: 2002-10-17 09:40:50 CDT
If this is a userspace bug, what version of the package are you using: What kernel are you using kernel-2.4.18-14SGI_XFS_1.2a1.i686: Where did the XFS code come from? (CVS, Linus, your distribution, etc): 1.2a1 Description of Problem: warnings when I recompile XFS kernel source for athlon on RH8 How Reproducible: using GCC 3.2 from RH8 to recompile kernel Steps to Reproduce: 1. 2. 3. Actual Results: lots of warnings Expected Results: none related to march and falign etc Additional Information: JAM kernels have a patch for compiling with gcc 3, I have adapted that for the 1.2a kernel --- linux/arch/i386/Makefile.orig 2002-10-12 08:28:31.000000000 +0530 +++ linux/arch/i386/Makefile 2002-10-12 08:41:23.000000000 +0530 @@ -43,19 +43,19 @@ endif ifdef CONFIG_M586MMX -CFLAGS += -march=i586 +CFLAGS += $(shell if $(CC) -march=pentium-mmx -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium-mmx"; else echo "-marc h=i586"; fi) endif ifdef CONFIG_M686 -CFLAGS += -march=i686 +CFLAGS += $(shell if $(CC) -march=pentium2 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium2"; else echo "-march=i686 "; fi) endif ifdef CONFIG_MPENTIUMIII -CFLAGS += -march=i686 +CFLAGS += $(shell if $(CC) -march=pentium3 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium3"; else echo "-march=i686 "; fi) endif ifdef CONFIG_MPENTIUM4 -CFLAGS += -march=i686 +CFLAGS += $(shell if $(CC) -march=pentium4 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=pentium4"; else echo "-march=i686 "; fi) endif ifdef CONFIG_MK6 @@ -63,7 +63,7 @@ endif ifdef CONFIG_MK7 -CFLAGS += -march=i686 -malign-functions=4 +CFLAGS += $(shell if $(CC) -march=athlon -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=athlon"; else echo "-march=i686 -ma lign-functions=4"; fi) endif ifdef CONFIG_MCRUSOE
Are the warnings you see with or without the patch you added to the bug? Are the warnings unique to the xfs code, or do you see them for all kernel components?
On Thu, 2002-10-17 at 03:40, Ajay Ramaswamy wrote: > Eric, > > 0. here is the patch the bugzilla one is wrapped and unusable > > 1. The warnings are there without the patch. > > 2. The warnings are there in other parts of the kernel too. > > > Thanks & regards > Ajay Ok, I'm going to close this as invalid (i.e. notabug) since this is not unique to XFS code, and we really aren't in the business of fixing non-xfs bugs in Red Hat's kernel etc. It might be a good idea to file this bug with either Red Hat or Marcello... If I'm missing something here and the stock Red Hat kernel compiles without warnings, please re-open this bug.