diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2020-09-13 21:37:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-14 22:42:30 +0100 |
commit | e442924d9ac4e202aec571b5d26bb959b5faaadd (patch) | |
tree | 2b63db64411ce1b9a0e348d2cf4c203489973d8a /meta/recipes-devtools/qemu/qemu_5.1.0.bb | |
parent | 2d7fd503eeb38c2937a763ba8350626d0da187bc (diff) | |
download | poky-e442924d9ac4e202aec571b5d26bb959b5faaadd.tar.gz |
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.
(From OE-Core rev: d88e83d49478a2535575df769329d9b1e6579564)
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu_5.1.0.bb')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu_5.1.0.bb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/meta/recipes-devtools/qemu/qemu_5.1.0.bb b/meta/recipes-devtools/qemu/qemu_5.1.0.bb index 9b09490269..a4018cc448 100644 --- a/meta/recipes-devtools/qemu/qemu_5.1.0.bb +++ b/meta/recipes-devtools/qemu/qemu_5.1.0.bb | |||
@@ -10,11 +10,6 @@ DEPENDS = "glib-2.0 zlib pixman bison-native" | |||
10 | 10 | ||
11 | RDEPENDS_${PN}_class-target += "bash" | 11 | RDEPENDS_${PN}_class-target += "bash" |
12 | 12 | ||
13 | # Does not compile for -Og because that level does not clean up dead-code. | ||
14 | # See lockable.h. | ||
15 | # | ||
16 | DEBUG_BUILD = "0" | ||
17 | |||
18 | EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}" | 13 | EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}" |
19 | EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" | 14 | EXTRA_OECONF_append_class-target_mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}" |
20 | EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" | 15 | EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}" |