All of lore.kernel.org
 help / color / mirror / Atom feed
* GCC-4.3.3 sillyness
@ 2009-01-30  7:44 Manuel Lauss
  2009-01-30  8:23 ` Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Manuel Lauss @ 2009-01-30  7:44 UTC (permalink / raw)
  To: linux-mips

Hello,

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.

Thanks!
	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

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-26  2:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30  7:44 GCC-4.3.3 sillyness Manuel Lauss
2009-01-30  8:23 ` Geert Uytterhoeven
2009-01-30  8:55   ` Manuel Lauss
2009-01-30 14:03 ` Ralf Baechle
2009-01-30 16:56   ` Manuel Lauss
2009-01-31  7:59 ` [SOLVED] " Manuel Lauss
2009-02-25  5:13   ` Kumba
2009-02-26  2:48     ` Kumba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.