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


Sourabh Hegde
 

Hello,

I applied the patch https://patchwork.openembedded.org/patch/172282/ like below:

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

diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index f451017f6d..ad4ff52892 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -27,6 +27,7 @@ SRC_URI = "https://download.qemu.org/${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/qemu.inc 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 "qemu-native.inc" 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/3.1.1.1-r0/qemu-3.1.1.1/linux-user/syscall.c:7404: 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 yocto@lists.yoctoproject.org to automatically receive all group messages.