Skip to contentSkip to conversation

buildbot failure in qemu on default_openbsd_current

Qemu-devel [email protected] 7 participants 12 messages May 22, 2012 – May 23, 2012

lore
Share & tools
lore
#0 lore raw

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

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

Buildslave for this Build: brad_openbsd_current

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

Am 23.05.2012 01:09, schrieb [email protected]:

Quoted 6 lines

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

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

Quoted 7 lines

Buildslave for this Build: brad_openbsd_current

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

BUILD FAILED: failed compile

qga/commands-posix.c: In function 'qmp_guest_shutdown':
qga/commands-posix.c:65: error: 'environ' undeclared (first use in this function)
qga/commands-posix.c:65: error: (Each undeclared identifier is reported only once
qga/commands-posix.c:65: error: for each function it appears in.) qga/commands-posix.c:72: warning: implicit declaration of function 'waitpid' qga/commands-posix.c:72: warning: nested extern declaration of 'waitpid' qga/commands-posix.c:74: warning: implicit declaration of function 'WIFEXITED'
qga/commands-posix.c:74: warning: nested extern declaration of 'WIFEXITED' qga/commands-posix.c:74: warning: implicit declaration of function 'WEXITSTATUS'
qga/commands-posix.c:74: warning: nested extern declaration of 'WEXITSTATUS'
gmake: *** [qga/commands-posix.o] Error 1

/-F

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#2 lore raw

2012/5/23 Andreas Färber <[email protected]>

Quoted 13 lines

Am 23.05.2012 01:09, schrieb [email protected]:

Quoted 1 line

The Buildbot has detected a new failure on builder

default_openbsd_current while building qemu.

Quoted 2 lines

Full details are available at:

http://buildbot.b1-systems.de/qemu/builders/default_openbsd_current/builds/271

Quoted 6 lines

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

Buildslave for this Build: brad_openbsd_current

Build Reason: The Nightly scheduler named 'nightly_default' triggered

this build

Quoted 9 lines
Quoted 4 lines

Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

qga/commands-posix.c: In function 'qmp_guest_shutdown':
qga/commands-posix.c:65: error: 'environ' undeclared (first use in this function)

It seems like "extern char **environ;" is missing when building on openbsd

Quoted 22 lines

qga/commands-posix.c:65: error: (Each undeclared identifier is reported only once
qga/commands-posix.c:65: error: for each function it appears in.) qga/commands-posix.c:72: warning: implicit declaration of function 'waitpid'
qga/commands-posix.c:72: warning: nested extern declaration of 'waitpid' qga/commands-posix.c:74: warning: implicit declaration of function 'WIFEXITED'
qga/commands-posix.c:74: warning: nested extern declaration of 'WIFEXITED' qga/commands-posix.c:74: warning: implicit declaration of function 'WEXITSTATUS'
qga/commands-posix.c:74: warning: nested extern declaration of 'WEXITSTATUS'
gmake: *** [qga/commands-posix.o] Error 1

/-F

--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

Signature · 4 lines
linuxer and emacser and pythoner living in beijing
blog: http://mathslinux.org
twitter: https://twitter.com/mathslinux
google+: https://plus.google.com/118129852578326338750
#3 lore raw
Quoted 18 lines · On Wed, 23 May 2012 10:35:36 +0800 dunrong huang <[email protected]> wrote:

2012/5/23 Andreas Färber <[email protected]>

Quoted 16 lines

Am 23.05.2012 01:09, schrieb [email protected]:

Quoted 1 line

The Buildbot has detected a new failure on builder

default_openbsd_current while building qemu.

Quoted 2 lines

Full details are available at:

http://buildbot.b1-systems.de/qemu/builders/default_openbsd_current/builds/271

Quoted 6 lines

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

Buildslave for this Build: brad_openbsd_current

Build Reason: The Nightly scheduler named 'nightly_default' triggered

this build

Quoted 3 lines

Build Source Stamp: [branch master] HEAD
Blamelist:

Quoted 7 lines
Quoted 6 lines
Quoted 1 line

BUILD FAILED: failed compile

qga/commands-posix.c: In function 'qmp_guest_shutdown':
qga/commands-posix.c:65: error: 'environ' undeclared (first use in this function)

It seems like "extern char **environ;" is missing when building on openbsd

Heh, I thought this wouldn't happen. It has been discussed here:

http://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01905.html

I'll provide a patch.

#4 lore raw

2012/5/23 Luiz Capitulino <[email protected]>

Quoted 28 lines
Quoted 8 lines · On Wed, 23 May 2012 10:35:36 +0800 dunrong huang <[email protected]> wrote:

