public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm-userspace build break (linux/types.h)
@ 2009-02-19 21:50 Hollis Blanchard
  2009-02-19 22:03 ` Joerg Roedel
  2009-02-20  5:12 ` Jaswinder Singh Rajput
  0 siblings, 2 replies; 7+ messages in thread
From: Hollis Blanchard @ 2009-02-19 21:50 UTC (permalink / raw)
  To: kvm-devel; +Cc: Jaswinder Singh Rajput, Avi Kivity, linux-kernel

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-pointer -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 ‘loff_t’
        /usr/include/linux/types.h:30: error: previous declaration of ‘loff_t’ was here
        /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’
        /usr/include/linux/types.h:13: error: previous declaration of ‘dev_t’ was here
        [...]

I built like so:
        ./configure
        make -C kernel LINUX=/path/to/kvm.git sync
        make

The problem appears to be 00bfddaf7f68a6551319b536f052040c370756b0 and
cef3767852a9b1a7ff4a8dfe0969e2d32eb728df, both from Jaswinder Singh
Rajput <jaswinder@infradead.org>: 
        -#include <asm/types.h>
        +#include <linux/types.h>

With these changes, libkvm.c ends up
including /usr/include/linux/types.h, instead of the
intended ../kernel/include/linux/types.h.

Avi, suggestions? More "make sync" hacks?

-- 
Hollis Blanchard
IBM Linux Technology Center


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-23 11:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-19 21:50 kvm-userspace build break (linux/types.h) Hollis Blanchard
2009-02-19 22:03 ` Joerg Roedel
2009-02-20  3:00   ` Zhang, Xiantao
2009-02-20  5:12 ` Jaswinder Singh Rajput
2009-02-20 15:44   ` Hollis Blanchard
2009-02-20 20:17     ` Hollis Blanchard
2009-02-23 11:46       ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox