Skip to contentSkip to conversation

buildbot failure in qemu on default_x86_64_out_of_tree

Qemu-devel Applied [email protected] 6 participants 8 messages Jun 26, 2011 – Jun 27, 2011

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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
index 6d36a7f..5c02803 100644
@@ -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
#2 lore raw

Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png

Am 27.06.2011 07:29, schrieb Stefan Weil:

Quoted 2 lines

Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed 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

#4 lore raw

Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png

In reply to Stefan Weil
Quoted 8 lines · Stefan Weil

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.

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
---
 ui/vnc-enc-tight.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
ui/vnc-enc-tight.c +3 -0
index 6d36a7f..5c02803 100644
@@ -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
Reviewed-by on v1 1/1
#5 lore raw

Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png

In reply to Stefan Weil
Quoted 7 lines · Stefan Weil

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.

Quoted 7 lines

The check is disabled by defining PNG_SKIP_SETJMP_CHECK.

---
 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

#6 lore raw

Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png

Quoted 30 lines · Stefan Hajnoczi
Quoted 7 lines · Stefan Weil

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.

Quoted 7 lines

The check is disabled by defining PNG_SKIP_SETJMP_CHECK.

---
 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."

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 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.

That sounds good. Please adjust the comment that this patch introduces.

Jan

#7 lore raw

Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png

In reply to Stefan Weil
Quoted 2 lines · Stefan Weil

Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed 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.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.

[...]

#3 lore raw

Re: [Qemu-devel] [PATCH] vnc: Fix compilation with --enable-vnc-png

In reply to Stefan Weil
Quoted 9 lines · Stefan Weil

Am 27.06.2011 07:29, schrieb Stefan Weil:

Quoted 2 lines

Commit f26e428da505709ec03b2ed2c9eb3db82b30bd7b fixed 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