* Re: [PATCH] fix build failure w. gcc-4.3.3
2009-01-30 10:28 [PATCH] fix build failure w. gcc-4.3.3 Manuel Lauss
@ 2009-01-31 8:46 ` Manuel Lauss
2009-01-31 16:56 ` Mike Frysinger
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Manuel Lauss @ 2009-01-31 8:46 UTC (permalink / raw)
To: linux-sh
On Fri, 30 Jan 2009 11:28:54 +0100
Manuel Lauss <mano@roarinelk.homelinux.net> wrote:
> gcc-4.3.3 likes to have printf() and related functions to have
> at least 2 arguments when the format string is not a constant:
>
> cc1: warnings being treated as error
> 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
Please disregard this patch: turns out that Gentoo applied a patch
which unconditionally enables -Wformat-security and produces this
message.
My Apologies!
Manuel Lauss
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] fix build failure w. gcc-4.3.3
2009-01-30 10:28 [PATCH] fix build failure w. gcc-4.3.3 Manuel Lauss
2009-01-31 8:46 ` Manuel Lauss
@ 2009-01-31 16:56 ` Mike Frysinger
2009-01-31 17:13 ` Manuel Lauss
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2009-01-31 16:56 UTC (permalink / raw)
To: linux-sh
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
On Saturday 31 January 2009 03:46:05 Manuel Lauss wrote:
> On Fri, 30 Jan 2009 11:28:54 +0100
>
> Manuel Lauss <mano@roarinelk.homelinux.net> wrote:
> > gcc-4.3.3 likes to have printf() and related functions to have
> > at least 2 arguments when the format string is not a constant:
> >
> > cc1: warnings being treated as error
> > 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
>
> Please disregard this patch: turns out that Gentoo applied a patch
> which unconditionally enables -Wformat-security and produces this
> message.
that's incorrect. the patch sets format-security on by default, not
unconditionally. having the common kernel itself build with -Wno-format-
security probably is worthwhile.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] fix build failure w. gcc-4.3.3
2009-01-30 10:28 [PATCH] fix build failure w. gcc-4.3.3 Manuel Lauss
2009-01-31 8:46 ` Manuel Lauss
2009-01-31 16:56 ` Mike Frysinger
@ 2009-01-31 17:13 ` Manuel Lauss
2009-01-31 17:35 ` Mike Frysinger
2009-01-31 17:53 ` Manuel Lauss
4 siblings, 0 replies; 6+ messages in thread
From: Manuel Lauss @ 2009-01-31 17:13 UTC (permalink / raw)
To: linux-sh
On Sat, 31 Jan 2009 11:56:05 -0500
Mike Frysinger <vapier@gentoo.org> wrote:
> On Saturday 31 January 2009 03:46:05 Manuel Lauss wrote:
> > On Fri, 30 Jan 2009 11:28:54 +0100
> >
> > Manuel Lauss <mano@roarinelk.homelinux.net> wrote:
> > > gcc-4.3.3 likes to have printf() and related functions to have
> > > at least 2 arguments when the format string is not a constant:
> > >
> > > cc1: warnings being treated as error
> > > 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
> >
> > Please disregard this patch: turns out that Gentoo applied a patch
> > which unconditionally enables -Wformat-security and produces this
> > message.
>
> that's incorrect. the patch sets format-security on by default, not
> unconditionally. having the common kernel itself build with -Wno-format-
> security probably is worthwhile.
Well, at least here -Wno-format-security doesn't work, neither on x86,
sh nor mips. Otherwise I would have sent a patch doing exactly that.
-- ml.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] fix build failure w. gcc-4.3.3
2009-01-30 10:28 [PATCH] fix build failure w. gcc-4.3.3 Manuel Lauss
` (2 preceding siblings ...)
2009-01-31 17:13 ` Manuel Lauss
@ 2009-01-31 17:35 ` Mike Frysinger
2009-01-31 17:53 ` Manuel Lauss
4 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2009-01-31 17:35 UTC (permalink / raw)
To: linux-sh
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
On Saturday 31 January 2009 12:13:26 Manuel Lauss wrote:
> On Sat, 31 Jan 2009 11:56:05 -0500 Mike Frysinger wrote:
> > On Saturday 31 January 2009 03:46:05 Manuel Lauss wrote:
> > > On Fri, 30 Jan 2009 11:28:54 +0100 Manuel Lauss wrote:
> > > > gcc-4.3.3 likes to have printf() and related functions to have
> > > > at least 2 arguments when the format string is not a constant:
> > > >
> > > > cc1: warnings being treated as error
> > > > 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
> > >
> > > Please disregard this patch: turns out that Gentoo applied a patch
> > > which unconditionally enables -Wformat-security and produces this
> > > message.
> >
> > that's incorrect. the patch sets format-security on by default, not
> > unconditionally. having the common kernel itself build with -Wno-format-
> > security probably is worthwhile.
>
> Well, at least here -Wno-format-security doesn't work, neither on x86,
> sh nor mips. Otherwise I would have sent a patch doing exactly that.
works fine for me. not that it matters as the kernel already can handle this:
KBUILD_CFLAGS += $(call cc-option,-Wno-format-security,)
also, this isnt a Gentoo specific issue. other distros are enabling this flag
by default as well. they just dont make cross-compiler generation as easy as
Gentoo ;).
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] fix build failure w. gcc-4.3.3
2009-01-30 10:28 [PATCH] fix build failure w. gcc-4.3.3 Manuel Lauss
` (3 preceding siblings ...)
2009-01-31 17:35 ` Mike Frysinger
@ 2009-01-31 17:53 ` Manuel Lauss
4 siblings, 0 replies; 6+ messages in thread
From: Manuel Lauss @ 2009-01-31 17:53 UTC (permalink / raw)
To: linux-sh
On Sat, 31 Jan 2009 12:35:21 -0500
Mike Frysinger <vapier@gentoo.org> wrote:
> On Saturday 31 January 2009 12:13:26 Manuel Lauss wrote:
> > On Sat, 31 Jan 2009 11:56:05 -0500 Mike Frysinger wrote:
> > > On Saturday 31 January 2009 03:46:05 Manuel Lauss wrote:
> > > > On Fri, 30 Jan 2009 11:28:54 +0100 Manuel Lauss wrote:
> > > > > gcc-4.3.3 likes to have printf() and related functions to have
> > > > > at least 2 arguments when the format string is not a constant:
> > > > >
> > > > > cc1: warnings being treated as error
> > > > > 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
> > > >
> > > > Please disregard this patch: turns out that Gentoo applied a patch
> > > > which unconditionally enables -Wformat-security and produces this
> > > > message.
> > >
> > > that's incorrect. the patch sets format-security on by default, not
> > > unconditionally. having the common kernel itself build with -Wno-format-
> > > security probably is worthwhile.
> >
> > Well, at least here -Wno-format-security doesn't work, neither on x86,
> > sh nor mips. Otherwise I would have sent a patch doing exactly that.
>
> works fine for me. not that it matters as the kernel already can handle this:
> KBUILD_CFLAGS += $(call cc-option,-Wno-format-security,)
I was beginning to suspect something bad on my end.
> also, this isnt a Gentoo specific issue. other distros are enabling this flag
> by default as well. they just dont make cross-compiler generation as easy as
> Gentoo ;).
> -mike
That's why I like Gentoo so much ;-)
In any case, I rebuilt all compilers without this patch so it's no
longer a concern for me.
Thanks Mike,
Manuel Lauss
^ permalink raw reply [flat|nested] 6+ messages in thread