<div dir="ltr">Various errors in glibc-locale:<div><br></div><div>| LC_ADDRESS: language abbreviation `agr' not defined<div>| LC_ADDRESS: terminology language code `azb' not defined</div><div><br><div>| Makefile:175: recipe for target '/data/poky-tmp/master/build/work/corei7-64-poky-linux/glibc-locale/2.25.90-r0/locale-tree/usr/lib/locale/agr_PE' failed<br></div><div><br></div><div>| Makefile:628: recipe for target '/data/poky-tmp/master/build/work/corei7-64-poky-linux/glibc-locale/2.25.90-r0/locale-tree/usr/lib/locale/az_IR' failed<br></div><div><br></div><div>ERROR: Task (/home/ross/Yocto/poky/meta/recipes-core/glibc/glibc-locale_2.25.90.bb:do_package) failed with exit code '1'<br></div><div><br></div><div>Ross</div></div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 August 2017 at 17:34, Khem Raj <span dir="ltr"><<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>><br>
---<br>
.../glibc/<a href="http://cross-localedef-native_2.25.90.bb" rel="noreferrer" target="_blank">cross-localedef-<wbr>native_2.25.90.bb</a> | 2 +-<br>
...ress-pedantic-warning-<wbr>caused-by-statement.patch | 90 ++++++++++++++++++++++<br>
meta/recipes-core/glibc/<a href="http://glibc_2.25.90.bb" rel="noreferrer" target="_blank">glibc_<wbr>2.25.90.bb</a> | 3 +-<br>
3 files changed, 93 insertions(+), 2 deletions(-)<br>
create mode 100644 meta/recipes-core/glibc/glibc/<wbr>0026-assert-Suppress-pedantic-<wbr>warning-caused-by-statement.<wbr>patch<br>
<br>
diff --git a/meta/recipes-core/glibc/<a href="http://cross-localedef-native_2.25.90.bb" rel="noreferrer" target="_blank">cros<wbr>s-localedef-native_2.25.90.bb</a> b/meta/recipes-core/glibc/<a href="http://cross-localedef-native_2.25.90.bb" rel="noreferrer" target="_blank">cros<wbr>s-localedef-native_2.25.90.bb</a><br>
index 5dd0c70400..6d84e52380 100644<br>
--- a/meta/recipes-core/glibc/<a href="http://cross-localedef-native_2.25.90.bb" rel="noreferrer" target="_blank">cros<wbr>s-localedef-native_2.25.90.bb</a><br>
+++ b/meta/recipes-core/glibc/<a href="http://cross-localedef-native_2.25.90.bb" rel="noreferrer" target="_blank">cros<wbr>s-localedef-native_2.25.90.bb</a><br>
@@ -22,7 +22,7 @@ SRCBRANCH ?= "master"<br>
GLIBC_GIT_URI ?= "git://<a href="http://sourceware.org/git/glibc.git" rel="noreferrer" target="_blank">sourceware.org/git/<wbr>glibc.git</a>"<br>
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"<br>
<br>
-SRCREV_glibc ?= "<wbr>43a9f537fc121a867981ca31ea9d79<wbr>f33ce0fd24"<br>
+SRCREV_glibc ?= "<wbr>930324b356778b985d26f30fd03861<wbr>63852a35fe"<br>
SRCREV_localedef ?= "<wbr>dfb4afe551c6c6e94f9cc85417bd1f<wbr>582168c843"<br>
<br>
SRC_URI = "${GLIBC_GIT_URI};branch=${<wbr>SRCBRANCH};name=glibc \<br>
diff --git a/meta/recipes-core/glibc/<wbr>glibc/0026-assert-Suppress-<wbr>pedantic-warning-caused-by-<wbr>statement.patch b/meta/recipes-core/glibc/<wbr>glibc/0026-assert-Suppress-<wbr>pedantic-warning-caused-by-<wbr>statement.patch<br>
new file mode 100644<br>
index 0000000000..b2bb96b818<br>
--- /dev/null<br>
+++ b/meta/recipes-core/glibc/<wbr>glibc/0026-assert-Suppress-<wbr>pedantic-warning-caused-by-<wbr>statement.patch<br>
@@ -0,0 +1,90 @@<br>
+From 037283cbc74739b72f36dfec827d12<wbr>0faa243406 Mon Sep 17 00:00:00 2001<br>
+From: Florian Weimer <fweimer at redhat dot com><br>
+Date: Thu, 6 Jul 2017 11:50:55 +0200<br>
+Subject: [PATCH 26/26] assert: Suppress pedantic warning caused by statement<br>
+ expression [BZ# 21242]<br>
+<br>
+On 07/05/2017 10:15 PM, Zack Weinberg wrote:<br>
+> On Wed, Jul 5, 2017 at 11:51 AM, Florian Weimer <<a href="mailto:fweimer@redhat.com">fweimer@redhat.com</a>> wrote:<br>
+>> On 07/05/2017 05:46 PM, Zack Weinberg wrote:<br>
+>>> A problem occurs to me: expressions involving VLAs _are_ evaluated<br>
+>>> inside sizeof.<br>
+>><br>
+>> The type of the sizeof argument would still be int (due to the<br>
+>> comparison against 0), so this doesn't actually occur.<br>
+><br>
+> I rechecked what C99 says about sizeof and VLAs, and you're right -<br>
+> the operand of sizeof is only evaluated when sizeof is _directly_<br>
+> applied to a VLA. So this is indeed safe, but I think this wrinkle<br>
+> should be mentioned in the comment. Perhaps<br>
+><br>
+> /* The first occurrence of EXPR is not evaluated due to the sizeof,<br>
+> but will trigger any pedantic warnings masked by the __extension__<br>
+> for the second occurrence. The explicit comparison against zero<br>
+> ensures that sizeof is not directly applied to a function pointer or<br>
+> bit-field (which would be ill-formed) or VLA (which would be evaluated). */<br>
+><br>
+> zw<br>
+<br>
+What about the attached patch?<br>
+<br>
+Siddhesh, is this okay during the freeze? I'd like to backport it to<br>
+2.25 as well.<br>
+<br>
+Thanks,<br>
+Florian<br>
+<br>
+assert: Suppress pedantic warning caused by statement expression<br>
+<br>
+2017-07-06 Florian Weimer <<a href="mailto:fweimer@redhat.com">fweimer@redhat.com</a>><br>
+<br>
+ [BZ #21242]<br>
+ * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):<br>
+ Suppress pedantic warning resulting from statement expression.<br>
+ (__ASSERT_FUNCTION): Add missing __extendsion__.<br>
+---<br>
+<br>
+Upstream-Status: Submitted<br>
+Signed-off-by: Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>><br>
+<br>
+ assert/assert.h | 12 +++++++++---<br>
+ 1 file changed, 9 insertions(+), 3 deletions(-)<br>
+<br>
+diff --git a/assert/assert.h b/assert/assert.h<br>
+index 22f019537c..6801cfeb10 100644<br>
+--- a/assert/assert.h<br>
++++ b/assert/assert.h<br>
+@@ -91,13 +91,19 @@ __END_DECLS<br>
+ ? __ASSERT_VOID_CAST (0) \<br>
+ : __assert_fail (#expr, __FILE__, __LINE__, __ASSERT_FUNCTION))<br>
+ # else<br>
++/* The first occurrence of EXPR is not evaluated due to the sizeof,<br>
++ but will trigger any pedantic warnings masked by the __extension__<br>
++ for the second occurrence. The explicit comparison against zero is<br>
++ required to support function pointers and bit fields in this<br>
++ context, and to suppress the evaluation of variable length<br>
++ arrays. */<br>
+ # define assert(expr) \<br>
+- ({ \<br>
++ ((void) sizeof ((expr) == 0), __extension__ ({ \<br>
+ if (expr) \<br>
+ ; /* empty */ \<br>
+ else \<br>
+ __assert_fail (#expr, __FILE__, __LINE__, __ASSERT_FUNCTION); \<br>
+- })<br>
++ }))<br>
+ # endif<br>
+<br>
+ # ifdef __USE_GNU<br>
+@@ -113,7 +119,7 @@ __END_DECLS<br>
+ C9x has a similar variable called __func__, but prefer the GCC one since<br>
+ it demangles C++ function names. */<br>
+ # if defined __cplusplus ? __GNUC_PREREQ (2, 6) : __GNUC_PREREQ (2, 4)<br>
+-# define __ASSERT_FUNCTION __PRETTY_FUNCTION__<br>
++# define __ASSERT_FUNCTION __extension__ __PRETTY_FUNCTION__<br>
+ # else<br>
+ # if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L<br>
+ # define __ASSERT_FUNCTION __func__<br>
+--<br>
+2.13.3<br>
+<br>
diff --git a/meta/recipes-core/glibc/<a href="http://glibc_2.25.90.bb" rel="noreferrer" target="_blank">glib<wbr>c_2.25.90.bb</a> b/meta/recipes-core/glibc/<a href="http://glibc_2.25.90.bb" rel="noreferrer" target="_blank">glib<wbr>c_2.25.90.bb</a><br>
index caf1ff4138..6f373520bb 100644<br>
--- a/meta/recipes-core/glibc/<a href="http://glibc_2.25.90.bb" rel="noreferrer" target="_blank">glib<wbr>c_2.25.90.bb</a><br>
+++ b/meta/recipes-core/glibc/<a href="http://glibc_2.25.90.bb" rel="noreferrer" target="_blank">glib<wbr>c_2.25.90.bb</a><br>
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSES;md5=<wbr>e9a558e243b36d3209f380deb394b2<wbr>13 \<br>
<br>
DEPENDS += "gperf-native"<br>
<br>
-SRCREV ?= "<wbr>43a9f537fc121a867981ca31ea9d79<wbr>f33ce0fd24"<br>
+SRCREV ?= "<wbr>930324b356778b985d26f30fd03861<wbr>63852a35fe"<br>
<br>
#SRCBRANCH ?= "release/${PV}/master"<br>
SRCBRANCH ?= "master"<br>
@@ -41,6 +41,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${<wbr>SRCBRANCH};name=glibc \<br>
file://0023-Define-DUMMY_<wbr>LOCALE_T-if-not-defined.patch \<br>
file://0024-elf-dl-deps.c-<wbr>Make-_dl_build_local_scope-<wbr>breadth-fir.patch \<br>
file://0025-locale-fix-hard-<wbr>coded-reference-to-gcc-E.patch \<br>
+ file://0026-assert-Suppress-<wbr>pedantic-warning-caused-by-<wbr>statement.patch \<br>
"<br>
<br>
NATIVESDKFIXES ?= ""<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.3<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br></div>