Summary: | pkg-config 0.29 compilation error after gcc update (5.3 -> 6.1) | ||
---|---|---|---|
Product: | pkg-config | Reporter: | Maciej Sobkowski <maciejjo> |
Component: | src | Assignee: | pkg-config |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | medium | CC: | nicholson |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Output from compiler when using gcc 6.1 |
Looks like this is caused by -Werror=format-nonliteral. ../../../git/glib/glib/gdate.c: In function 'g_date_strftime': ../../../git/glib/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral] tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm); ^~~~~~ Looks like this was fixed in upstream glib. You can patch locally with the following 2 commits until the glib snapshot gets updated. https://git.gnome.org/browse/glib/commit/glib/gdate.c?id=0817af40e8c74c721c30f6ef482b1f53d12044c7 https://git.gnome.org/browse/glib/commit/glib/gdate.c?id=8cdbc7fb2c8c876902e457abe46ee18a0b134486 I'm pretty sure commit 64cbed9 will fix it by backporting the 2 glib patches here. Please let me know if this doesn't work. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Created attachment 123569 [details] Output from compiler when using gcc 6.1 Hi, I am compiling pkg-config 0.29 as part of Poky distribution. It fails with following error (attached). When gcc is downgraded to 5.3 it compiles without error. This is building pkg-config for native arch (x86_64).