Skip to contentSkip to conversation

buildbot failure in qemu on disable_kvm_x86_64_debian_5_0

Qemu-devel Superseded [email protected] 7 participants 13 messages Jul 3, 2011 – Jul 12, 2011

lore
Share & tools
lore
#0 lore raw

The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_5_0 while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_5_0/builds/148

Buildbot URL: http://buildbot.b1-systems.de/qemu/

Buildslave for this Build: b1_qemu_1

Build Reason: The Nightly scheduler named 'nightly_disable_kvm' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

sincerely,
-The Buildbot

#1 lore raw
Quoted 6 lines · On 04.07.2011, at 02:04, [email protected] wrote:

The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_5_0 while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_5_0/builds/148

Buildbot URL: http://buildbot.b1-systems.de/qemu/

Quoted 7 lines

Buildslave for this Build: b1_qemu_1

Build Reason: The Nightly scheduler named 'nightly_disable_kvm' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,

                 from ui/vnc-enc-tight.c:40:

/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include'
make: *** [ui/vnc-enc-tight.o] Error 1

program finished with exit code 2

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Alex

#2 lore raw
Quoted 23 lines · Alexander Graf
Quoted 6 lines · On 04.07.2011, at 02:04, [email protected] wrote:

The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_5_0 while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_5_0/builds/148

Buildbot URL: http://buildbot.b1-systems.de/qemu/

Quoted 7 lines

Buildslave for this Build: b1_qemu_1

Build Reason: The Nightly scheduler named 'nightly_disable_kvm' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,
                from ui/vnc-enc-tight.c:40:
/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include'
make: *** [ui/vnc-enc-tight.o] Error 1

Quoted 4 lines

program finished with exit code 2

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Daniel,
Would it be possible to post the contents of /usr/include/pngconf.h from b1_qemu_1? I checked my local copy and I don't understand these compiler errors. Perhaps you have a different version of the file.

Thanks,
Stefan

#3 lore raw
Quoted 12 lines · Stefan Hajnoczi
Quoted 12 lines
Quoted 1 line

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,

                from ui/vnc-enc-tight.c:40:

/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error:
expected '=', ',', ';', 'asm' or '__attribute__' before 'include' make:
*** [ui/vnc-enc-tight.o] Error 1

program finished with exit code 2

Quoted 7 lines
Quoted 2 lines

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Daniel,
Would it be possible to post the contents of /usr/include/pngconf.h from b1_qemu_1? I checked my local copy and I don't understand these compiler errors. Perhaps you have a different version of the file.

Good catch.

I readded my Debian 5 x86_64 buildslave to the qemu continous build yesterday. Thats the reason of this "regression", which very likely isn't one ...

All the other build failures from last night have the same root cause i guess. Because the run for the first time on b1_qemu_1 since a while ...

Stefan, which distro is your slave currently running on?
I guess we should sync up the buildbot factories so we run the same distro. Or create a new buildbot factory for Debian Lenny and more recent Distro ...

With regards to pngconf.h:

http://people.b1-systems.de/~gollub/pngconf.h

b1_qemu_1 is still runing Debian 5 (Lenny):
libpng12-dev 1.2.27-2+lenny

Best Regards,
Daniel

Signature · 8 lines
Daniel Gollub
Linux Consultant & Developer
Tel.: +49-160 47 73 970 
Mail: [email protected]

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
#4 lore raw
Quoted 23 lines · Daniel Gollub
Quoted 12 lines · Stefan Hajnoczi
Quoted 12 lines
Quoted 1 line

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,
                from ui/vnc-enc-tight.c:40:
/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error:
expected '=', ',', ';', 'asm' or '__attribute__' before 'include' make:
*** [ui/vnc-enc-tight.o] Error 1

program finished with exit code 2

Quoted 7 lines
Quoted 2 lines

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Daniel,
Would it be possible to post the contents of /usr/include/pngconf.h from b1_qemu_1?  I checked my local copy and I don't understand these compiler errors.  Perhaps you have a different version of the file.

Good catch.

Quoted 7 lines

I readded my Debian 5 x86_64 buildslave to the qemu continous build yesterday. Thats the reason of this "regression", which very likely isn't one ...

All the other build failures from last night have the same root cause i guess. Because the run for the first time on b1_qemu_1 since a while ...

Stefan, which distro is your slave currently running on?

yuzuki is running Debian squeeze x86_64.

Stefan

#5 lore raw
In reply to Stefan Hajnoczi

Am 04.07.2011 06:23, schrieb Stefan Hajnoczi:

Quoted 29 lines · Alexander Graf
Quoted 19 lines · On 04.07.2011, at 02:04, [email protected] wrote:
Quoted 7 lines

The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_5_0 while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_5_0/builds/148

Buildbot URL: http://buildbot.b1-systems.de/qemu/

Quoted 7 lines

Buildslave for this Build: b1_qemu_1

Build Reason: The Nightly scheduler named 'nightly_disable_kvm' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,

                from ui/vnc-enc-tight.c:40:
