buildbot failure in qemu on default_x86_64_out_of_tree
The Buildbot has detected a new failure on builder default_x86_64_out_of_tree while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/default_x86_64_out_of_tree/builds/137
Buildbot URL: http://buildbot.b1-systems.de/qemu/
Buildslave for this Build: yuzuki
Build Reason: The Nightly scheduler named 'nightly_default' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:
BUILD FAILED: failed compile
sincerely,
-The Buildbot
PATCH 1/1 vnc: Fix compilation with --enable-vnc-png
Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.
The breakage is caused by pngconfig.h which checks whether setjmp.h was already included and fails because qemu-common.h includes setjmp.h.
The check is disabled by defining PNG_SKIP_SETJMP_CHECK.
--- ui/vnc-enc-tight.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
ui/vnc-enc-tight.c +3 -0
@@ -34,6 +34,9 @@#include "qemu-common.h" #ifdef CONFIG_VNC_PNG +/* The following define is needed by pngconf.h. Otherwise it won't compile, +because setjmp.h was already included by qemu-common.h. */ +#define PNG_SKIP_SETJMP_CHECK #include <png.h> #endif #ifdef CONFIG_VNC_JPEG
Signature · 1 line
1.7.2.5
Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png
Am 27.06.2011 07:29, schrieb Stefan Weil:
Quoted 2 lines
Commit
f26e428da505709ec03b2ed2c9eb3db82b30bd7bfixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.
should be
with --enable-vnc-jpeg, but broke it with --enable-vnc-png.
Please fix this detail before applying the patch.
Thanks,
Stefan
Anthony Liguori
AppliedRe: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png
Quoted 9 lines · Stefan Weil
Am 27.06.2011 07:29, schrieb Stefan Weil:
Quoted 2 lines
Commit
f26e428da505709ec03b2ed2c9eb3db82b30bd7bfixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.should be
with --enable-vnc-jpeg, but broke it with --enable-vnc-png.
Please fix this detail before applying the patch.
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 5 lines
Thanks,
Stefan
Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png
In reply to Stefan WeilQuoted 8 lines · Stefan Weil
Commit
f26e428da505709ec03b2ed2c9eb3db82b30bd7bfixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.The breakage is caused by
pngconfig.hwhich checks whethersetjmp.hwas already included and fails becauseqemu-common.hincludessetjmp.h.The check is disabled by defining
PNG_SKIP_SETJMP_CHECK.
Did you check if "You can bypass this test if you know that your application uses exactly the same setjmp.h that was included when libpng was built." (from /usr/include/pngconf.h) applies for us in all supported cases?
Jan
Quoted 21 lines
Cc Blue Swirl <[email protected]>Signed-off-by Stefan Weil <[email protected]>--- ui/vnc-enc-tight.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)ui/vnc-enc-tight.c +3
-0@@ -34,6 +34,9 @@#include "qemu-common.h" #ifdef CONFIG_VNC_PNG +/* The following define is needed by pngconf.h. Otherwise it won't compile, +because setjmp.h was already included by qemu-common.h. */ +#define PNG_SKIP_SETJMP_CHECK #include <png.h> #endif #ifdef CONFIG_VNC_JPEG
Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png
In reply to Stefan WeilQuoted 7 lines · Stefan Weil
Commit
f26e428da505709ec03b2ed2c9eb3db82b30bd7bfixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.The breakage is caused by
pngconfig.hwhich checks whethersetjmp.hwas already included and fails becauseqemu-common.hincludessetjmp.h.
Quoted 7 lines
The check is disabled by defining
PNG_SKIP_SETJMP_CHECK.Cc Blue Swirl <[email protected]>Signed-off-by Stefan Weil <[email protected]>---
ui/vnc-enc-tight.c | 3 +++1 files changed, 3 insertions(+), 0 deletions(-)
Some more info on why Stefan Weil's fix is correct:
The setjmp(3) man page says,
"POSIX does not specify whether setjmp() will save the signal mask. In System V it will not. In 4.3BSD it will, and there is a function _setjmp that will not. By default, Linux/glibc follows the System V behavior, but the BSD behavior is provided if the _BSD_SOURCE feature test macro is defined and none of _POSIX_SOURCE, _POSIX_C_SOURCE, _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _GNU_SOURCE, or _SVID_SOURCE is defined."
Apparently libpng wants to make sure that the setjmp() which will not save signal masks is used on Linux. The problem is that Linux supports both versions and jmp_buf is part of the libpng API. That means the application and the library need to agree on which setjmp() semantics will be used.
That said, QEMU doesn't seem to make use of the jmp_buf API in libpng, so this really shouldn't matter at all. We can skip the header check.
Stefan
Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png
Quoted 30 lines · Stefan Hajnoczi
Quoted 7 lines · Stefan Weil
Commit
f26e428da505709ec03b2ed2c9eb3db82b30bd7bfixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.The breakage is caused by
pngconfig.hwhich checks whethersetjmp.hwas already included and fails becauseqemu-common.hincludessetjmp.h.Quoted 7 lines
The check is disabled by defining
PNG_SKIP_SETJMP_CHECK.Cc Blue Swirl <[email protected]>Signed-off-by Stefan Weil <[email protected]>--- ui/vnc-enc-tight.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)Reviewed-by Stefan Hajnoczi <[email protected]>Some more info on why Stefan Weil's fix is correct:
The setjmp(3) man page says,
"POSIX does not specify whether
setjmp()will save the signal mask. In System V it will not. In 4.3BSD it will, and there is a function_setjmpthat will not. By default, Linux/glibc follows the System V behavior, but the BSD behavior is provided if the_BSD_SOURCEfeature test macro is defined and none of_POSIX_SOURCE,_POSIX_C_SOURCE,_XOPEN_SOURCE,_XOPEN_SOURCE_EXTENDED,_GNU_SOURCE, or_SVID_SOURCEis defined."
Quoted 8 lines
Apparently libpng wants to make sure that the
setjmp()which will not save signal masks is used on Linux. The problem is that Linux supports both versions andjmp_bufis part of the libpng API. That means the application and the library need to agree on whichsetjmp()semantics will be used.That said, QEMU doesn't seem to make use of the
jmp_bufAPI in libpng, so this really shouldn't matter at all. We can skip the header check.
That sounds good. Please adjust the comment that this patch introduces.
Jan
Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png
In reply to Stefan WeilQuoted 2 lines · Stefan Weil
Commit
f26e428da505709ec03b2ed2c9eb3db82b30bd7bfixed compilation with --enable-vnc-png, but broke it with --enable-vnc-png.
You mean "with --enable-vnc-jpeg, but", don't you?
Quoted 5 lines
The breakage is caused by
pngconfig.hwhich checks whethersetjmp.hwas already included and fails becauseqemu-common.hincludessetjmp.h.The check is disabled by defining
PNG_SKIP_SETJMP_CHECK.
[...]