<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13577</bug_id>
          
          <creation_ts>2019-10-06 00:49:03 +0000</creation_ts>
          <short_desc>warrior] qemu-native builds failed on yp-ab-tumbleweed-ty-1.yocto.io</short_desc>
          <delta_ts>2019-10-13 19:25:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.7.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://errors.yoctoproject.org/Errors/Details/272823/</bug_file_loc>
          <status_whiteboard>with backport</status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>85226</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 00:49:03 +0000</bug_when>
    <thetext>TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:254:16: error: static declaration of ‘gettid’ follows non-static declaration
  254 | _syscall0(int, gettid)
      |                ^~~~~~
TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:185:13: note: in definition of macro ‘_syscall0’
  185 | static type name (void)   \
      |             ^~~~
In file included from /usr/include/unistd.h:1170,
                 from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:90,
                 from TOPDIR/tmp/work/x86_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:20:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~

I think this needs this fix.

https://git.qemu.org/?p=qemu.git;a=commit;f=linux-user/syscall.c;h=71ba74f67eaca21b0cc9d96f534ad3b9a7161400</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85227</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 01:22:41 +0000</bug_when>
    <thetext>linux-user: rename gettid() to sys_gettid() to avoid clash with glibc

The glibc-2.29.9000-6.fc31.x86_64 package finally includes the gettid()
function as part of unistd.h when __USE_GNU is defined. This clashes
with linux-user code which unconditionally defines this function name
itself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85228</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 01:23:26 +0000</bug_when>
    <thetext>I think this will affect master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85229</commentid>
    <comment_count>3</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 01:48:46 +0000</bug_when>
    <thetext>I am seeing this on master as a warning.

Your host glibc verson (2.30) is newer than that in uninative (2.29).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85231</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 02:08:50 +0000</bug_when>
    <thetext>I have not seen this error on Master yet but I am working on a backport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85233</commentid>
    <comment_count>5</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 05:14:51 +0000</bug_when>
    <thetext>nope. master qemu already has this fix. its a stable branch issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85234</commentid>
    <comment_count>6</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 14:44:35 +0000</bug_when>
    <thetext>patch sent
https://patchwork.openembedded.org/patch/165533/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85240</commentid>
    <comment_count>7</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-06 23:28:01 +0000</bug_when>
    <thetext>need to fix thud too. seeing the same error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85290</commentid>
    <comment_count>8</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-10 14:29:14 +0000</bug_when>
    <thetext>https://patchwork.openembedded.org/patch/165617/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85332</commentid>
    <comment_count>9</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-13 19:25:06 +0000</bug_when>
    <thetext>https://git.openembedded.org/openembedded-core/commit/?h=thud&amp;id=5b5ca76cc5dd424248c7e687e562597a2c85df57

in thud mainline</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85333</commentid>
    <comment_count>10</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-10-13 19:25:19 +0000</bug_when>
    <thetext>closed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>