Quoted 8 lines

/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include'
make: *** [ui/vnc-enc-tight.o] Error 1

program finished with exit code 2

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Quoted 7 lines

Daniel,
Would it be possible to post the contents of /usr/include/pngconf.h from b1_qemu_1? I checked my local copy and I don't understand these compiler errors. Perhaps you have a different version of the file.

Thanks,
Stefan

The compiler errors come again from the setjmp check in pngconf.h:

           __pngconf.h__ in libpng already includes setjmp.h;
           __dont__ include it again.;

The buildbot runs Debian Lenny which includes an old version of libpng. That version does not use PNG_SKIP_SETJMP_CHECK to skip the setjmp check. Defining PNG_SETJMP_NOT_SUPPORTED might help with this version, but I still have to test that.

Updating the buildbot to Debian Squeeze would also work.

Cheers,
Stefan

#6 lore raw
Quoted 43 lines · Stefan Weil

Am 04.07.2011 06:23, schrieb Stefan Hajnoczi:

Quoted 29 lines · Alexander Graf
Quoted 19 lines · On 04.07.2011, at 02:04, [email protected] wrote:
Quoted 7 lines

The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_5_0 while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_5_0/builds/148

Buildbot URL: http://buildbot.b1-systems.de/qemu/

Quoted 7 lines

Buildslave for this Build: b1_qemu_1

Build Reason: The Nightly scheduler named 'nightly_disable_kvm' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,

               from ui/vnc-enc-tight.c:40:
Quoted 8 lines

/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include'
make: *** [ui/vnc-enc-tight.o] Error 1

program finished with exit code 2

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Quoted 7 lines

Daniel,
Would it be possible to post the contents of /usr/include/pngconf.h from b1_qemu_1? I checked my local copy and I don't understand these compiler errors. Perhaps you have a different version of the file.

Thanks,
Stefan

The compiler errors come again from the setjmp check in pngconf.h:

          __pngconf.h__ in libpng already includes setjmp.h;
          __dont__ include it again.;
Quoted 6 lines

The buildbot runs Debian Lenny which includes an old version of libpng. That version does not use PNG_SKIP_SETJMP_CHECK to skip the setjmp check. Defining PNG_SETJMP_NOT_SUPPORTED might help with this version, but I still have to test that.

Updating the buildbot to Debian Squeeze would also work.

So it's a real bug and a good thing the buildbot is running on Lenny. Maybe we should add the define and #include setjmp.h to configure, so at least that one fails when compilation wouldn't work either?

Alex

#7 lore raw

Am 04.07.2011 11:21, schrieb Alexander Graf:

Quoted 51 lines · Stefan Weil
Quoted 49 lines

Am 04.07.2011 06:23, schrieb Stefan Hajnoczi:

Quoted 29 lines · Alexander Graf
Quoted 23 lines · On 04.07.2011, at 02:04, [email protected] wrote:
Quoted 7 lines

The Buildbot has detected a new failure on builder disable_kvm_x86_64_debian_5_0 while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/disable_kvm_x86_64_debian_5_0/builds/148

Buildbot URL: http://buildbot.b1-systems.de/qemu/

Quoted 7 lines

Buildslave for this Build: b1_qemu_1

Build Reason: The Nightly scheduler named 'nightly_disable_kvm' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

In file included from /usr/include/png.h:438,
from ui/vnc-enc-tight.c:40:
/usr/include/pngconf.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token /usr/include/pngconf.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'include'
make: *** [ui/vnc-enc-tight.o] Error 1

Quoted 4 lines

program finished with exit code 2

Not sure what exactly is missing, but the last change in that code was from Stefan Weil (2fb0c09f4ff036f68474277ed4edc036f6529de8).

Quoted 7 lines

Daniel,
Would it be possible to post the contents of /usr/include/pngconf.h from b1_qemu_1? I checked my local copy and I don't understand these compiler errors. Perhaps you have a different version of the file.

Thanks,
Stefan

The compiler errors come again from the setjmp check in pngconf.h:

__pngconf.h__ in libpng already includes setjmp.h; __dont__ include it again.;

The buildbot runs Debian Lenny which includes an old version of libpng. That version does not use PNG_SKIP_SETJMP_CHECK to skip the setjmp check. Defining PNG_SETJMP_NOT_SUPPORTED might help with this version, but I still have to test that.

Quoted 6 lines
Quoted 1 line

Updating the buildbot to Debian Squeeze would also work.

So it's a real bug and a good thing the buildbot is running on Lenny. Maybe we should add the define and #include setjmp.h to configure, so at least that one fails when compilation wouldn't work either?

Alex

It's a real bug, or at least an incompatibility with libpng. It can be fixed in several ways, for example these:

1 Don't use libpng because it restricts usage of setjmp.h
and raises confusing compiler errors instead of a clear #error. Code which needs libpng would have to be removed.

