[Top] [All Lists]

GCC-4.3.3 sillyness

Subject: GCC-4.3.3 sillyness
From: Manuel Lauss <>
Date: Fri, 30 Jan 2009 08:44:07 +0100
Original-recipient: rfc822;
User-agent: Mutt/1.5.16 (2007-06-09)

Can't build kernel because gcc-4.3.3 comes up with this gem:

  CC      arch/mips/kernel/traps.o
cc1: warnings being treated as errors
/linux-2.6.git/arch/mips/kernel/traps.c: In function 'set_uncached_handler':
/linux-2.6.git/arch/mips/kernel/traps.c:1599: error: format not a string 
literal and no format arguments

The fastest fix is the patch below, but I don't know whether it is
the right thing to do.

        Manuel Lauss


diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 7378b91..70ddf83 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -78,7 +78,7 @@ all-$(CONFIG_BOOT_ELF64)      := $(vmlinux-64)
 # machines may also.  Since BFD is incredibly buggy with respect to
 # crossformat linking we rely on the elf2ecoff tool for format conversion.
-cflags-y                       += -G 0 -mno-abicalls -fno-pic -pipe
+cflags-y                       += -G 0 -mno-abicalls -fno-pic -pipe -Wno-format
 cflags-y                       += -msoft-float
 LDFLAGS_vmlinux                        += -G 0 -static -n -nostdlib
 MODFLAGS                       += -mlong-calls

<Prev in Thread] Current Thread [Next in Thread>