Bug 13577 - warrior] qemu-native builds failed on yp-ab-tumbleweed-ty-1.yocto.io
Summary: warrior] qemu-native builds failed on yp-ab-tumbleweed-ty-1.yocto.io
Status: CLOSED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.7.2
Hardware: x86 Multiple
: High normal
Target Milestone: 2.7.2
Assignee: Armin Kuster
QA Contact:
URL: https://errors.yoctoproject.org/Error...
Whiteboard: with backport
Depends on:
Blocks:
 
Reported: 2019-10-06 00:49 UTC by Armin Kuster
Modified: 2019-10-13 19:25 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Kuster 2019-10-06 00:49:03 UTC
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
Comment 1 Armin Kuster 2019-10-06 01:22:41 UTC
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.
Comment 2 Armin Kuster 2019-10-06 01:23:26 UTC
I think this will affect master
Comment 3 Armin Kuster 2019-10-06 01:48:46 UTC
I am seeing this on master as a warning.

Your host glibc verson (2.30) is newer than that in uninative (2.29).
Comment 4 Armin Kuster 2019-10-06 02:08:50 UTC
I have not seen this error on Master yet but I am working on a backport.
Comment 5 Armin Kuster 2019-10-06 05:14:51 UTC
nope. master qemu already has this fix. its a stable branch issue.
Comment 6 Armin Kuster 2019-10-06 14:44:35 UTC
patch sent
https://patchwork.openembedded.org/patch/165533/
Comment 7 Armin Kuster 2019-10-06 23:28:01 UTC
need to fix thud too. seeing the same error.
Comment 8 Armin Kuster 2019-10-10 14:29:14 UTC
https://patchwork.openembedded.org/patch/165617/
Comment 10 Armin Kuster 2019-10-13 19:25:19 UTC
closed