From: Jaswinder Singh Rajput Subject: Re: kvm-userspace build break (linux/types.h) Date: Fri, 20 Feb 2009 10:42:07 +0530 Message-ID: <1235106727.3826.13.camel@localhost.localdomain> References: <1235080214.16221.26.camel@slate.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm-devel , Avi Kivity , linux-kernel , Sam Ravnborg , Ingo Molnar , Joerg Roedel , xiantao.zhang@intel.com To: Hollis Blanchard Return-path: Received: from hera.kernel.org ([140.211.167.34]:41725 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbZBTFOS (ORCPT ); Fri, 20 Feb 2009 00:14:18 -0500 In-Reply-To: <1235080214.16221.26.camel@slate.austin.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 2009-02-19 at 15:50 -0600, Hollis Blanchard wrote: > A recent kernel merge breaks kvm-userspace build: > make[1]: Entering directory `/root/hollisb/kvm-userspace.git/= libkvm' > gcc -m64 -D__x86_64__ -MMD -MF ./.libkvm.d -g -fomit-frame-po= inter -Wall -fno-stack-protector -I /root/hollisb/kvm-userspace.git/= kernel/include -c -o libkvm.o libkvm.c > In file included from /usr/include/bits/fcntl.h:24, > from /usr/include/fcntl.h:34, > from libkvm.c:30: > /usr/include/sys/types.h:46: error: conflicting types for =E2= =80=98loff_t=E2=80=99 > /usr/include/linux/types.h:30: error: previous declaration of= =E2=80=98loff_t=E2=80=99 was here > /usr/include/sys/types.h:62: error: conflicting types for =E2= =80=98dev_t=E2=80=99 > /usr/include/linux/types.h:13: error: previous declaration of= =E2=80=98dev_t=E2=80=99 was here > [...] >=20 > I built like so: > ./configure > make -C kernel LINUX=3D/path/to/kvm.git sync > make >=20 > The problem appears to be 00bfddaf7f68a6551319b536f052040c370756b0 an= d > cef3767852a9b1a7ff4a8dfe0969e2d32eb728df, both from Jaswinder Singh > Rajput :=20 > -#include > +#include >=20 > With these changes, libkvm.c ends up > including /usr/include/linux/types.h, instead of the > intended ../kernel/include/linux/types.h. >=20 > Avi, suggestions? More "make sync" hacks? >=20 Avi, Is this already fixed, Or it is in your Magic Box (patch queue ;-) Hollis: Do you mind testing -tip tree, may be we already fixed your problem, Ingo is having big Magic Box :) http://git.kernel.org/?p=3Dlinux/kernel/git/x86/linux-2.6-tip.git;a=3Ds= ummary Thanks, -- JSR