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
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.
I think this will affect master
I am seeing this on master as a warning. Your host glibc verson (2.30) is newer than that in uninative (2.29).
I have not seen this error on Master yet but I am working on a backport.
nope. master qemu already has this fix. its a stable branch issue.
patch sent https://patchwork.openembedded.org/patch/165533/
need to fix thud too. seeing the same error.
https://patchwork.openembedded.org/patch/165617/
https://git.openembedded.org/openembedded-core/commit/?h=thud&id=5b5ca76cc5dd424248c7e687e562597a2c85df57 in thud mainline
closed