summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/2476.toml
blob: 5bbdab6338d7c9ce50b9581785ba1da85dda0ffd (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
53
54
55
56
57
58
59
60
id = 2476
title = "Regression 9.1.0-rc0: Msys2/Clang64 build fails"
state = "closed"
created_at = "2024-08-02T03:51:25.283Z"
closed_at = "2024-08-17T22:04:10.348Z"
labels = ["Build System", "TCG plugins", "hostos: Windows", "workflow::Patch available"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/2476"
host-os = "Windows 10 22H2"
host-arch = "x86_64"
qemu-version = "9.1.0-rc0"
guest-os = "n/a"
guest-arch = "n/a"
description = """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
```"""
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 = """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)"""