<div dir="ltr">Various errors in glibc-locale:<div><br></div><div>| LC_ADDRESS: language abbreviation `agr&#39; not defined<div>| LC_ADDRESS: terminology language code `azb&#39; not defined</div><div><br><div>| Makefile:175: recipe for target &#39;/data/poky-tmp/master/build/work/corei7-64-poky-linux/glibc-locale/2.25.90-r0/locale-tree/usr/lib/locale/agr_PE&#39; failed<br></div><div><br></div><div>| Makefile:628: recipe for target &#39;/data/poky-tmp/master/build/work/corei7-64-poky-linux/glibc-locale/2.25.90-r0/locale-tree/usr/lib/locale/az_IR&#39; 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 &#39;1&#39;<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">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</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 &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt;<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 ?= &quot;master&quot;<br>
 GLIBC_GIT_URI ?= &quot;git://<a href="http://sourceware.org/git/glibc.git" rel="noreferrer" target="_blank">sourceware.org/git/<wbr>glibc.git</a>&quot;<br>
 UPSTREAM_CHECK_GITTAGREGEX = &quot;(?P&lt;pver&gt;\d+\.\d+(\.\d+)*)&quot;<br>
<br>
-SRCREV_glibc ?= &quot;<wbr>43a9f537fc121a867981ca31ea9d79<wbr>f33ce0fd24&quot;<br>
+SRCREV_glibc ?= &quot;<wbr>930324b356778b985d26f30fd03861<wbr>63852a35fe&quot;<br>
 SRCREV_localedef ?= &quot;<wbr>dfb4afe551c6c6e94f9cc85417bd1f<wbr>582168c843&quot;<br>
<br>
 SRC_URI = &quot;${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 &lt;fweimer at redhat dot com&gt;<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>
+&gt; On Wed, Jul 5, 2017 at 11:51 AM, Florian Weimer &lt;<a href="mailto:fweimer@redhat.com">fweimer@redhat.com</a>&gt; wrote:<br>
+&gt;&gt; On 07/05/2017 05:46 PM, Zack Weinberg wrote:<br>
+&gt;&gt;&gt; A problem occurs to me: expressions involving VLAs _are_ evaluated<br>
+&gt;&gt;&gt; inside sizeof.<br>
+&gt;&gt;<br>
+&gt;&gt; The type of the sizeof argument would still be int (due to the<br>
+&gt;&gt; comparison against 0), so this doesn&#39;t actually occur.<br>
+&gt;<br>
+&gt; I rechecked what C99 says about sizeof and VLAs, and you&#39;re right -<br>
+&gt; the operand of sizeof is only evaluated when sizeof is _directly_<br>
+&gt; applied to a VLA.  So this is indeed safe, but I think this wrinkle<br>
+&gt; should be mentioned in the comment.  Perhaps<br>
+&gt;<br>
+&gt; /* The first occurrence of EXPR is not evaluated due to the sizeof,<br>
+&gt;    but will trigger any pedantic warnings masked by the __extension__<br>
+&gt;    for the second occurrence.  The explicit comparison against zero<br>
+&gt;    ensures that sizeof is not directly applied to a function pointer or<br>
+&gt;    bit-field (which would be ill-formed) or VLA (which would be evaluated).  */<br>
+&gt;<br>
+&gt; zw<br>
+<br>
+What about the attached patch?<br>
+<br>
+Siddhesh, is this okay during the freeze?  I&#39;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  &lt;<a href="mailto:fweimer@redhat.com">fweimer@redhat.com</a>&gt;<br>
+<br>
+       [BZ #21242]<br>
+       * assert/assert.h [__GNUC__ &amp;&amp; !__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 &lt;<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>&gt;<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__ &amp;&amp; __STDC_VERSION__ &gt;= 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 = &quot;file://LICENSES;md5=<wbr>e9a558e243b36d3209f380deb394b2<wbr>13 \<br>
<br>
 DEPENDS += &quot;gperf-native&quot;<br>
<br>
-SRCREV ?= &quot;<wbr>43a9f537fc121a867981ca31ea9d79<wbr>f33ce0fd24&quot;<br>
+SRCREV ?= &quot;<wbr>930324b356778b985d26f30fd03861<wbr>63852a35fe&quot;<br>
<br>
 #SRCBRANCH ?= &quot;release/${PV}/master&quot;<br>
 SRCBRANCH ?= &quot;master&quot;<br>
@@ -41,6 +41,7 @@ SRC_URI = &quot;${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>
 &quot;<br>
<br>
 NATIVESDKFIXES ?= &quot;&quot;<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>