buildbot failure in qemu on default_mingw32
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
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_mingw32while building qemu. Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/372Buildbot URL: http://buildbot.b1-systems.de/qemu/
Buildslave for this Build:
kraxel_rhel61Build Reason: The Nightly scheduler named '
nightly_default' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:BUILD FAILED: failed compile
sincerely,
-The Buildbot
Am 11.09.2012 07:14, schrieb Stefan Weil:
Quoted 8 lines
MinGW has no
gmtime_r()which was added here:commit
41a9b8b24d59acec462b0d8e0d2a7ffce6031d55Author: Yang Zhang <[email protected]> Date: Thu Aug 2 18:04:10 2012 +0200RTC: 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.
Signed-off-by Yang Zhang <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>Signed-off-by Anthony Liguori <[email protected]>- sw
Sorry, it was commit 56038ef6 which broke MinGW (same author).
- sw
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
41a9b8b24d59acec462b0d8e0d2a7ffce6031d55Author: Yang Zhang <[email protected]> Date: Thu Aug 2 18:04:10 2012 +0200RTC: Add divider reset support
The first update cycle begins one-half seconds after divider reset is removed. This feature is useful for testing.
Signed-off-by Yang Zhang <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>Signed-off-by Anthony Liguori <[email protected]>
Quoted 5 lines
Quoted 2 lines
- sw
Sorry, it was commit
56038ef6which broke MinGW (same author).
Ok, mingw has _gmtime32_s instead. Patch coming.
Paolo
how about the following patch:
hw/mc146818rtc.c +3 -3
@@ -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 ondefault_mingw32MinGW has no
gmtime_r()which was added here:commit
41a9b8b24d59acec462b0d8e0d2a7ffce6031d55Author: Yang Zhang <[email protected]> Date: Thu Aug 2 18:04:10 2012 +0200RTC: Add divider reset support
The first update cycle begins one-half seconds after divider reset is removed. This feature is useful for testing.
Signed-off-by Yang Zhang <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>Signed-off-by Anthony Liguori <[email protected]>- sw
Am 11.09.2012 01:54, schrieb [email protected]:
Quoted 1 line
The Buildbot has detected a new failure on builder
default_mingw32whilebuilding qemu.
Quoted 16 lines
Full details are available at:
http://buildbot.b1-systems.de/qemu/builders/default_mingw32/builds/372Buildbot URL: http://buildbot.b1-systems.de/qemu/
Buildslave for this Build:
kraxel_rhel61Build Reason: The Nightly scheduler named '
nightly_default' triggered this build Build Source Stamp: [branch master] HEAD
Blamelist:BUILD FAILED: failed compile
sincerely,
-The Buildbot
Il 11/09/2012 09:05, Zhang, Yang Z ha scritto:
Quoted 12 lines
how about the following patch:
hw/mc146818rtc.c +1
-1@@ -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
-2time_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
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
-0100644 ---
a/hw/mc146818rtc.c+++b/hw/mc146818rtc.c@@ -556,14 +556,14 @@ static voidrtc_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_rinstead.
Right, this is a better way to solve it.
Best regards,
Yang