* RE: [Qemu-devel] Compile error on Windows
@ 2006-08-17 1:24 Armistead, Jason
2006-08-17 3:46 ` [Qemu-devel] " Alex
0 siblings, 1 reply; 5+ messages in thread
From: Armistead, Jason @ 2006-08-17 1:24 UTC (permalink / raw)
To: 'qemu-devel@nongnu.org'
Alex
Some inevitable question others will ask:
what is your machine's configuration and build environment ?
MSYS ?
GCC ?
What versions of these tools ?
How are you invoking make ?
etc.
Regards
Jason
-----Original Message-----
From: qemu-devel-bounces+jason.armistead=otis.com@nongnu.org
[mailto:qemu-devel-bounces+jason.armistead=otis.com@nongnu.org]On Behalf
Of Alex
Sent: Thursday, 17 August 2006 10:52 AM
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Compile error on Windows
vl.o(.text+0x57b0): In function `do_savevm':
c:/qemu/vl.c:4570: undefined reference to `gettimeofday'
--
Alex.
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: Compile error on Windows
2006-08-17 1:24 [Qemu-devel] Compile error on Windows Armistead, Jason
@ 2006-08-17 3:46 ` Alex
2006-08-17 4:58 ` Kazu
0 siblings, 1 reply; 5+ messages in thread
From: Alex @ 2006-08-17 3:46 UTC (permalink / raw)
To: qemu-devel
MSYS/MinGW on Athlon 1.25 GHz with 500MB of RAM, Windows XP Pro
$ uname -a
MINGW32_NT-5.1 VIC 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
$ gcc --version
gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)
./configure --target-list=i386-softmmu --static
make
I compiled several previous versions of QEMU with no problem (last time from
from a July 27 snapshot)
--
Alex.
"Armistead, Jason" <Jason.Armistead@otis.com> wrote in message
news:A69CFE5B2F49D91186C1000BCD9DBD03E2ABA0@otausminexs.au.otis.com...
> Alex
>
> Some inevitable question others will ask:
>
> what is your machine's configuration and build environment ?
>
> MSYS ?
>
> GCC ?
>
> What versions of these tools ?
>
> How are you invoking make ?
>
> etc.
>
> Regards
>
> Jason
>
> -----Original Message-----
> From: qemu-devel-bounces+jason.armistead=otis.com@nongnu.org
> [mailto:qemu-devel-bounces+jason.armistead=otis.com@nongnu.org]On Behalf
> Of Alex
> Sent: Thursday, 17 August 2006 10:52 AM
> To: qemu-devel@nongnu.org
> Subject: [Qemu-devel] Compile error on Windows
>
>
> vl.o(.text+0x57b0): In function `do_savevm':
> c:/qemu/vl.c:4570: undefined reference to `gettimeofday'
>
>
> --
> Alex.
>
>
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Re: Compile error on Windows
2006-08-17 3:46 ` [Qemu-devel] " Alex
@ 2006-08-17 4:58 ` Kazu
2006-08-17 13:44 ` WaxDragon
0 siblings, 1 reply; 5+ messages in thread
From: Kazu @ 2006-08-17 4:58 UTC (permalink / raw)
To: qemu-devel
Alex wrote:
> MSYS/MinGW on Athlon 1.25 GHz with 500MB of RAM, Windows XP Pro
>
> $ uname -a
> MINGW32_NT-5.1 VIC 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
>
> $ gcc --version
> gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)
>
> ./configure --target-list=i386-softmmu --static
> make
>
> I compiled several previous versions of QEMU with no problem (last time
from
> from a July 27 snapshot)
>
Use this patch.
http://lists.gnu.org/archive/html/qemu-devel/2006-08/msg00107.html
Regards,
Kazu
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] Re: Compile error on Windows
2006-08-17 4:58 ` Kazu
@ 2006-08-17 13:44 ` WaxDragon
2006-08-17 14:51 ` [Qemu-devel] " alex
0 siblings, 1 reply; 5+ messages in thread
From: WaxDragon @ 2006-08-17 13:44 UTC (permalink / raw)
To: qemu-devel
> Use this patch.
> http://lists.gnu.org/archive/html/qemu-devel/2006-08/msg00107.html
>
> Regards,
> Kazu
I thought there was a patch floating around, but this is how I fixed
it, since the code was already there. No idea if it's correct, but it
let me build and boot on my win32 install.
Index: vl.c
===================================================================
RCS file: /sources/qemu/qemu/vl.c,v
retrieving revision 1.207
diff -u -r1.207 vl.c
--- vl.c 7 Aug 2006 21:34:46 -0000 1.207
+++ vl.c 17 Aug 2006 13:42:27 -0000
@@ -4539,7 +4539,6 @@
BlockDriverInfo bdi1, *bdi = &bdi1;
QEMUFile *f;
int saved_vm_running;
- struct timeval tv;
bs = get_bs_snapshots();
if (!bs) {
@@ -4567,9 +4566,8 @@
}
/* fill auxiliary fields */
- gettimeofday(&tv, NULL);
- sn->date_sec = tv.tv_sec;
- sn->date_nsec = tv.tv_usec * 1000;
+ sn->date_sec = get_clock();
+ sn->date_nsec = get_clock() * 1000;
sn->vm_clock_nsec = qemu_get_clock(vm_clock);
if (bdrv_get_info(bs, bdi) < 0 || bdi->vm_state_offset <= 0) {
WD
--
< undrdawg> it was buggy and hung a lot
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] Re: Re: Compile error on Windows
2006-08-17 13:44 ` WaxDragon
@ 2006-08-17 14:51 ` alex
0 siblings, 0 replies; 5+ messages in thread
From: alex @ 2006-08-17 14:51 UTC (permalink / raw)
To: qemu-devel
Thanks all,
I updated my CVS tree this morning and it compiled fine.
Obviously, the problem has been fixed already fixed.
Alex.
"WaxDragon" <waxdragon@gmail.com> wrote in message
news:9b0d5f320608170644t48fb5041r85cb3818cd03635b@mail.gmail.com...
> > Use this patch.
> > http://lists.gnu.org/archive/html/qemu-devel/2006-08/msg00107.html
> >
> > Regards,
> > Kazu
>
> I thought there was a patch floating around, but this is how I fixed
> it, since the code was already there. No idea if it's correct, but it
> let me build and boot on my win32 install.
>
> Index: vl.c
> ===================================================================
> RCS file: /sources/qemu/qemu/vl.c,v
> retrieving revision 1.207
> diff -u -r1.207 vl.c
> --- vl.c 7 Aug 2006 21:34:46 -0000 1.207
> +++ vl.c 17 Aug 2006 13:42:27 -0000
> @@ -4539,7 +4539,6 @@
> BlockDriverInfo bdi1, *bdi = &bdi1;
> QEMUFile *f;
> int saved_vm_running;
> - struct timeval tv;
>
> bs = get_bs_snapshots();
> if (!bs) {
> @@ -4567,9 +4566,8 @@
> }
>
> /* fill auxiliary fields */
> - gettimeofday(&tv, NULL);
> - sn->date_sec = tv.tv_sec;
> - sn->date_nsec = tv.tv_usec * 1000;
> + sn->date_sec = get_clock();
> + sn->date_nsec = get_clock() * 1000;
> sn->vm_clock_nsec = qemu_get_clock(vm_clock);
>
> if (bdrv_get_info(bs, bdi) < 0 || bdi->vm_state_offset <= 0) {
>
>
>
> WD
> --
> < undrdawg> it was buggy and hung a lot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-08-17 14:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-17 1:24 [Qemu-devel] Compile error on Windows Armistead, Jason
2006-08-17 3:46 ` [Qemu-devel] " Alex
2006-08-17 4:58 ` Kazu
2006-08-17 13:44 ` WaxDragon
2006-08-17 14:51 ` [Qemu-devel] " alex
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).