* "--disable-werror" versus "--disable-Werror"?
@ 2015-02-17 11:21 Robert P. J. Day
2015-02-17 22:32 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2015-02-17 11:21 UTC (permalink / raw)
To: OE Core mailing list
apparently another gcc-5.0.0 issue(or maybe not), but my build of
core-image-minimal for qemux86 now fails thusly trying to build
elfutils-native:
|
/home/rpjday/oe/builds/qemux86/tmp/work/x86_64-linux/elfutils-native/0.161-r0/elfutils-0.161/libebl/eblsectiontypename.c:111:28:
error: format '%x' expects argument of type 'unsigned int', but
argument 4 has type 'int' [-Werror=format=]
| snprintf (buf, len, "SHT_LOOS+%x", section - SHT_LOOS);
| ^
|
/home/rpjday/oe/builds/qemux86/tmp/work/x86_64-linux/elfutils-native/0.161-r0/elfutils-0.161/libebl/eblsectiontypename.c:111:28:
error: format '%x' expects argument of type 'unsigned int', but
argument 4 has type 'int' [-Werror=format=]
|
/home/rpjday/oe/builds/qemux86/tmp/work/x86_64-linux/elfutils-native/0.161-r0/elfutils-0.161/libebl/eblsectiontypename.c:114:28:
error: format '%x' expects argument of type 'unsigned int', but
argument 4 has type 'int' [-Werror=format=]
| snprintf (buf, len, "SHT_LOPROC+%x", section - SHT_LOPROC);
| ^
|
/home/rpjday/oe/builds/qemux86/tmp/work/x86_64-linux/elfutils-native/0.161-r0/elfutils-0.161/libebl/eblsectiontypename.c:114:28:
error: format '%x' expects argument of type 'unsigned int', but
argument 4 has type 'int' [-Werror=format=]
| cc1: all warnings being treated as errors
since all warnings are being treated as errors, i did a quick check
to see how to disable that option on a per-recipe basis and *thought*
i could just add the following line to local.conf:
EXTRA_OECONF_pn-elfutils-native = "--disable-Werror"
but that didn't do it. but there's more.
i did a "grep" just to see how other recipes were doing it, and i
saw a mixture of "--disable-werror" versus "--disable-Werror", and
this web page which suggests that only one of those forms is correct:
http://patchwork.openembedded.org/patch/23361/
but feel free to search for yourself to see.
in any event, what *is* the proper local.conf fix to disable this
option on a per-recipe basis?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "--disable-werror" versus "--disable-Werror"?
2015-02-17 11:21 "--disable-werror" versus "--disable-Werror"? Robert P. J. Day
@ 2015-02-17 22:32 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2015-02-17 22:32 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: OE Core mailing list
On Tue, 2015-02-17 at 06:21 -0500, Robert P. J. Day wrote:
> i did a "grep" just to see how other recipes were doing it, and i
> saw a mixture of "--disable-werror" versus "--disable-Werror", and
> this web page which suggests that only one of those forms is correct:
>
> http://patchwork.openembedded.org/patch/23361/
>
> but feel free to search for yourself to see.
>
> in any event, what *is* the proper local.conf fix to disable this
> option on a per-recipe basis?
It depends on the recipe in question and how its configuration is
enabling warnings as errors in the first place. There is no defined
standard mechanism for that afaik.
Cheers,
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-17 22:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-17 11:21 "--disable-werror" versus "--disable-Werror"? Robert P. J. Day
2015-02-17 22:32 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox