On 02/09/2020 21.13, 罗勇刚(Yonggang Luo) wrote:
>
> C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> tests/test-image-locking.o: in function `check_locked_bytes':
> 5564D:/a/qemu/qemu/tests/test-image-locking.c:69: undefined reference to
> `qemu_lock_fd_test'
> 5565C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> D:/a/qemu/qemu/tests/test-image-locking.c:71: undefined reference to
> `qemu_lock_fd_test'
> 5566C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> D:/a/qemu/qemu/tests/test-image-locking.c:62: undefined reference to
> `qemu_lock_fd_test'
> 5567C:/tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> tests/test-image-locking.o: in function `main':
> 5568D:/a/qemu/qemu/tests/test-image-locking.c:152: undefined reference
> to `qemu_has_ofd_lock'
> 5569collect2.exe: error: ld returned 1 exit status
> 5570make: *** [D:/a/qemu/qemu/rules.mak:88:
> tests/test-image-locking.exe] Error 1
> 5571make: *** Waiting for unfinished jobs....
You need this patch here:
https://lore.kernel.org/qemu-devel/20200823111757.72002-4-thuth@redhat.com/
and also:
https://lore.kernel.org/qemu-devel/20200823111757.72002-5-thuth@redhat.com/
Well, about
test-replication, I've already fixes the test code directly, so enable it on win32 is a better option
... or wait for Paolo's next meson pull request which will convert
tests/Makefile to meson.
Thomas
--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo