From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTcO5-0004T0-LD for qemu-devel@nongnu.org; Wed, 10 Feb 2016 16:33:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTcO0-0000SR-Mk for qemu-devel@nongnu.org; Wed, 10 Feb 2016 16:33:25 -0500 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTcO0-0000SD-G0 for qemu-devel@nongnu.org; Wed, 10 Feb 2016 16:33:20 -0500 Received: by mail-wm0-x22f.google.com with SMTP id p63so44427913wmp.1 for ; Wed, 10 Feb 2016 13:33:20 -0800 (PST) Sender: Paolo Bonzini References: <1455034432-7045-1-git-send-email-pbonzini@redhat.com> <56BB31B1.9080500@redhat.com> <56BB8C8F.8000803@redhat.com> From: Paolo Bonzini Message-ID: <56BBAC9C.9080908@redhat.com> Date: Wed, 10 Feb 2016 22:33:16 +0100 MIME-Version: 1.0 In-Reply-To: <56BB8C8F.8000803@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL v3 00/33] Misc patches for 2016-02-08 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , Peter Maydell , qemu-devel On 10/02/2016 20:16, John Snow wrote: > > jsnow@scv ((977a82a...)) ~/s/q/b/git> ../../configure --cxx=clang++ > --cc=clang --host-cc=clang --extra-cflags=-Werror > --extra-cflags=-fsanitize=undefined > --extra-cflags=-Wno-deprecated-declarations > --extra-cflags=-fno-sanitize=float-divide-by-zero > --target-list="x86_64-softmmu" > > ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. > You probably need to set PKG_CONFIG_LIBDIR > to point to the right pkg-config files for your > build target > > > > Problem appears to be this: > > /usr/include/glib-2.0/glib/gmem.h:76:58: error: unknown attribute > '__alloc_size__' ignored [-Werror,-Wunknown-attributes] > gpointer g_malloc (gsize n_bytes) G_GNUC_MALLOC > G_GNUC_ALLOC_SIZE(1); > ^ > /usr/include/glib-2.0/glib/gmacros.h:67:45: note: expanded from macro > 'G_GNUC_ALLOC_SIZE' > #define G_GNUC_ALLOC_SIZE(x) __attribute__((__alloc_size__(x))) F23 wraps it like this: /* Clang feature detection: http://clang.llvm.org/docs/LanguageExtensions.html */ #ifndef __has_feature #define __has_feature(x) 0 #endif #if (!defined(__clang__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINO R__ >= 3))) || \ (defined(__clang__) && __has_feature(__alloc_size__)) #define G_GNUC_ALLOC_SIZE(x) __attribute__((__alloc_size__(x))) #define G_GNUC_ALLOC_SIZE2(x,y) __attribute__((__alloc_size__(x,y))) #else #define G_GNUC_ALLOC_SIZE(x) #define G_GNUC_ALLOC_SIZE2(x,y) #endif Please open a bug on the distro to backport this fix. Paolo