2012/5/23 Andreas Färber <[email protected]>

Quoted 6 lines

Am 23.05.2012 01:09, schrieb [email protected]:

Quoted 1 line

The Buildbot has detected a new failure on builder

default_openbsd_current while building qemu.

Quoted 2 lines

Full details are available at:

http://buildbot.b1-systems.de/qemu/builders/default_openbsd_current/builds/271

Quoted 16 lines
Quoted 16 lines
Quoted 6 lines

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

Buildslave for this Build: brad_openbsd_current

Build Reason: The Nightly scheduler named 'nightly_default' triggered

this build

Quoted 4 lines

Build Source Stamp: [branch master] HEAD
Blamelist:

BUILD FAILED: failed compile

qga/commands-posix.c: In function 'qmp_guest_shutdown':
qga/commands-posix.c:65: error: 'environ' undeclared (first use in this function)

Quoted 7 lines
Quoted 1 line

It seems like "extern char **environ;" is missing when building on

openbsd

Heh, I thought this wouldn't happen. It has been discussed here:

http://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01905.html

Do you mean

"What's the worst case if we leave it as is? The build will brake if environ ends up not being declared by some arch, right? In that case we could leave it as is and fix it when it brakes :)"

Maybe we need a patch to declare environ for openbsd

Quoted 3 lines

I'll provide a patch.

Signature · 4 lines
linuxer and emacser and pythoner living in beijing
blog: http://mathslinux.org
twitter: https://twitter.com/mathslinux
google+: https://plus.google.com/118129852578326338750
#5 lore raw
Quoted 35 lines · On Wed, 23 May 2012 22:33:22 +0800 dunrong huang <[email protected]> wrote:

2012/5/23 Luiz Capitulino <[email protected]>

Quoted 33 lines
Quoted 8 lines · On Wed, 23 May 2012 10:35:36 +0800 dunrong huang <[email protected]> wrote:

2012/5/23 Andreas Färber <[email protected]>

Quoted 6 lines

Am 23.05.2012 01:09, schrieb [email protected]:

Quoted 1 line

The Buildbot has detected a new failure on builder

default_openbsd_current while building qemu.

Quoted 2 lines

Full details are available at:

http://buildbot.b1-systems.de/qemu/builders/default_openbsd_current/builds/271

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

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

Buildslave for this Build: brad_openbsd_current

Build Reason: The Nightly scheduler named 'nightly_default' triggered

this build

Quoted 3 lines

Build Source Stamp: [branch master] HEAD
Blamelist:

Quoted 7 lines
Quoted 6 lines
Quoted 1 line

BUILD FAILED: failed compile

qga/commands-posix.c: In function 'qmp_guest_shutdown':
qga/commands-posix.c:65: error: 'environ' undeclared (first use in this function)

It seems like "extern char **environ;" is missing when building on

openbsd

Heh, I thought this wouldn't happen. It has been discussed here:

Quoted 8 lines
Quoted 2 lines

http://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01905.html

Do you mean

"What's the worst case if we leave it as is? The build will brake if environ ends up not being declared by some arch, right? In that case we could leave it as is and fix it when it brakes :)"

Yes, silly me :)

Quoted 1 line

Maybe we need a patch to declare environ for openbsd

Yes, I have the patch already but am installing openbsd on a VM to test it.

#6 lore raw
Quoted 3 lines · On Wed, 23 May 2012 11:35:49 -0300 Luiz Capitulino <[email protected]>…
Quoted 1 line

Maybe we need a patch to declare environ for openbsd

Yes, I have the patch already but am installing openbsd on a VM to test it.

I'm getting lots of make errors on openbsd 4.9:

"Makefile", line 7: Missing dependency operator "/root/qemu.a/rules.mak", line 20: Missing dependency operator "/root/qemu.a/rules.mak", line 23: Need an operator "/root/qemu.a/rules.mak", line 26: Need an operator "Makefile", line 15: Need an operator
"Makefile", line 19: Need an operator
"Makefile", line 22: Missing dependency operator "Makefile", line 24: Need an operator
Bad modifier: $(SRC_PATH)/hw)

Bad modifier: $(SRC_PATH)/hw)

"Makefile", line 36: Need an operator

Anyone knows what I did wrong? Or, if anybody could test the attached fix...

Quoted 1 line

From 4a3f4cff8aa27fe3810d621d20bf90f18ca8e2d5 Mon Sep 17 00:00:00 2001

From: Luiz Capitulino <[email protected]>
Date: Wed, 23 May 2012 11:33:51 -0300
Subject: [PATCH] qemu-ga: Fix missing environ declarion

