Skip to contentSkip to conversation

sh-2.6.git fails to compile with gcc-4.3 (warnings treated as errors)

DISCUSSION Raúl Porcel 3 participants 3 messages Mar 26, 2009 – Mar 30, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

make -f scripts/Makefile.build obj=usr
make -f scripts/Makefile.build obj=arch/sh/kernel
sh4-unknown-linux-gnu-gcc -Wp,-MD,arch/sh/kernel/.setup.o.d -nostdinc
-isystem /usr/lib/gcc/sh4-unknown-linux-gnu/4.3.3/include -Iinclude -I/root/sh-2.6/arch/sh/include -include include/linux/autoconf.h -D__KERNEL__ -m4 -m4-nofpu -m4a -m4a-nofpu -ml -Wa,-isa=sh4a-up -ffreestanding -Iarch/sh/include/cpu-sh4 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-common -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -pipe -m4 -m4-nofpu -m4a -m4a-nofpu -ml -Wa,-isa=sh4a-up -ffreestanding -Iarch/sh/include/cpu-sh4 -Iarch/sh/include/cpu-common -Iarch/sh/include/mach-common -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -Werror -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(setup)" -D"KBUILD_MODNAME=KBUILD_STR(setup)" -c -o arch/sh/kernel/setup.o arch/sh/kernel/setup.c
cc1: warnings being treated as errors arch/sh/kernel/setup.c: In function 'early_parse_mem':
arch/sh/kernel/setup.c:111: error: format not a string literal and no format arguments
make[1]: *** [arch/sh/kernel/setup.o] Error 1
make: *** [arch/sh/kernel] Error 2

I just used the default sh7785lcr_defconfig .

Paul said its easy to fix, so feel free to submit a patch.

#1 lore raw
Quoted 8 lines · On Thursday 26 March 2009 14:01:50 Raúl Porcel wrote:

cc1: warnings being treated as errors arch/sh/kernel/setup.c: In function 'early_parse_mem':
arch/sh/kernel/setup.c:111: error: format not a string literal and no format arguments

I just used the default sh7785lcr_defconfig .

Paul said its easy to fix, so feel free to submit a patch.

a different patch has been posted but apparently not merged yet.
http://lkml.org/lkml/2009/2/4/259
-mike

#2 lore raw
In reply to Raúl Porcel
Quoted 6 lines · Mike Frysinger
Quoted 5 lines · On Thursday 26 March 2009 14:01:50 Ra?l Porcel wrote:

cc1: warnings being treated as errors arch/sh/kernel/setup.c: In function 'early_parse_mem':
arch/sh/kernel/setup.c:111: error: format not a string literal and no format arguments

Quoted 7 lines
Quoted 3 lines

I just used the default sh7785lcr_defconfig .

Paul said its easy to fix, so feel free to submit a patch.

a different patch has been posted but apparently not merged yet.
http://lkml.org/lkml/2009/2/4/259
-mike

And probably not going to be merged without a nudge. I've just fixed up the offending printk() for now instead.