Skip to contentSkip to conversation

buildbot failure in qemu on default_mingw32

Qemu-devel [email protected] 4 participants 7 messages Sep 10, 2012 – Sep 11, 2012

lore
Share & tools
lore
#0 lore raw

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

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

Buildslave for this Build: kraxel_rhel61

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

MinGW has no gmtime_r() which was added here:

commit 41a9b8b24d59acec462b0d8e0d2a7ffce6031d55

Author: Yang Zhang <[email protected]>
Date:   Thu Aug 2 18:04:10 2012 +0200

RTC: Add divider reset support

The first update cycle begins one-half seconds after divider reset is removed. This feature is useful for testing.

- sw

Am 11.09.2012 01:54, schrieb [email protected]:

Quoted 17 lines

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

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

Buildslave for this Build: kraxel_rhel61

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

#2 lore raw

Am 11.09.2012 07:14, schrieb Stefan Weil:

Quoted 8 lines

MinGW has no gmtime_r() which was added here:

commit 41a9b8b24d59acec462b0d8e0d2a7ffce6031d55

Author: Yang Zhang <[email protected]>
Date:   Thu Aug 2 18:04:10 2012 +0200

RTC: Add divider reset support

Quoted 9 lines

The first update cycle begins one-half seconds after divider reset is removed. This feature is useful for testing.

- sw

Sorry, it was commit 56038ef6 which broke MinGW (same author).

- sw

#3 lore raw

Il 11/09/2012 07:23, Stefan Weil ha scritto:

Quoted 16 lines

Am 11.09.2012 07:14, schrieb Stefan Weil:

Quoted 15 lines

MinGW has no gmtime_r() which was added here:

commit 41a9b8b24d59acec462b0d8e0d2a7ffce6031d55

Author: Yang Zhang <[email protected]>
Date:   Thu Aug 2 18:04:10 2012 +0200

RTC: Add divider reset support

The first update cycle begins one-half seconds after divider reset is removed. This feature is useful for testing.

Quoted 5 lines
Quoted 2 lines

- sw

Sorry, it was commit 56038ef6 which broke MinGW (same author).

Ok, mingw has _gmtime32_s instead. Patch coming.

Paolo

#4 lore raw
In reply to Stefan Weil

how about the following patch:

hw/mc146818rtc.c +3 -3
index d63554f..30bbbe6 100644
@@ -556,14 +556,14 @@ static void rtc_set_cmos(RTCState *s, const struct tm *tm)
 
 static void rtc_update_time(RTCState *s)
 {
-    struct tm ret;
+    struct tm *ret;
     time_t guest_sec;
     int64_t guest_nsec;
 
     guest_nsec = get_guest_rtc_ns(s);
     guest_sec = guest_nsec / NSEC_PER_SEC;
-    gmtime_r(&guest_sec, &ret);
-    rtc_set_cmos(s, &ret);
+    ret = gmtime(&guest_sec);
+    rtc_set_cmos(s, ret);
 }
 
 static int update_in_progress(RTCState *s)

Best regards,
Yang

Quoted 44 lines

-----Original Message-----
From: Stefan Weil [mailto:[email protected]]
Sent: Tuesday, September 11, 2012 1:14 PM
To: Zhang, Yang Z
Cc: Paolo Bonzini; [email protected]
Subject: Re: [Qemu-devel] buildbot failure in qemu on default_mingw32

MinGW has no gmtime_r() which was added here:

commit 41a9b8b24d59acec462b0d8e0d2a7ffce6031d55

Author: Yang Zhang <[email protected]>
Date:   Thu Aug 2 18:04:10 2012 +0200

RTC: Add divider reset support

The first update cycle begins one-half seconds after divider reset is removed. This feature is useful for testing.

- sw

Am 11.09.2012 01:54, schrieb [email protected]:

Quoted 1 line

The Buildbot has detected a new failure on builder default_mingw32 while

building qemu.

Quoted 16 lines

Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/372

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

Buildslave for this Build: kraxel_rhel61

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

#5 lore raw

Il 11/09/2012 09:05, Zhang, Yang Z ha scritto:

Quoted 12 lines

how about the following patch:

hw/mc146818rtc.c +1 -1
index d63554f..30bbbe6 100644
@@ -556,14 +556,14 @@ static void rtc_set_cmos(RTCState *s, const struct tm *tm)
 
 static void rtc_update_time(RTCState *s)
 {
-    struct tm ret;
+    struct tm *ret;

hw/mc146818rtc.c static void rtc_set_cmos(RTCState *s, const struct tm *tm) · line 567

Quoted 10 lines
hw/mc146818rtc.c +2 -2
     time_t guest_sec;
     int64_t guest_nsec;
 
     guest_nsec = get_guest_rtc_ns(s);
     guest_sec = guest_nsec / NSEC_PER_SEC;
-    gmtime_r(&guest_sec, &ret);
-    rtc_set_cmos(s, &ret);
+    ret = gmtime(&guest_sec);
+    rtc_set_cmos(s, ret);
 }

No, let's add a portability wrapper for gmtime_r instead.

Paolo

#6 lore raw

Paolo Bonzini wrote on 2012-09-11:

Quoted 14 lines

Il 11/09/2012 09:05, Zhang, Yang Z ha scritto:

Quoted 13 lines

how about the following patch:

hw/mc146818rtc.c index d63554f..30bbbe6 renamed from hw/mc146818rtc.c +0 -0

100644 --- a/hw/mc146818rtc.c +++ b/hw/mc146818rtc.c @@ -556,14 +556,14 @@ static void rtc_set_cmos(RTCState *s, const struct tm *tm)

static void rtc_update_time(RTCState *s)
{

hw/mc146818rtc.c index d63554f..30bbbe6 renamed from hw/mc146818rtc.c +1 -1
-    struct tm ret;
+    struct tm *ret;
     time_t guest_sec;
     int64_t guest_nsec;
Quoted 9 lines

hw/mc146818rtc.c index d63554f..30bbbe6

Quoted 7 lines
     guest_nsec = get_guest_rtc_ns(s);
     guest_sec = guest_nsec / NSEC_PER_SEC;
hw/mc146818rtc.c index d63554f..30bbbe6 renamed from hw/mc146818rtc.c +2 -2
-    gmtime_r(&guest_sec, &ret);
-    rtc_set_cmos(s, &ret);
+    ret = gmtime(&guest_sec);
+    rtc_set_cmos(s, ret);
 }

No, let's add a portability wrapper for gmtime_r instead.

Right, this is a better way to solve it.

Best regards,
Yang