Commit 3674838cd05268954bb6473239cd7f700a79bf0f uses the environ global variable, but is relying on it to be declared somewhere else.

This works for Linux because _GNU_SOURCE declares it, but it brakes for system where _GNU_SOURCE is not declared, such as OpenBSD.

Fix it by declaring environ when _GNU_SOURCE is not defined.

---
 qga/commands-posix.c |    5 +++++
 1 file changed, 5 insertions(+)
qga/commands-posix.c +5 -0
index 7664be1..304ffa8 100644
@@ -12,6 +12,7 @@
  */
 
 #include <glib.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include "qga/guest-agent-core.h"
@@ -20,6 +21,10 @@
 #include "qemu-queue.h"
 #include "host-utils.h"
 
+#ifndef _GNU_SOURCE
+extern char **environ;
+#endif
+
 #if defined(__linux__)
 #include <mntent.h>
 #include <linux/fs.h>
Signature · 1 line
1.7.9.2.384.g4a92a
#7 lore raw
Quoted 2 lines · Luiz Capitulino

Anyone knows what I did wrong? Or, if anybody could test the attached fix...

Sorry, I'm not in a position to test the patch, but I can at least review it.

Quoted 9 lines

0001-qemu-ga-Fix-missing-environ-declarion.patch

Quoted 1 line

From 4a3f4cff8aa27fe3810d621d20bf90f18ca8e2d5 Mon Sep 17 00:00:00 2001

From: Luiz Capitulino <[email protected]>
Date: Wed, 23 May 2012 11:33:51 -0300
Subject: [PATCH] qemu-ga: Fix missing environ declarion

s/declarion/declaration/

Quoted 5 lines

Commit 3674838cd05268954bb6473239cd7f700a79bf0f uses the environ global variable, but is relying on it to be declared somewhere else.

This works for Linux because _GNU_SOURCE declares it, but it brakes

s/brakes/breaks/

Quoted 22 lines

for system where _GNU_SOURCE is not declared, such as OpenBSD.

Fix it by declaring environ when _GNU_SOURCE is not defined.

---
 qga/commands-posix.c |    5 +++++
 1 file changed, 5 insertions(+)
qga/commands-posix.c +1 -0
index 7664be1..304ffa8 100644
@@ -12,6 +12,7 @@
  */
 
 #include <glib.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include "qga/guest-agent-core.h"

qga/commands-posix.c line 26

Quoted 6 lines
qga/commands-posix.c +3 -0
@@ -20,6 +21,10 @@
 #include "qemu-queue.h"
 #include "host-utils.h"
 
+#ifndef _GNU_SOURCE
+extern char **environ;
+#endif

Looks reasonable.

Signature · 2 lines
Eric Blake   [email protected]    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
#8 lore raw
Quoted 9 lines · On Wed, 23 May 2012 10:01:02 -0600 Eric Blake <[email protected]> wrote:
Quoted 9 lines

#include <glib.h>

qga/commands-posix.c +1 -0
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include "qga/guest-agent-core.h"
@@ -20,6 +21,10 @@
 #include "qemu-queue.h"
 #include "host-utils.h"
 
Quoted 5 lines

qga/commands-posix.c line 26

Quoted 3 lines
qga/commands-posix.c +3 -0
+#ifndef _GNU_SOURCE
+extern char **environ;
+#endif

Looks reasonable.

But that's not the cause of problem. What's happening is that on F16 environ is declared automatically in <unistd.h>. I'll post a different fix right now.

#9 lore raw
In reply to Luiz Capitulino

Il 23/05/2012 17:57, Luiz Capitulino ha scritto:

Quoted 19 lines
Quoted 3 lines · On Wed, 23 May 2012 11:35:49 -0300 Luiz Capitulino <[email protected]>…
Quoted 1 line

Maybe we need a patch to declare environ for openbsd

Yes, I have the patch already but am installing openbsd on a VM to test it.

I'm getting lots of make errors on openbsd 4.9:

"Makefile", line 7: Missing dependency operator "/root/qemu.a/rules.mak", line 20: Missing dependency operator "/root/qemu.a/rules.mak", line 23: Need an operator "/root/qemu.a/rules.mak", line 26: Need an operator "Makefile", line 15: Need an operator
"Makefile", line 19: Need an operator
"Makefile", line 22: Missing dependency operator "Makefile", line 24: Need an operator
Bad modifier: $(SRC_PATH)/hw)

Quoted 5 lines

Bad modifier: $(SRC_PATH)/hw)

"Makefile", line 36: Need an operator

