Re: Build error:undefined reference to `stime' on Yocto Warrior

Sourabh Hegde


I applied the patch like below:

Downloaded patch file from above link and deleted below part from patch file:

diff --git a/meta/recipes-devtools/qemu/ b/meta/recipes-devtools/qemu/
index f451017f6d..ad4ff52892 100644
--- a/meta/recipes-devtools/qemu/
+++ b/meta/recipes-devtools/qemu/
@@ -27,6 +27,7 @@ SRC_URI = "${BPN}-${PV}.tar.xz \
            file://0008-linux-user-Fix-webkitgtk-hangs-on-32-bit-x86-target.patch \
            file://0009-Fix-webkitgtk-builds.patch \
            file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \
+           file://0011-linux-user-remove-host-stime-syscall.patch \
            file://CVE-2019-15890.patch \
            file://CVE-2019-12068.patch \
            file://CVE-2020-1711.patch \

Because,my /meta/recipes-devtools/qemu/ file already has other patches under the anme "0011".

Then I copied the patch file to "poky/meta/recipes-devtools/qemu/qemu/" And appended SRC_URI of "" with "file://0015-linux-user-remove-host-stime-syscall.patch \".

After doing bitbake -c cleansstate <image> and bitbake <image> I still get below errors which is related to "x86_64-linux/qemu-native/ undefined reference to `stime'" and some warnings related to utime and stime.

i have attached complete log file for reference.

Can anyone please let me know if patch has been correctly applied and how to resolve this issue?

Thanks in advance.

Your help will be much appreciated.

Join { to automatically receive all group messages.