summary refs log tree commit diff stats
path: root/classification_output/01/instruction/3457423
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-06-01 14:53:08 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-06-01 14:53:08 +0200
commit0d401089e9e72a8d9fb9b41d920126aa9fb23b05 (patch)
treee9ccc55b62498cf41023895880be55252227dc5b /classification_output/01/instruction/3457423
parent6d37f43e58f3ab6595d8769f3c5204ee164eafef (diff)
downloadqemu-analysis-0d401089e9e72a8d9fb9b41d920126aa9fb23b05.tar.gz
qemu-analysis-0d401089e9e72a8d9fb9b41d920126aa9fb23b05.zip
first classification of mail-threads
Diffstat (limited to 'classification_output/01/instruction/3457423')
-rw-r--r--classification_output/01/instruction/345742340
1 files changed, 40 insertions, 0 deletions
diff --git a/classification_output/01/instruction/3457423 b/classification_output/01/instruction/3457423
new file mode 100644
index 000000000..ffcf905b4
--- /dev/null
+++ b/classification_output/01/instruction/3457423
@@ -0,0 +1,40 @@
+instruction: 0.778
+semantic: 0.635
+mistranslation: 0.537
+other: 0.236
+
+[Qemu-devel] [BUG] Failed to compile using gcc7.1
+
+Hi all,
+
+After upgrading gcc from 6.3.1 to 7.1.1, qemu can't be compiled with gcc.
+
+The error is:
+
+------
+  CC      block/blkdebug.o
+block/blkdebug.c: In function 'blkdebug_refresh_filename':
+block/blkdebug.c:693:31: error: '%s' directive output may be truncated
+writing up to 4095 bytes into a region of size 4086
+[-Werror=format-truncation=]
+"blkdebug:%s:%s", s->config_file ?: "",
+                               ^~
+In file included from /usr/include/stdio.h:939:0,
+                 from /home/adam/qemu/include/qemu/osdep.h:68,
+                 from block/blkdebug.c:25:
+/usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk'
+output 11 or more bytes (assuming 4106) into a destination of size 4096
+return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
+          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+        __bos (__s), __fmt, __va_arg_pack ());
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+cc1: all warnings being treated as errors
+make: *** [/home/adam/qemu/rules.mak:69: block/blkdebug.o] Error 1
+------
+
+It seems that gcc 7 is introducing more restrict check for printf.
+If using clang, although there are some extra warning, it can at least
+pass the compile.
+Thanks,
+Qu
+