[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 08/11] stubs/notify-event: Mark qemu_notify_event() stub as "
From: |
Richard Henderson |
Subject: |
Re: [PATCH 08/11] stubs/notify-event: Mark qemu_notify_event() stub as "weak" |
Date: |
Tue, 4 Aug 2020 10:50:36 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 8/4/20 10:00 AM, Thomas Huth wrote:
> Otherwise there is a linker error with MinGW while compiling the tests:
>
> LINK tests/test-timed-average.exe
> libqemuutil.a(main-loop.o): In function `qemu_notify_event':
> /builds/huth/qemu/util/main-loop.c:139: multiple definition of
> `qemu_notify_event'
> tests/test-timed-average.o:/builds/huth/qemu/tests/../stubs/notify-event.c:5:
> first defined here
> collect2: error: ld returned 1 exit status
> /builds/huth/qemu/rules.mak:124: recipe for target
> 'tests/test-timed-average.exe' failed
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> stubs/notify-event.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
That doesn't make sense. Since the symbol is satisfied from main-loop.c, it
should not be pulled in from libqemuutil.a.
What's really happening here?
r~
- [PATCH 03/11] tests/Makefile: test-image-locking needs CONFIG_POSIX, (continued)
- [PATCH 03/11] tests/Makefile: test-image-locking needs CONFIG_POSIX, Thomas Huth, 2020/08/04
- [PATCH 04/11] tests/Makefile: test-replication needs CONFIG_POSIX, Thomas Huth, 2020/08/04
- [PATCH 05/11] tests/Makefile: Only build usable targets during 'make check-build', Thomas Huth, 2020/08/04
- [PATCH 07/11] Get rid of the libqemustub.a remainders, Thomas Huth, 2020/08/04
- [PATCH 06/11] tests/Makefile: Add $(EXESUF) to fp-test target, Thomas Huth, 2020/08/04
- [PATCH 08/11] stubs/notify-event: Mark qemu_notify_event() stub as "weak", Thomas Huth, 2020/08/04
- Re: [PATCH 08/11] stubs/notify-event: Mark qemu_notify_event() stub as "weak",
Richard Henderson <=
- [PATCH 09/11] gitlab-ci: Add cross-compiling build tests, Thomas Huth, 2020/08/04
- [PATCH 10/11] configure: Allow automatic WHPX detection, Thomas Huth, 2020/08/04
- [PATCH 11/11] dockerfiles/debian-win64-cross: Download WHPX MinGW headers, Thomas Huth, 2020/08/04