2 Don't use libpng if it fails to accepts the current code
(setjmp.h before png.h). This needs a small modification of the libpng check in configure.

3 Define PNG_SETJMP_NOT_SUPPORTED, so Debian Lenny's libpng
works, too. Enhancing the libpng in check in configure would be reasonable to avoid more surprises with other variants of libpng.

4 Remove setjmp.h from qemu-common.h. I expected that I would
have to add setjmp.h in some source files after this operation, but was surprised that this was not needed.

I suggest solution 4 because it is simple, and it also avoids an unnecessary inclusion of setjmp.h in nearly all compiler invocations. Optionally, commit 2fb0c09f4ff036f68474277ed4edc036f6529de8 can be reverted then to detect any use of setjmp.h before png.h.

Regards,
Stefan

#8 lore raw

PATCH 1/1 Remove unneeded setjmp.h (fix compilation with on Debian "lenny")

Some versions of png.h cannot be included after setjmp.h, even when PNG_SKIP_SETJMP_CHECK was defined.

setjmp.h was included from qemu-common.h and is not needed there. Removing the include statement fixes compilation of ui/vnc-enc-tight.c with CONFIG_VNC_PNG defined.

---
 qemu-common.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
qemu-common.h +0 -1
index abd7a75..c2b79bd 100644
@@ -117,7 +117,6 @@ static inline char *realpath(const char *path, char *resolved_path)
 /* FIXME: Remove NEED_CPU_H.  */
 #ifndef NEED_CPU_H
 
-#include <setjmp.h>
 #include "osdep.h"
 #include "bswap.h"
 
Signature · 1 line
1.7.2.5
#9 lore raw

Re: [Qemu-devel] [PATCH] Remove unneeded setjmp.h (fix compilation with on Debian "lenny")

Am 04.07.2011 20:44, schrieb Stefan Weil:

Quoted 9 lines

Some versions of png.h cannot be included after setjmp.h, even when PNG_SKIP_SETJMP_CHECK was defined.

setjmp.h was included from qemu-common.h and is not needed there. Removing the include statement fixes compilation of ui/vnc-enc-tight.c with CONFIG_VNC_PNG defined.

---

Sorry, I noticed that the subject is not correct ("with on") after I had sent the patch. Please use patch v2.

Stefan

#10 lore raw

PATCH v2 1/1 Remove unneeded setjmp.h (fix compilation on Debian "lenny")

In reply to Stefan Weil

Some versions of png.h cannot be included after setjmp.h, even when PNG_SKIP_SETJMP_CHECK was defined.

setjmp.h was included from qemu-common.h and is not needed there. Removing the include statement fixes compilation of ui/vnc-enc-tight.c with CONFIG_VNC_PNG defined.

---
 qemu-common.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
qemu-common.h +0 -1
index abd7a75..c2b79bd 100644
@@ -117,7 +117,6 @@ static inline char *realpath(const char *path, char *resolved_path)
 /* FIXME: Remove NEED_CPU_H.  */
 #ifndef NEED_CPU_H
 
-#include <setjmp.h>
 #include "osdep.h"
 #include "bswap.h"
 
Signature · 1 line
1.7.2.5
#11 lore raw

Re: [Qemu-devel] [PATCH v2] Remove unneeded setjmp.h (fix compilation on Debian "lenny")

Quoted 6 lines · Stefan Weil

Some versions of png.h cannot be included after setjmp.h, even when PNG_SKIP_SETJMP_CHECK was defined.

setjmp.h was included from qemu-common.h and is not needed there. Removing the include statement fixes compilation of ui/vnc-enc-tight.c with CONFIG_VNC_PNG defined.

This isn't the only unnecessary include of setjmp.h, incidentally. The includes in target-alpha/cpu.h and target-ppc/cpu.h could also be removed (cpu-defs.h includes setjmp.h). That would also make those targets consistent with all the rest (which don't include setjmp), so it seems worth the minor cleanup. I'll send a patch...

-- PMM

Applied
#12 lore raw

Re: [Qemu-devel] [PATCH v2] Remove unneeded setjmp.h (fix compilation on Debian "lenny")

In reply to Stefan Weil

Thanks, applied.

Quoted 29 lines · Stefan Weil

Some versions of png.h cannot be included after setjmp.h, even when PNG_SKIP_SETJMP_CHECK was defined.

setjmp.h was included from qemu-common.h and is not needed there. Removing the include statement fixes compilation of ui/vnc-enc-tight.c with CONFIG_VNC_PNG defined.

---
 qemu-common.h |    1 -

 1 files changed, 0 insertions(+), 1 deletions(-)
qemu-common.h +0 -2
index abd7a75..c2b79bd 100644
@@ -117,7 +117,6 @@ static inline char *realpath(const char *path, char *resolved_path)
  /* FIXME: Remove NEED_CPU_H.  */
  #ifndef NEED_CPU_H
 
-#include <setjmp.h>
  #include "osdep.h"
  #include "bswap.h"
 
--

1.7.2.5