Anyone knows what I did wrong? Or, if anybody could test the attached fix...

Probably you need to install gnumake.

Paolo

#10 lore raw
Quoted 20 lines · On Wed, 23 May 2012 18:06:18 +0200 Paolo Bonzini <[email protected]> wrote:

Il 23/05/2012 17:57, Luiz Capitulino ha scritto:

Quoted 19 lines
Quoted 3 lines · On Wed, 23 May 2012 11:35:49 -0300 Luiz Capitulino <[email protected]>…
Quoted 1 line

Maybe we need a patch to declare environ for openbsd

Yes, I have the patch already but am installing openbsd on a VM to test it.

I'm getting lots of make errors on openbsd 4.9:

"Makefile", line 7: Missing dependency operator "/root/qemu.a/rules.mak", line 20: Missing dependency operator "/root/qemu.a/rules.mak", line 23: Need an operator "/root/qemu.a/rules.mak", line 26: Need an operator "Makefile", line 15: Need an operator
"Makefile", line 19: Need an operator
"Makefile", line 22: Missing dependency operator "Makefile", line 24: Need an operator
Bad modifier: $(SRC_PATH)/hw)

Quoted 7 lines
Quoted 5 lines

Bad modifier: $(SRC_PATH)/hw)

"Makefile", line 36: Need an operator

Anyone knows what I did wrong? Or, if anybody could test the attached fix...

Probably you need to install gnumake.

Yeah, Andreas helped by irc, but now I get zillions of -Wno-redundant-decls errors:

In file included from /root/qemu.a/qemu-common.h:33,

                 from /root/qemu.a/module.c:16:

/usr//include/unistd.h:99: warning: redundant redeclaration of 'lseek' /usr//include/sys/types.h:210: warning: previous declaration of 'lseek' was here /usr//include/unistd.h:138: warning: redundant redeclaration of 'ftruncate' /usr//include/sys/types.h:211: warning: previous declaration of 'ftruncate' was here

I've removed -Wno-redundant-decls and I finally get the environ build error, but I wonder why build bot doesn't get it.

#11 lore raw
In reply to Luiz Capitulino
Quoted 19 lines · Luiz Capitulino
Quoted 3 lines · On Wed, 23 May 2012 11:35:49 -0300 Luiz Capitulino <[email protected]>…
Quoted 1 line

Maybe we need a patch to declare environ for openbsd

Yes, I have the patch already but am installing openbsd on a VM to test it.

I'm getting lots of make errors on openbsd 4.9:

"Makefile", line 7: Missing dependency operator "/root/qemu.a/rules.mak", line 20: Missing dependency operator "/root/qemu.a/rules.mak", line 23: Need an operator "/root/qemu.a/rules.mak", line 26: Need an operator "Makefile", line 15: Need an operator
"Makefile", line 19: Need an operator
"Makefile", line 22: Missing dependency operator "Makefile", line 24: Need an operator
Bad modifier: $(SRC_PATH)/hw)

Quoted 5 lines

Bad modifier: $(SRC_PATH)/hw)

"Makefile", line 36: Need an operator

Anyone knows what I did wrong? Or, if anybody could test the attached fix...

Had to nuke my openbsd VM a while back to free up space, but I vagulely recall the fix for this being to use gmake instead of make

Quoted 44 lines

From 4a3f4cff8aa27fe3810d621d20bf90f18ca8e2d5 Mon Sep 17 00:00:00 2001
From: Luiz Capitulino <[email protected]>
Date: Wed, 23 May 2012 11:33:51 -0300
Subject: [PATCH] qemu-ga: Fix missing environ declarion

Commit 3674838cd05268954bb6473239cd7f700a79bf0f uses the environ global variable, but is relying on it to be declared somewhere else.

This works for Linux because _GNU_SOURCE declares it, but it brakes for system where _GNU_SOURCE is not declared, such as OpenBSD.

Fix it by declaring environ when _GNU_SOURCE is not defined.

---
 qga/commands-posix.c |    5 +++++
 1 file changed, 5 insertions(+)
qga/commands-posix.c +5 -0
index 7664be1..304ffa8 100644
@@ -12,6 +12,7 @@
  */
 
 #include <glib.h>
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
 #include "qga/guest-agent-core.h"
@@ -20,6 +21,10 @@
 #include "qemu-queue.h"
 #include "host-utils.h"
 
+#ifndef _GNU_SOURCE
+extern char **environ;
+#endif
+
 #if defined(__linux__)
 #include <mntent.h>
 #include <linux/fs.h>
Signature · 1 line
1.7.9.2.384.g4a92a