]> code.ossystems Code Review - openembedded-core.git/commit
qemu: always define unknown_lock_type
authorMingli Yu <mingli.yu@windriver.com>
Mon, 14 Sep 2020 04:37:45 +0000 (21:37 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Sep 2020 21:42:27 +0000 (22:42 +0100)
commitd88e83d49478a2535575df769329d9b1e6579564
treefc2214c263a8b2b155d20975a954809e043b17fe
parentcfa9c1ce853bfd31c1febe61d0f7ad9c5d35f709
qemu: always define unknown_lock_type

When use gcc 10.1.0 and debug build is enabled, there comes
below build failure:
 | /usr/lib/gcc/x86_64-wrs-linux/10.1.0/../../../../x86_64-wrs-linux/bin/ld.bfd: /mnt/build/tmp/work/x86_64-linux/qemu-system-native/5.1.0-r0/qemu-5.1.0/fsdev/qemu-fsdev-throttle.c:25: undefined reference to `unknown_lock_type'
 | /usr/lib/gcc/x86_64-wrs-linux/10.1.0/../../../../x86_64-wrs-linux/bin/ld.bfd: ../fsdev/qemu-fsdev-throttle.o: in function `fsdev_co_throttle_request':
 | /mnt/build/tmp/work/x86_64-linux/qemu-system-native/5.1.0-r0/qemu-5.1.0/fsdev/qemu-fsdev-throttle.c:103: undefined reference to `unknown_lock_type'
 | /usr/lib/gcc/x86_64-wrs-linux/10.1.0/../../../../x86_64-wrs-linux/bin/ld.bfd: ../fsdev/qemu-fsdev-throttle.o:/mnt/build/tmp/work/x86_64-linux/qemu-system-native/5.1.0-r0/qemu-5.1.0/fsdev/qemu-fsdev-throttle.c:103: more undefined references to `unknown_lock_type' follow
 | collect2: error: ld returned 1 exit status

So always define unknown_lock_type to fix the above error.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu/0001-lockable.h-always-define-unknown_lock_type.patch [new file with mode: 0644]
meta/recipes-devtools/qemu/qemu_5.1.0.bb