Received: from eggs.gnu.org ([2001:4830:134:3::10]:52549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsBEo-0001rq-CL for qemu-devel@nongnu.org; Thu, 06 Oct 2016 12:09:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsBEi-0008WG-Ey for qemu-devel@nongnu.org; Thu, 06 Oct 2016 12:09:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsBEi-0008VJ-5N for qemu-devel@nongnu.org; Thu, 06 Oct 2016 12:09:32 -0400 From: Juan Quintela In-Reply-To: (Peter Maydell's message of "Thu, 6 Oct 2016 11:59:09 +0100") References: <1475675109-8105-1-git-send-email-quintela@redhat.com> Reply-To: quintela@redhat.com Date: Thu, 06 Oct 2016 18:09:24 +0200 Message-ID: <871szth32j.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PULL 00/15] Migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Amit Shah , "Dr. David Alan Gilbert" Peter Maydell wrote: > On 5 October 2016 at 14:44, Juan Quintela wrote: >> From: Juan Quintela >> >> The following changes since commit bbc4c3f4f3c624e2de64fdcb79f4dd8c1a508e9d: >> >> Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' >> into staging (2016-10-04 14:25:08 +0100) >> >> are available in the git repository at: >> >> git://github.com/juanquintela/qemu.git tags/migration/20161005-1 >> >> for you to fetch changes up to c62da143b6792cc32dbd5db15b936d7f58cc36ee: >> >> docs/xbzrle: correction (2016-10-05 14:28:41 +0200) >> >> ---------------------------------------------------------------- >> migration/next for 20161005 >> >> Hi >> >> This get: >> - documentation fix: Cao >> - improve max-bandwidth and downtime-limit (Ashijeet) >> - move migration commands to "boxed" (Eric) >> - rdma fixes (David) >> - postcopy fixes (David) >> - better errors (David) >> >> Please apply > > This runs into the "OSX %zu vs SIZE_MAX" issue again: Grrrr. I already have trouble with %PR vs %zu for i386 vs anything else. Anyone has a linux crosscompiler for osx that I can use? Or there is a way to get darwin or whatever virtual machine to test compile this? It gets frustrating, before submissing I do: - make check - avocado virt test - full compile on linux x86_64 (64 bits) - full compile on linux i386 (32 bits) - full cross-compile for windows 64bit - full cross-compile for windows 32bit (ok, I only test linux 64 bit), and I still don't get all the errors. > /Users/pm215/src/qemu-for-merges/migration/migration.c:810:61: > warning: format specifies type 'size_t' (aka 'unsigned long') but the > argument has type 'unsigned long long' [-Wformat] > " range of 0 to %zu bytes/second", SIZE_MAX); > ~~~ ^~~~~~~~ > %llu > /Users/pm215/src/qemu-for-merges/include/qapi/error.h:163:35: note: > expanded from macro 'error_setg' > (fmt), ## __VA_ARGS__) > ^ > /usr/include/stdint.h:153:20: note: expanded from macro 'SIZE_MAX' > #define SIZE_MAX UINT64_MAX > ^~~~~~~~~~ > /usr/include/stdint.h:87:27: note: expanded from macro 'UINT64_MAX' > #define UINT64_MAX 18446744073709551615ULL > ^~~~~~~~~~~~~~~~~~~~~~~ > > In the absence of a suitable configure test and override of SIZE_MAX, > we've been adding explicit (uint64_t) casts in the printf as the > simplest workaround. Will do that, but as I have no way to compile test this, it will continue hitting me :-( Thanks for telling me. Later, Juan. PD. Sorry if it sounded like a rant, just frustration O:-)