I assume this had been fixed by this commit here: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=1405b6290fa2143e02dce - so I'm closing this ticket now. If you still hit the problem with the latest version of QEMU, please feel free to open this ticket again.
** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1179664 Title: migration.c:293: undefined reference to `__sync_val_compare_and_swap_4' Status in QEMU: Fix Released Bug description: latest git qemu error i get on compiling with mingw LINK i386-softmmu/qemu-system-i386w.exe ../migration.o: In function `migrate_finish_set_state': C:\MinGW\msys\1.0\home\therock247uk\qemu/migration.c:293: undefined reference to `__sync_val_compare_and_swap_4' C:\MinGW\msys\1.0\home\therock247uk\qemu/migration.c:293: undefined reference to `__sync_val_compare_and_swap_4' C:\MinGW\msys\1.0\home\therock247uk\qemu/migration.c:293: undefined reference to `__sync_val_compare_and_swap_4' collect2.exe: error: ld returned 1 exit status make[1]: *** [qemu-system-i386w.exe] Error 1 make: *** [subdir-i386-softmmu] Error 2 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1179664/+subscriptions