summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/1295.toml
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/1295.toml')
-rw-r--r--gitlab/issues/target_missing/host_missing/accel_missing/1295.toml35
1 files changed, 35 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/1295.toml b/gitlab/issues/target_missing/host_missing/accel_missing/1295.toml
new file mode 100644
index 000000000..7278f8ad8
--- /dev/null
+++ b/gitlab/issues/target_missing/host_missing/accel_missing/1295.toml
@@ -0,0 +1,35 @@
+id = 1295
+title = "configure script can fail if compiler flag `-Wunused-parameter` is enabled"
+state = "closed"
+created_at = "2022-11-02T20:07:03.088Z"
+closed_at = "2022-11-28T19:27:40.699Z"
+labels = ["Build System", "hostos: Windows", "kind::Bug"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/1295"
+host-os = "Debian GNU Linux bullseye (stable)"
+host-arch = "x86_64"
+qemu-version = "Git master"
+guest-os = "n/a"
+guest-arch = "n/a"
+description = """`configure` fails with an error message:
+
+```
+ERROR: SafeStack is only supported by the coroutine backend ucontext
+```"""
+reproduce = """1. Run `./configure --cross-prefix=x86_64-w64-mingw32- --disable-werror --extra-cflags=-Wunused-parameter`"""
+additional = """Last part of `config.log`:
+
+```
+x86_64-w64-mingw32-gcc -m64 -mcx16 -I/mingw64/include -Wunused-parameter -fno-pie -mthreads -std=gnu11 -Wall -fno-pie -no-pie -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -Werror -o config-temp/qemu-conf.exe config-temp/qemu-conf.c -L/mingw64/lib -no-pie
+config-temp/qemu-conf.c: In function ‘main’:
+config-temp/qemu-conf.c:1:14: error: unused parameter ‘argc’ [-Werror=unused-parameter]
+    1 | int main(int argc, char *argv[])
+      |          ~~~~^~~~
+config-temp/qemu-conf.c:1:26: error: unused parameter ‘argv’ [-Werror=unused-parameter]
+    1 | int main(int argc, char *argv[])
+      |                    ~~~~~~^~~~~~
+cc1: all warnings being treated as errors
+```
+
+The configure script fails because it tries to compile small C programs with a main function which is declared with arguments `argc` and `argv` although those arguments are unused.
+
+Using the same compiler flag for a native build (`./configure --disable-werror --extra-cflags=-Wunused-parameter`) shows the same errors in `config.log`, but surprisingly does not fail."""