blob: 536d16748677765a6a5f4122bc1b4a1fc4fdf0f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
Regression 9.1.0-rc0: Msys2/Clang64 build fails
Description of problem:
Building QEMU in Msys2/Clang64 environment now fails. It is possible with 8.2.0 and 9.0.0 if option "--disable-plugins" is used.
I suppose this option is broken now:
```
[2207/2362] Linking target qemu-system-aarch64.exe
FAILED: qemu-system-aarch64.exe
"cc" "-m64" @qemu-system-aarch64.exe.rsp
lld: error: unknown argument: --dynamic-list=D:/msys64plain/home/Normalo/qemu-9.1.0-rc0/plugins/qemu-plugins.symbols
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:167: run-ninja] Error 1
make[1]: Leaving directory '/home/Normalo/qemu-9.1.0-rc0/build'
make: *** [GNUmakefile:6: build] Error 2
```
Steps to reproduce:
1. tar -xf qemu-9.1.0-rc0.tar.xz
2. cd qemu-9.1.0-rc0
3. ./configure --target-list=aarch64-softmmu --disable-plugins
4. make
Additional information:
See attached log files [configure.log](/uploads/c56dd6c9064d98d3498923adcd61a4f9/configure.log) and [build.log](/uploads/c3f16160cffcd4a817f0304226db604e/build.log)
After reverting the last commit on plugins/meson.build the build succeeds, because here the parameter causing the failure (`--dynamic-list`) is only applied, if plugins are enabled.
```
commit 0082475e26430297ef65e598db5b67c8ac182620
Author: Paolo Bonzini <pbonzini@redhat.com>
Date: Thu Jun 6 15:07:23 2024 +0200
meson: merge plugin_ldflags into emulator_link_args
These serve the same purpose, except plugin_ldflags ends up in the linker
command line in a more roundabout way (through specific_ss). Simplify.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
```
Configuring with plugins enabled fails with:
```
../plugins/meson.build:28:32: ERROR: Command `D:\msys64plain\clang64\bin/dlltool.EXE --input-def D:/msys64plain/home/Normalo/qemu-9.1.0-rc0/build/plugins/qemu_plugin_api.def --output-delaylib D:/msys64plain/home/Normalo/qemu-9.1.0-rc0/build/plugins/libqemu_plugin_api.a --dllname qemu.exe` failed with status 1.
A full log can be found at D:/msys64plain/home/Normalo/qemu-9.1.0-rc0/build/meson-logs/meson-log.txt
ERROR: meson setup failed
```
See attached log files [configure-plugins-enabled.log](/uploads/5ce608791fe9a47165c3fecaddce1aa8/configure-plugins-enabled.log) and [meson-log-plugins-enabled.txt](/uploads/8dc1e95726847270052def5d7b0bd63a/meson-log-plugins-enabled.txt)
|