Saturday, February 26, 2011

make errors while compiling xen-4.0

Trying to compile Xen 4.0 on Ubuntu 10.04
http://wiki.xensource.com/xenwiki/Xen4.0

apt-get install bcc bin86 gawk bridge-utils iproute libcurl3 libcurl4-openssl-dev bzip2 module-init-tools transfig tgif texinfo texlive-latex-base texlive-latex-recommended texlive-fonts-extra texlive-fonts-recommended pciutils-dev mercurial build-essential make gcc libc6-dev zlib1g-dev python python-dev python-twisted libncurses5-dev patch libvncserver-dev libsdl-dev libjpeg62-dev iasl libbz2-dev e2fslibs-dev git-core uuid-dev ocaml libx11-dev bison flex
Then
cd xen-4.0.1
make xen
make tools
make stubdom
then
make install-xen
make install-tools
make install-stubdom
Now
make world
gives following error
all -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vmsi.o.d -c vmsi.c -o vmsi.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vpic.o.d -c vpic.c -o vpic.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vpt.o.d -c vpt.c -o vpt.o
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C svm built_in.o
make[7]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/hvm/svm'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .asid.o.d -c asid.c -o asid.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .emulate.o.d -c emulate.c -o emulate.o
gcc -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .entry.o.d -c entry.S -o entry.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .intr.o.d -c intr.c -o intr.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .svm.o.d -c svm.c -o svm.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vmcb.o.d -c vmcb.c -o vmcb.o
ld   -melf_i386 -r -o built_in.o asid.o emulate.o entry.o intr.o svm.o vmcb.o
make[7]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/hvm/svm'
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C vmx built_in.o
make[7]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/hvm/vmx'
gcc -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .entry.o.d -c entry.S -o entry.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .intr.o.d -c intr.c -o intr.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .realmode.o.d -c realmode.c -o realmode.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vmcs.o.d -c vmcs.c -o vmcs.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vmx.o.d -c vmx.c -o vmx.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vpmu.o.d -c vpmu.c -o vpmu.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vpmu_core2.o.d -c vpmu_core2.c -o vpmu_core2.o
ld   -melf_i386 -r -o built_in.o entry.o intr.o realmode.o vmcs.o vmx.o vpmu.o vpmu_core2.o
make[7]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/hvm/vmx'
ld   -melf_i386 -r -o built_in.o asid.o emulate.o hpet.o hvm.o i8254.o intercept.o io.o irq.o mtrr.o pmtimer.o quirks.o rtc.o save.o stdvga.o vioapic.o viridian.o vlapic.o vmsi.o vpic.o vpt.o svm/built_in.o vmx/built_in.o
make[6]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/hvm'
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C mm built_in.o
make[6]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/mm'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .paging.o.d -c paging.c -o paging.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .p2m.o.d -c p2m.c -o p2m.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_walk_2.o.d -DGUEST_PAGING_LEVELS=2 -c guest_walk.c -o guest_walk_2.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_walk_3.o.d -DGUEST_PAGING_LEVELS=3 -c guest_walk.c -o guest_walk_3.o
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C shadow built_in.o
make[7]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/mm/shadow'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .common.o.d -c common.c -o common.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_2.o.d -DGUEST_PAGING_LEVELS=2 -c multi.c -o guest_2.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_3.o.d -DGUEST_PAGING_LEVELS=3 -c multi.c -o guest_3.o
ld   -melf_i386 -r -o built_in.o common.o guest_2.o guest_3.o
make[7]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/mm/shadow'
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C hap built_in.o
make[7]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/mm/hap'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .hap.o.d -c hap.c -o hap.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_walk_2level.o.d -DGUEST_PAGING_LEVELS=2 -c guest_walk.c -o guest_walk_2level.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_walk_3level.o.d -DGUEST_PAGING_LEVELS=3 -c guest_walk.c -o guest_walk_3level.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .guest_walk_4level.o.d -DGUEST_PAGING_LEVELS=4 -c guest_walk.c -o guest_walk_4level.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .p2m-ept.o.d -c p2m-ept.c -o p2m-ept.o
ld   -melf_i386 -r -o built_in.o hap.o guest_walk_2level.o guest_walk_3level.o guest_walk_4level.o p2m-ept.o
make[7]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/mm/hap'
ld   -melf_i386 -r -o built_in.o paging.o p2m.o guest_walk_2.o guest_walk_3.o shadow/built_in.o hap/built_in.o
make[6]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/mm'
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C oprofile built_in.o
make[6]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/oprofile'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .xenoprof.o.d -c xenoprof.c -o xenoprof.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .nmi_int.o.d -c nmi_int.c -o nmi_int.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .op_model_p4.o.d -c op_model_p4.c -o op_model_p4.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .op_model_ppro.o.d -c op_model_ppro.c -o op_model_ppro.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .op_model_athlon.o.d -c op_model_athlon.c -o op_model_athlon.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .backtrace.o.d -c backtrace.c -o backtrace.o
ld   -melf_i386 -r -o built_in.o xenoprof.o nmi_int.o op_model_p4.o op_model_ppro.o op_model_athlon.o backtrace.o
make[6]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/oprofile'
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C x86_32 built_in.o
make[6]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86/x86_32'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .domain_page.o.d -c domain_page.c -o domain_page.o
gcc -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/
asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .entry.o.d -c entry.S -o entry.o
gcc -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .gpr_switch.o.d -c gpr_switch.S -o gpr_switch.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .mm.o.d -c mm.c -o mm.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .seg_fixup.o.d -c seg_fixup.c -o seg_fixup.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .traps.o.d -c traps.c -o traps.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .machine_kexec.o.d -c machine_kexec.c -o machine_kexec.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .pci.o.d -c pci.c -o pci.o
ld   -melf_i386 -r -o built_in.o domain_page.o entry.o gpr_switch.o mm.o seg_fixup.o traps.o machine_kexec.o pci.o
make[6]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86/x86_32'
ld   -melf_i386 -r -o built_in.o apic.o bitops.o clear_page.o copy_page.o compat.o debug.o delay.o dmi_scan.o domctl.o domain.o domain_build.o e820.o extable.o flushtlb.o platform_hypercall.o i387.o i8259.o io_apic.o msi.o ioport_emulate.o irq.o microcode.o microcode_amd.o microcode_intel.o mm.o mpparse.o nmi.o numa.o pci.o physdev.o setup.o shutdown.o smp.o smpboot.o srat.o string.o sysctl.o time.o trace.o traps.o usercopy.o x86_emulate.o machine_kexec.o crash.o tboot.o hpet.o bzimage.o acpi/built_in.o cpu/built_in.o genapic/built_in.o hvm/built_in.o mm/built_in.o oprofile/built_in.o x86_32/built_in.o
make[5]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86'
make -f /usr/src/xen-4.0.1/xen/Rules.mk -C /usr/src/xen-4.0.1/xen/crypto built_in.o
make[5]: Entering directory `/usr/src/xen-4.0.1/xen/crypto'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .rijndael.o.d -c rijndael.c -o rijndael.o
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .vmac.o.d -c vmac.c -o vmac.o
ld   -melf_i386 -r -o built_in.o rijndael.o vmac.o
make[5]: Leaving directory `/usr/src/xen-4.0.1/xen/crypto'
gcc -P -E -Ui386 -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .xen.lds.d -o xen.lds xen.lds.S
sed -e 's/xen\.lds\.o:/xen\.lds:/g' <.xen.lds.d >.xen.lds.d.new
mv -f .xen.lds.d.new .xen.lds.d
make -f /usr/src/xen-4.0.1/xen/Rules.mk /usr/src/xen-4.0.1/xen/common/symbols-dummy.o
make[5]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include  -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF .symbols-dummy.o.d -c /usr/src/xen-4.0.1/xen/common/symbols-dummy.c -o /usr/src/xen-4.0.1/xen/common/symbols-dummy.o
make[5]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86'
ld   -melf_i386 -T xen.lds -N /usr/src/xen-4.0.1/xen/arch/x86/boot/built_in.o /usr/src/xen-4.0.1/xen/common/built_in.o /usr/src/xen-4.0.1/xen/drivers/built_in.o /usr/src/xen-4.0.1/xen/xsm/built_in.o /usr/src/xen-4.0.1/xen/arch/x86/built_in.o /usr/src/xen-4.0.1/xen/crypto/built_in.o \
     /usr/src/xen-4.0.1/xen/common/symbols-dummy.o -o /usr/src/xen-4.0.1/xen/.xen-syms.0
nm -n /usr/src/xen-4.0.1/xen/.xen-syms.0 | /usr/src/xen-4.0.1/xen/tools/symbols >/usr/src/xen-4.0.1/xen/.xen-syms.0.S
make -f /usr/src/xen-4.0.1/xen/Rules.mk /usr/src/xen-4.0.1/xen/.xen-syms.0.o
make[5]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86'
gcc -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF ..xen-syms.0.o.d -c /usr/src/xen-4.0.1/xen/.xen-syms.0.S -o /usr/src/xen-4.0.1/xen/.xen-syms.0.o
make[5]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86'
ld   -melf_i386 -T xen.lds -N /usr/src/xen-4.0.1/xen/arch/x86/boot/built_in.o /usr/src/xen-4.0.1/xen/common/built_in.o /usr/src/xen-4.0.1/xen/drivers/built_in.o /usr/src/xen-4.0.1/xen/xsm/built_in.o /usr/src/xen-4.0.1/xen/arch/x86/built_in.o /usr/src/xen-4.0.1/xen/crypto/built_in.o \
     /usr/src/xen-4.0.1/xen/.xen-syms.0.o -o /usr/src/xen-4.0.1/xen/.xen-syms.1
nm -n /usr/src/xen-4.0.1/xen/.xen-syms.1 | /usr/src/xen-4.0.1/xen/tools/symbols >/usr/src/xen-4.0.1/xen/.xen-syms.1.S
make -f /usr/src/xen-4.0.1/xen/Rules.mk /usr/src/xen-4.0.1/xen/.xen-syms.1.o
make[5]: Entering directory `/usr/src/xen-4.0.1/xen/arch/x86'
gcc -D__ASSEMBLY__ -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-4.0.1/xen/include -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-generic -I/usr/src/xen-4.0.1/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -g -D__XEN__ -MMD -MF ..xen-syms.1.o.d -c /usr/src/xen-4.0.1/xen/.xen-syms.1.S -o /usr/src/xen-4.0.1/xen/.xen-syms.1.o
make[5]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86'
ld   -melf_i386 -T xen.lds -N /usr/src/xen-4.0.1/xen/arch/x86/boot/built_in.o /usr/src/xen-4.0.1/xen/common/built_in.o /usr/src/xen-4.0.1/xen/drivers/built_in.o /usr/src/xen-4.0.1/xen/xsm/built_in.o /usr/src/xen-4.0.1/xen/arch/x86/built_in.o /usr/src/xen-4.0.1/xen/crypto/built_in.o \
     /usr/src/xen-4.0.1/xen/.xen-syms.1.o -o /usr/src/xen-4.0.1/xen/xen-syms
rm -f /usr/src/xen-4.0.1/xen/.xen-syms.[0-9]*
gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -Wdeclaration-after-statement -o boot/mkelf32 boot/mkelf32.c
./boot/mkelf32 /usr/src/xen-4.0.1/xen/xen-syms /usr/src/xen-4.0.1/xen/xen 0x100000 \
 `nm -nr /usr/src/xen-4.0.1/xen/xen-syms | head -n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'`
make[4]: Leaving directory `/usr/src/xen-4.0.1/xen/arch/x86'
gzip -f -9 < /usr/src/xen-4.0.1/xen/xen > /usr/src/xen-4.0.1/xen/xen.gz.new
mv /usr/src/xen-4.0.1/xen/xen.gz.new /usr/src/xen-4.0.1/xen/xen.gz
[ -d /usr/src/xen-4.0.1/dist/install/boot ] || install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/boot
install -m0644 -p /usr/src/xen-4.0.1/xen/xen.gz /usr/src/xen-4.0.1/dist/install/boot/xen-4.0.1.gz
ln -f -s xen-4.0.1.gz /usr/src/xen-4.0.1/dist/install/boot/xen-4.0.gz
ln -f -s xen-4.0.1.gz /usr/src/xen-4.0.1/dist/install/boot/xen-4.gz
ln -f -s xen-4.0.1.gz /usr/src/xen-4.0.1/dist/install/boot/xen.gz
install -m0644 -p /usr/src/xen-4.0.1/xen/xen-syms /usr/src/xen-4.0.1/dist/install/boot/xen-syms-4.0.1
make[3]: Leaving directory `/usr/src/xen-4.0.1/xen'
make[2]: Leaving directory `/usr/src/xen-4.0.1/xen'
for i in  linux-2.6-pvops  ; do make $i-install || exit 1; done
make[2]: Entering directory `/usr/src/xen-4.0.1'
make -f buildconfigs/mk.linux-2.6-pvops build
make[3]: Entering directory `/usr/src/xen-4.0.1'

set -ex; \
 if ! [ -d linux-2.6-pvops.git ]; then \
  rm -rf linux-2.6-pvops.git linux-2.6-pvops.git.tmp; \
  mkdir linux-2.6-pvops.git.tmp; rmdir linux-2.6-pvops.git.tmp; \
  git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp; \
  (cd linux-2.6-pvops.git.tmp; git checkout -b xen/stable-2.6.32.x xen/xen/stable-2.6.32.x ); \
  mv linux-2.6-pvops.git.tmp linux-2.6-pvops.git; \
 fi
+ [ -d linux-2.6-pvops.git ]
+ rm -rf linux-2.6-pvops.git linux-2.6-pvops.git.tmp
+ mkdir linux-2.6-pvops.git.tmp
+ rmdir linux-2.6-pvops.git.tmp
+ git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp
Initialized empty Git repository in /usr/src/xen-4.0.1/linux-2.6-pvops.git.tmp/.git/
remote: Counting objects: 1941611, done.
remote: Compressing objects: 100% (319127/319127), done.
remote: Total 1941611 (delta 1614302), reused 1930655 (delta 1604595)
Receiving objects: 100% (1941611/1941611), 398.17 MiB | 87 KiB/s, done.
fatal: git checkout: branch xen/stable-2.6.32.x already exists
+ mv linux-2.6-pvops.git.tmp linux-2.6-pvops.git
touch linux-2.6-pvops.git/.valid-src
rm -rf build-linux-2.6-pvops_x86_32
mkdir -p build-linux-2.6-pvops_x86_32
# Re-use config from install dir if one exists. Next try to use
# buildconfigs/create_config.sh is one is provided by the source
# tree. Finally attempt to use make defconfig.
set -e ; \
 CONFIG_VERSION=$(sed -ne 's/$(XENGUEST)//; s/^EXTRAVERSION = //p' linux-2.6-pvops.git/Makefile); \
 if [ ! -z "" -a -r "" ]; then \
   cp  /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config; \
 elif [ -r /usr/src/xen-4.0.1/dist/install/boot/config-2.6.$CONFIG_VERSION ] ; then \
   cp /usr/src/xen-4.0.1/dist/install/boot/config-2.6.$CONFIG_VERSION /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config ; \
        elif [ -e linux-2.6-pvops.git/buildconfigs/create_config.sh ] ; then \
   cd linux-2.6-pvops.git && sh buildconfigs/create_config.sh \
  /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config  x86_32  ; \
          echo "Configured build-linux-2.6-pvops_x86_32 using create_config.sh" ; \
 elif make -C linux-2.6-pvops.git ARCH=$(sh buildconfigs/select-linux-arch linux-2.6-pvops.git) defconfig O=$(/bin/pwd)/build-linux-2.6-pvops_x86_32 ; then \
   echo "Configured build-linux-2.6-pvops_x86_32 using defconfig" ; \
 else \
          echo "No configuration method found for this kernel" ; \
 fi
sed: can't read linux-2.6-pvops.git/Makefile: No such file or directory
make[3]: *** [build-linux-2.6-pvops_x86_32/include/linux/autoconf.h] Error 2
make[3]: Leaving directory `/usr/src/xen-4.0.1'
make[2]: *** [linux-2.6-pvops-install] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/usr/src/xen-4.0.1'
make: *** [world] Error 2
root@ubuntu:/usr/src/xen-4.0.1# 


For above problem I mentioned I googled
http://www.google.com/search?client=ubuntu&channel=fs&q=sed%3A+can%27t+read+linux-2.6-pvops.git%2FMakefile%3A+No+such+file+or+directory&ie=utf-8&oe=utf-8

and got
http://lists.xensource.com/archives/html/xen-users/2010-12/msg00230.html

the solution they seem to mention is open a file
vi /usr/src/xen-4.0.1/buildconfigs/src.git-clone
and
# Replace Line
# (cd $(LINUX_SRCDIR).tmp; git checkout -b $(XEN_LINUX_GIT_LOCALBRANCH) $(XEN_LINUX_GITREV) ); \
# with:
# (cd $(LINUX_SRCDIR).tmp; git checkout -b local/$(XEN_LINUX_GIT_LOCALBRANCH) --track $(XEN_LINUX_GITREV) ); \
make world
sudo make install

http://ubuntuforums.org/showthread.php?t=1627833&page=2

Markmail link of Tod


http://lists.xensource.com/archives/html/xen-users/2010-08/msg00743.html

Also seems that compiling as root has issues with Xen so don't do it as root.

Seems Xen has always some circus to do when yo do a make world that is why it is not shipped as binary with most of the distributions.



Next I proceeded with above solution then I got stuck up here in following questions

*** Default configuration is based on 'i386_defconfig'
#
# configuration written to .config
#
make[4]: Leaving directory `/usr/src/xen-4.0.1/linux-2.6-pvops.git'
Configured build-linux-2.6-pvops_x86_32 using defconfig
echo "Updating /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config using buildconfigs/enable-xen-config"
Updating /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config using buildconfigs/enable-xen-config
sh buildconfigs/enable-xen-config /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config
sed -e 's!^CONFIG_HIGHMEM4G=y$!\# CONFIG_HIGHMEM4G is not set!;s!^\# CONFIG_HIGHMEM64G is not set$!CONFIG_HIGHMEM64G=y!' /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config > /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config- && mv /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config- /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/.config
make -C linux-2.6-pvops.git ARCH=$(sh buildconfigs/select-linux-arch linux-2.6-pvops.git) oldconfig O=$(/bin/pwd)/build-linux-2.6-pvops_x86_32
select-linux-arch: x86
make[4]: Entering directory `/usr/src/xen-4.0.1/linux-2.6-pvops.git'
  GEN     /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/Makefile
scripts/kconfig/conf -o arch/x86/Kconfig
.config:2705:warning: override: reassigning to symbol DEBUG_STACK_USAGE
.config:2718:warning: override: reassigning to symbol X86_MCE_INTEL
.config:2719:warning: override: reassigning to symbol X86_MCE_AMD
*
* Restart config...
*
*
* Paravirtualized guest support
*
Paravirtualized guest support (PARAVIRT_GUEST) [Y/n/?] y
  Xen guest support (XEN) [Y/n/?] y
    Enable Xen debug and tuning parameters in debugfs (XEN_DEBUG_FS) [Y/n/?] y
  Enable Xen privileged domain support (XEN_DOM0) [Y/n/?] y
  Enable support for Xen PCI passthrough devices (XEN_PCI_PASSTHROUGH) [N/y/?] (NEW) Y
  VMI Guest support (DEPRECATED) (VMI) [Y/n/?] y
  KVM paravirtualized clock (KVM_CLOCK) [Y/n/?] y
  KVM Guest support (KVM_GUEST) [N/y/?] n
  Lguest guest support (LGUEST_GUEST) [N/y/?] (NEW) Y
  Enable paravirtualization code (PARAVIRT) [Y/?] y
    Paravirtualization layer for spinlocks (PARAVIRT_SPINLOCKS) [N/y/?] (NEW) Y
*
* Bus options (PCI etc.)
*
PCI support (PCI) [Y/n/?] y
  PCI access mode
    1. BIOS (PCI_GOBIOS)
    2. MMConfig (PCI_GOMMCONFIG)
    3. Direct (PCI_GODIRECT)
  > 4. Any (PCI_GOANY)
  choice[1-4?]: 4
Support for DMA Remapping Devices (EXPERIMENTAL) (DMAR) [N/y/?] n
PCI Express support (PCIEPORTBUS) [Y/n/?] y
  PCI Express Hotplug driver (HOTPLUG_PCI_PCIE) [N/m/y/?] n
  Root Port Advanced Error Reporting support (PCIEAER) [Y/n/?] y
    PCI Express ECRC settings control (PCIE_ECRC) [N/y/?] n
    PCIE AER error injector support (PCIEAER_INJECT) [N/m/y/?] n
  PCI Express ASPM support(Experimental) (PCIEASPM) [N/y/?] n
Message Signaled Interrupts (MSI and MSI-X) (PCI_MSI) [Y/n/?] y
Enable deprecated pci_find_* API (PCI_LEGACY) [N/y/?] n
PCI Debugging (PCI_DEBUG) [N/y/?] n
PCI Stub driver (PCI_STUB) [N/m/y/?] n
Xen PCI Frontend (XEN_PCIDEV_FRONTEND) [Y/n/m/?] (NEW) Y
Interrupts on hypertransport devices (HT_IRQ) [Y/n/?] y
PCI IOV support (PCI_IOV) [N/y/?] n
ISA support (ISA) [N/y/?] n
MCA support (MCA) [N/y/?] n
NatSemi SCx200 support (SCx200) [N/m/y/?] n
One Laptop Per Child support (OLPC) [N/y/?] n
*
* Block devices
*
Block devices (BLK_DEV) [Y/n/?] y
  Normal floppy disk support (BLK_DEV_FD) [N/m/y/?] n
  Compaq SMART2 support (BLK_CPQ_DA) [N/m/y/?] n
  Compaq Smart Array 5xxx support (BLK_CPQ_CISS_DA) [M/n/y/?] m
    SCSI tape drive support for Smart Array 5xxx (CISS_SCSI_TAPE) [N/y/?] (NEW) Y
  Mylex DAC960/DAC1100 PCI RAID Controller support (BLK_DEV_DAC960) [N/m/y/?] n
  Micro Memory MM5415 Battery Backed RAM support (EXPERIMENTAL) (BLK_DEV_UMEM) [N/m/y/?] n
  Loopback device support (BLK_DEV_LOOP) [Y/n/m/?] y
    Cryptoloop Support (BLK_DEV_CRYPTOLOOP) [N/m/y/?] n
  Network block device support (BLK_DEV_NBD) [N/m/y/?] n
  Promise SATA SX8 support (BLK_DEV_SX8) [N/m/y/?] n
  Low Performance USB Block driver (BLK_DEV_UB) [N/m/y/?] n
  RAM block device support (BLK_DEV_RAM) [Y/n/m/?] y
    Default number of RAM disks (BLK_DEV_RAM_COUNT) [16] 16
    Default RAM disk size (kbytes) (BLK_DEV_RAM_SIZE) [16384] 16384
    Support XIP filesystems on RAM block device (BLK_DEV_XIP) [N/y/?] n
  Packet writing on CD/DVD media (CDROM_PKTCDVD) [N/m/y/?] n
  ATA over Ethernet support (ATA_OVER_ETH) [N/m/y/?] n
  Xen virtual block device support (XEN_BLKDEV_FRONTEND) [Y/n/m/?] y
  Virtio block driver (EXPERIMENTAL) (VIRTIO_BLK) [N/m/y/?] (NEW) Y
  Very old hard disk (MFM/RLL/IDE) driver (BLK_DEV_HD) [N/y/?] n
*
* Fusion MPT device support
*
Fusion MPT device support (FUSION) [Y/n/?] y
  Fusion MPT ScsiHost drivers for SPI (FUSION_SPI) [M/n/y/?] m
  Fusion MPT ScsiHost drivers for FC (FUSION_FC) [N/m/y/?] (NEW) y
  Fusion MPT ScsiHost drivers for SAS (FUSION_SAS) [M/n/y/?] m
  Maximum number of scatter gather entries (16 - 128) (FUSION_MAX_SGE) [128] (NEW) 128
  Fusion MPT misc device (ioctl) driver (FUSION_CTL) [N/m/y/?] (NEW) y
  Fusion MPT logging facility (FUSION_LOGGING) [N/y/?] (NEW) y
*
* Network device support
*
Network device support (NETDEVICES) [Y/n/?] y
  Intermediate Functional Block support (IFB) [N/m/y/?] n
  Dummy net driver support (DUMMY) [N/m/y/?] n
  Bonding driver support (BONDING) [N/m/y/?] n
  MAC-VLAN support (EXPERIMENTAL) (MACVLAN) [N/m/y/?] n
  EQL (serial line load balancing) support (EQUALIZER) [N/m/y/?] n
  Universal TUN/TAP device driver support (TUN) [N/m/y/?] n
  Virtual ethernet pair device (VETH) [N/m/y/?] n
  General Instruments Surfboard 1000 (NET_SB1000) [N/m/y/?] n
  *
  * Enable WiMAX (Networking options) to see the WiMAX drivers
  *
  Xen network device frontend driver (XEN_NETDEV_FRONTEND) [Y/n/m/?] y
  FDDI driver support (FDDI) [Y/n/m/?] y
    Digital DEFTA/DEFEA/DEFPA adapter support (DEFXX) [N/m/y/?] n
    SysKonnect FDDI PCI support (SKFP) [N/m/y/?] n
  HIPPI driver support (EXPERIMENTAL) (HIPPI) [N/y/?] n
  PPP (point-to-point protocol) support (PPP) [N/m/y/?] n
  SLIP (serial line) support (SLIP) [N/m/y/?] n
  Fibre Channel driver support (NET_FC) [N/y/?] n
  Network console logging support (EXPERIMENTAL) (NETCONSOLE) [Y/n/m/?] y
    Dynamic reconfiguration of logging targets (EXPERIMENTAL) (NETCONSOLE_DYNAMIC) [N/y/?] n
  Netpoll traffic trapping (NETPOLL_TRAP) [N/y] n
  Virtio network driver (EXPERIMENTAL) (VIRTIO_NET) [N/m/y/?] (NEW) 
  VMware VMXNET3 ethernet driver (VMXNET3) [N/m/y/?] n
*
* Character devices
*
Virtual terminal (VT) [Y/?] y
  Support for binding and unbinding console drivers (VT_HW_CONSOLE_BINDING) [Y/n/?] y
/dev/kmem virtual device support (DEVKMEM) [Y/n/?] y
Non-standard serial port support (SERIAL_NONSTANDARD) [Y/n/?] y
  Computone IntelliPort Plus serial support (COMPUTONE) [N/m/y/?] n
  Comtrol RocketPort support (ROCKETPORT) [N/m/y/?] n
  Cyclades async mux support (CYCLADES) [N/m/y/?] n
  Digiboard Intelligent Async Support (DIGIEPCA) [N/m/y/?] n
  Moxa Intellio support (MOXA_INTELLIO) [N/m/y/?] n
  Moxa SmartIO support v. 2.0 (MOXA_SMARTIO) [N/m/y/?] n
  Multi-Tech multiport card support (EXPERIMENTAL) (ISI) [N/m/y/?] n
  Microgate SyncLink card support (SYNCLINK) [N/m/y/?] n
  SyncLink Multiport support (SYNCLINKMP) [N/m/y/?] n
  SyncLink GT/AC support (SYNCLINK_GT) [N/m/y/?] n
  HDLC line discipline support (N_HDLC) [N/m/y/?] n
  SDL RISCom/8 card support (RISCOM8) [N/m/y/?] n
  Specialix IO8+ card support (SPECIALIX) [N/m/y/?] n
  Stallion multiport serial support (STALDRV) [N/y/?] n
HSDPA Broadband Wireless Data Card - Globe Trotter (NOZOMI) [N/m/y/?] n
Unix98 PTY support (UNIX98_PTYS) [Y/?] y
  Support multiple instances of devpts (DEVPTS_MULTIPLE_INSTANCES) [N/y/?] n
Legacy (BSD) PTY support (LEGACY_PTYS) [N/y/?] n
Xen Hypervisor Console support (HVC_XEN) [Y/n/?] y
Virtio console (VIRTIO_CONSOLE) [Y/?] (NEW) y
Hardware Random Number Generator Core support (HW_RANDOM) [Y/n/m/?] y
  Timer IOMEM HW Random Number Generator support (HW_RANDOM_TIMERIOMEM) [N/m/y/?] n
  Intel HW Random Number Generator support (HW_RANDOM_INTEL) [Y/n/m/?] y
  AMD HW Random Number Generator support (HW_RANDOM_AMD) [Y/n/m/?] y
  AMD Geode HW Random Number Generator support (HW_RANDOM_GEODE) [Y/n/m/?] y
  VIA HW Random Number Generator support (HW_RANDOM_VIA) [Y/n/m/?] y
  VirtIO Random Number Generator support (HW_RANDOM_VIRTIO) [N/m/y/?] (NEW) y
/dev/nvram support (NVRAM) [Y/n/m/?] y
Siemens R3964 line discipline (R3964) [N/m/y/?] n
Applicom intelligent fieldbus card support (APPLICOM) [N/m/y/?] n
Sony Vaio Programmable I/O Control Device support (EXPERIMENTAL) (SONYPI) [N/m/y/?] n
ACP Modem (Mwave) support (MWAVE) [N/m/y/?] n
NatSemi PC8736x GPIO Support (PC8736x_GPIO) [N/m/y/?] n
NatSemi Base GPIO Support (NSC_GPIO) [N/m/y/?] n
AMD CS5535/CS5536 GPIO (Geode Companion Device) (CS5535_GPIO) [N/m/y/?] n
RAW driver (/dev/raw/rawN) (RAW_DRIVER) [N/m/y/?] n
HPET - High Precision Event Timer (HPET) [Y/n/?] y
  Allow mmap of HPET (HPET_MMAP) [N/y/?] n
Hangcheck timer (HANGCHECK_TIMER) [N/m/y/?] n
Telecom clock driver for ATCA SBC (TELCLOCK) [N/m/y/?] n
*
* Watchdog Timer Support
*
Watchdog Timer Support (WATCHDOG) [Y/n/?] y
  Disable watchdog shutdown on close (WATCHDOG_NOWAYOUT) [N/y/?] n
  *
  * Watchdog Device Drivers
  *
  Software watchdog (SOFT_WATCHDOG) [N/m/y/?] n
  Acquire SBC Watchdog Timer (ACQUIRE_WDT) [N/m/y/?] n
  Advantech SBC Watchdog Timer (ADVANTECH_WDT) [N/m/y/?] n
  ALi M1535 PMU Watchdog Timer (ALIM1535_WDT) [N/m/y/?] n
  ALi M7101 PMU Computer Watchdog (ALIM7101_WDT) [N/m/y/?] n
  AMD Elan SC520 processor Watchdog (SC520_WDT) [N/m/y/?] n
  Compulab SBC-FITPC2 watchdog (SBC_FITPC2_WATCHDOG) [N/m/y/?] n
  Eurotech CPU-1220/1410 Watchdog Timer (EUROTECH_WDT) [N/m/y/?] n
  IB700 SBC Watchdog Timer (IB700_WDT) [N/m/y/?] n
  IBM Automatic Server Restart (IBMASR) [N/m/y/?] n
  ICP Single Board Computer Watchdog Timer (WAFER_WDT) [N/m/y/?] n
  Intel 6300ESB Timer/Watchdog (I6300ESB_WDT) [N/m/y/?] n
  Intel TCO Timer/Watchdog (ITCO_WDT) [N/m/y/?] n
  IT8712F (Smart Guardian) Watchdog Timer (IT8712F_WDT) [N/m/y/?] n
  IT87 Watchdog Timer (IT87_WDT) [N/m/y/?] n
  HP Proliant iLO 2 Hardware Watchdog Timer (HP_WATCHDOG) [N/m/y/?] n
  National Semiconductor PC87307/PC97307 (ala SC1200) Watchdog (SC1200_WDT) [N/m/y/?] n
  NS PC87413 watchdog (PC87413_WDT) [N/m/y/?] n
  SBC-60XX Watchdog Timer (60XX_WDT) [N/m/y/?] n
  SBC8360 Watchdog Timer (SBC8360_WDT) [N/m/y/?] n
  SBC Nano 7240 Watchdog Timer (SBC7240_WDT) [N/m/y/?] n
  SMA CPU5 Watchdog (CPU5_WDT) [N/m/y/?] n
  SMSC SCH311X Watchdog Timer (SMSC_SCH311X_WDT) [N/m/y/?] n
  Winbond SMsC37B787 Watchdog Timer (SMSC37B787_WDT) [N/m/y/?] n
  W83627HF Watchdog Timer (W83627HF_WDT) [N/m/y/?] n
  W83697HF/W83697HG Watchdog Timer (W83697HF_WDT) [N/m/y/?] n
  W83697UG/W83697UF Watchdog Timer (W83697UG_WDT) [N/m/y/?] n
  W83877F (EMACS) Watchdog Timer (W83877F_WDT) [N/m/y/?] n
  W83977F (PCM-5335) Watchdog Timer (W83977F_WDT) [N/m/y/?] n
  ZF MachZ Watchdog (MACHZ_WDT) [N/m/y/?] n
  Winsystems SBC EPX-C3 watchdog (SBC_EPX_C3_WATCHDOG) [N/m/y/?] n
  Xen Watchdog support (XEN_WDT) [N/m/y/?] (NEW) 
 *
  * PCI-based Watchdog Cards
  *
  Berkshire Products PCI-PC Watchdog (PCIPCWATCHDOG) [N/m/y/?] n
  PCI-WDT500/501 Watchdog timer (WDTPCI) [N/m/y/?] n
  *
  * USB-based Watchdog Cards
  *
  Berkshire Products USB-PC Watchdog (USBPCWATCHDOG) [N/m/y/?] n
*
* Device Drivers
*
Xen memory balloon driver (XEN_BALLOON) [Y/n/?] y
  Scrub pages before returning them to system (XEN_SCRUB_PAGES) [Y/n/?] y
Xen /dev/xen/evtchn device (XEN_DEV_EVTCHN) [Y/n/m/?] y
Backend driver support (XEN_BACKEND) [Y/n/?] y
  Xen backend network device (XEN_NETDEV_BACKEND) [Y/n/m/?] y
  Block-device backend driver (XEN_BLKDEV_BACKEND) [Y/n/m/?] y
  Block-device tap backend driver (XEN_BLKDEV_TAP) [N/m/y/?] (NEW) 
 PCI-device backend driver (XEN_PCIDEV_BACKEND) [Y/n/m/?] (NEW) y
    PCI Backend Mode
    > 1. Virtual PCI (XEN_PCIDEV_BACKEND_VPCI) (NEW)
      2. Passthrough (XEN_PCIDEV_BACKEND_PASS) (NEW)
      3. Slot (XEN_PCIDEV_BACKEND_SLOT) (NEW)
    choice[1-3]: 
    2. Passthrough (XEN_PCIDEV_BACKEND_PASS) (NEW)
      3. Slot (XEN_PCIDEV_BACKEND_SLOT) (NEW)
    choice[1-3]: 1
    PCI Backend Debugging (XEN_PCIDEV_BE_DEBUG) [N/y] (NEW) y
Xen filesystem (XENFS) [Y/n/m/?] y
  Create compatibility mount point /proc/xen (XEN_COMPAT_XENFS) [Y/n/?] y
Create xen entries under /sys/hypervisor (XEN_SYS_HYPERVISOR) [Y/n/?] y
userspace grant access device driver (XEN_GNTDEV) [Y/n/m/?] y
xen platform pci device driver (XEN_PLATFORM_PCI) [M/n/y/?] (NEW) y
#
# configuration written to .config
#
make[4]: Leaving directory `/usr/src/xen-4.0.1/linux-2.6-pvops.git'
make -C build-linux-2.6-pvops_x86_32 ARCH=$(sh buildconfigs/select-linux-arch linux-2.6-pvops.git) prepare
select-linux-arch: x86
make[4]: Entering directory `/usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32'
make -C /usr/src/xen-4.0.1/linux-2.6-pvops.git O=/usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/. prepare
  GEN     /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/Makefile
scripts/kconfig/conf -s arch/x86/Kconfig
  Using /usr/src/xen-4.0.1/linux-2.6-pvops.git as source for kernel
  GEN     /usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32/Makefile
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CC      kernel/bounds.s
  GEN     include/linux/bounds.h
  CC      arch/x86/kernel/asm-offsets.s
  GEN     include/asm/asm-offsets.h
  CALL    /usr/src/xen-4.0.1/linux-2.6-pvops.git/scripts/checksyscalls.sh
make[4]: Leaving directory `/usr/src/xen-4.0.1/build-linux-2.6-pvops_x86_32'

and the above compile gives following error


gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsimage.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror    -L../common/ -shared -o fsimage.so fsys_reiserfs.opic -lfsimage 
../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/lib/fs/reiserfs
../../../tools/cross-install -m0755 -p fsimage.so /usr/src/xen-4.0.1/dist/install/usr/lib/fs/reiserfs
make[6]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage/reiserfs'
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage'
make[5]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage'
make -C iso9660 install
make[6]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage/iso9660'
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsys_iso9660.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o fsys_iso9660.opic fsys_iso9660.c
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsimage.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror    -L../common/ -shared -o fsimage.so fsys_iso9660.opic -lfsimage 
../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/lib/fs/iso9660
../../../tools/cross-install -m0755 -p fsimage.so /usr/src/xen-4.0.1/dist/install/usr/lib/fs/iso9660
make[6]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage/iso9660'
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage'
make[5]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage'
make -C fat install
make[6]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage/fat'
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsys_fat.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o fsys_fat.opic fsys_fat.c
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsimage.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror    -L../common/ -shared -o fsimage.so fsys_fat.opic -lfsimage 
../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/lib/fs/fat
../../../tools/cross-install -m0755 -p fsimage.so /usr/src/xen-4.0.1/dist/install/usr/lib/fs/fat
make[6]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage/fat'
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage'
make[5]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage'
make -C zfs install
make[6]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage/zfs'
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsys_zfs.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o fsys_zfs.opic fsys_zfs.c
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .zfs_lzjb.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o zfs_lzjb.opic zfs_lzjb.c
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .zfs_sha256.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o zfs_sha256.opic zfs_sha256.c
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .zfs_fletcher.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o zfs_fletcher.opic zfs_fletcher.c
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsimage.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror    -L../common/ -shared -o fsimage.so fsys_zfs.opic zfs_lzjb.opic zfs_sha256.opic zfs_fletcher.opic -lfsimage 
../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/lib/fs/zfs
../../../tools/cross-install -m0755 -p fsimage.so /usr/src/xen-4.0.1/dist/install/usr/lib/fs/zfs
make[6]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage/zfs'
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage'
make[5]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage'
make -C ext2fs-lib install
make[6]: Entering directory `/usr/src/xen-4.0.1/tools/libfsimage/ext2fs-lib'
gcc  -DPIC -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .ext2fs-lib.opic.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror -fPIC -c -o ext2fs-lib.opic ext2fs-lib.c
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fsimage.so.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -I../../../tools/libfsimage/common/ -Werror    -L../common/ -shared -o fsimage.so ext2fs-lib.opic -lfsimage -lext2fs
../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/lib/fs/ext2fs-lib
../../../tools/cross-install -m0755 -p fsimage.so /usr/src/xen-4.0.1/dist/install/usr/lib/fs/ext2fs-lib
make[6]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage/ext2fs-lib'
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage'
make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/libfsimage'
make[3]: Leaving directory `/usr/src/xen-4.0.1/tools'
make[3]: Entering directory `/usr/src/xen-4.0.1/tools'
make -C fs-back install
make[4]: Entering directory `/usr/src/xen-4.0.1/tools/fs-back'
gcc  -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fs-xenbus.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -fno-strict-aliasing -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -I.. -I../lib -I. -D_GNU_SOURCE -c -o fs-xenbus.o fs-xenbus.c
gcc  -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fs-ops.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -fno-strict-aliasing -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -I.. -I../lib -I. -D_GNU_SOURCE -c -o fs-ops.o fs-ops.c
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .fs-backend.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -fno-strict-aliasing -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -I.. -I../lib -I. -D_GNU_SOURCE -o fs-backend fs-xenbus.o fs-ops.o -L. -L.. -L../lib -L../../tools/libxc -lxenctrl -L../../tools/xenstore -lxenstore -lrt -lpthread fs-backend.c
../../tools/cross-install -m0755 -p fs-backend  /usr/src/xen-4.0.1/dist/install/usr/sbin
make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/fs-back'
make[3]: Leaving directory `/usr/src/xen-4.0.1/tools'
make[3]: Entering directory `/usr/src/xen-4.0.1/tools'
set -ex; \
 if test -d ioemu-qemu-xen; then \
  rm -f ioemu-dir; \
  ln -sf ioemu-qemu-xen ioemu-dir; \
 else \
  if [ ! -d ioemu-remote ]; then \
   rm -rf ioemu-remote ioemu-remote.tmp; \
   mkdir ioemu-remote.tmp; rmdir ioemu-remote.tmp; \
   git clone ioemu-qemu-xen ioemu-remote.tmp; \
   if [ "xen-4.0.1" ]; then   \
    cd ioemu-remote.tmp;   \
    git branch -D dummy >/dev/null 2>&1 ||:; \
    git checkout -b dummy xen-4.0.1; \
    cd ..;     \
   fi;      \
   mv ioemu-remote.tmp ioemu-remote; \
  fi; \
  rm -f ioemu-dir; \
  ln -sf ioemu-remote ioemu-dir; \
 fi
+ test -d ioemu-qemu-xen
+ rm -f ioemu-dir
+ ln -sf ioemu-qemu-xen ioemu-dir
set -e; \
      case ".." in /*) XEN_ROOT=.. ;; *)  xen_root_lhs=`pwd`; xen_root_rhs=../; while [ "x${xen_root_rhs#../}" != "x$xen_root_rhs" ]; do xen_root_rhs="${xen_root_rhs#../}"; xen_root_rhs="${xen_root_rhs#/}"; xen_root_rhs="${xen_root_rhs#/}"; xen_root_lhs="${xen_root_lhs%/*}"; done; XEN_ROOT="$xen_root_lhs/$xen_root_rhs" ;; esac; export XEN_ROOT; \
      PREFIX="/usr"; XEN_SCRIPT_DIR="/etc/xen/scripts"; export PREFIX; export XEN_SCRIPT_DIR; \
  cd ioemu-dir; \
  ./xen-setup 
Install prefix    /usr
BIOS directory    /usr/share/qemu
binary directory  /usr/bin
Manual directory  /usr/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /usr/src/xen-4.0.1/tools/ioemu-dir
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS       -m32
make              make
install           install
host CPU          i386
host big endian   no
target list       i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user 
gprof enabled     no
sparse enabled    no
profiler          no
static build      no
-Werror enabled   no
SDL support       yes
SDL static link   no
OpenGL support    yes
curses support    no
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   no
kqemu support     yes
brlapi support    no
Documentation     no
NPTL support      yes
vde support       no
AIO support       yes
Install blobs     yes
KVM support       yes
fdt support       no
qemu successfuly configured for Xen qemu-dm build
make -C ioemu-dir install
=== PCI passthrough capability has been enabled ===
make[4]: Entering directory `/usr/src/xen-4.0.1/tools/ioemu-qemu-xen'
  CC    qemu-nbd.o
qemu-nbd.c: In function ‘main’:
qemu-nbd.c:349: warning: ignoring return value of ‘daemon’, declared with attribute warn_unused_result
  CC    qemu-tool.o
  CC    osdep.o
  CC    cutils.o
  CC    qemu-malloc.o
  CC    block-cow.o
block-cow.c: In function ‘cow_create’:
block-cow.c:242: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-cow.c:244: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
  CC    block-qcow.o
  CC    aes.o
  CC    block-vmdk.o
block-vmdk.c: In function ‘vmdk_snapshot_create’:
block-vmdk.c:235: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
block-vmdk.c: In function ‘vmdk_create’:
block-vmdk.c:761: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-vmdk.c:762: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-vmdk.c:764: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
block-vmdk.c:770: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-vmdk.c:776: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-vmdk.c:793: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC    block-cloop.o
  CC    block-dmg.o
  CC    block-bochs.o
  CC    block-vpc.o
  CC    block-vvfat.o
block-vvfat.c: In function ‘commit_one_file’:
block-vvfat.c:2254: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
  CC    block-qcow2.o
block-qcow2.c: In function ‘qcow_create’:
block-qcow2.c:1537: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-qcow2.c:1539: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-qcow2.c:1544: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-qcow2.c:1547: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-qcow2.c:1550: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
  CC    block-parallels.o
  CC    block-nbd.o
  CC    nbd.o
  CC    block.o
block.c: In function ‘bdrv_open2’:
block.c:397: warning: ignoring return value of ‘realpath’, declared with attribute warn_unused_result
  CC    aio.o
  CC    posix-aio-compat.o
  CC    block-raw-posix.o
block-raw-posix.c: In function ‘aio_signal_handler’:
block-raw-posix.c:523: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
block-raw-posix.c: In function ‘raw_create’:
block-raw-posix.c:832: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
  LINK  qemu-nbd-xen
  CC    qemu-img.o
  LINK  qemu-img-xen
  CC    readline.o
  CC    console.o
  CC    irq.o
  CC    i2c.o
  CC    smbus.o
  CC    smbus_eeprom.o
  CC    max7310.o
  CC    max111x.o
  CC    wm8750.o
  CC    ssd0303.o
  CC    ssd0323.o
  CC    ads7846.o
  CC    stellaris_input.o
  CC    twl92230.o
  CC    tmp105.o
  CC    lm832x.o
  CC    scsi-disk.o
  CC    cdrom.o
  CC    scsi-generic.o
  CC    usb.o
  CC    usb-hub.o
  CC    usb-linux.o
  CC    usb-hid.o
  CC    usb-msd.o
  CC    usb-wacom.o
  CC    usb-serial.o
  CC    usb-net.o
  CC    sd.o
  CC    ssi-sd.o
  CC    bt.o
  CC    bt-host.o
  CC    bt-vhci.o
  CC    bt-l2cap.o
  CC    bt-sdp.o
  CC    bt-hci.o
  CC    bt-hid.o
  CC    usb-bt.o
  CC    buffered_file.o
  CC    migration.o
  CC    migration-tcp.o
  CC    net.o
  CC    qemu-sockets.o
  CC    qemu-char.o
qemu-char.c:1123:7: warning: "CONFIG_STUBDOM" is not defined
  CC    net-checksum.o
  CC    savevm.o
  CC    cache-utils.o
  CC    migration-exec.o
  CC    audio/audio.o
  CC    audio/noaudio.o
  CC    audio/wavaudio.o
  CC    audio/mixeng.o
  CC    audio/sdlaudio.o
  CC    audio/ossaudio.o
  CC    audio/wavcapture.o
  CC    sdl.o
  CC    x_keymap.o
  CC    vnc.o
  CC    d3des.o
  AR    libqemu_common.a
=== PCI passthrough capability has been enabled ===
=== PCI passthrough capability has been enabled ===
make[5]: Entering directory `/usr/src/xen-4.0.1/tools/ioemu-qemu-xen/i386-dm'
  CC    i386-dm/vl.o
/usr/src/xen-4.0.1/tools/ioemu-dir/vl.c: In function ‘main’:
/usr/src/xen-4.0.1/tools/ioemu-dir/vl.c:5812: warning: implicit declaration of function ‘dma_helper_init’
/usr/src/xen-4.0.1/tools/ioemu-dir/vl.c:5659: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
/usr/src/xen-4.0.1/tools/ioemu-dir/vl.c:6101: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
/usr/src/xen-4.0.1/tools/ioemu-dir/vl.c:6122: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
  CC    i386-dm/monitor.o
  CC    i386-dm/pci.o
  CC    i386-dm/loader.o
  CC    i386-dm/isa_mmio.o
  CC    i386-dm/machine.o
  CC    i386-dm/dma-helpers.o
  CC    i386-dm/virtio.o
  CC    i386-dm/virtio-blk.o
  CC    i386-dm/virtio-net.o
  CC    i386-dm/virtio-console.o
  CC    i386-dm/fw_cfg.o
  CC    i386-dm/kvm.o
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_arch_init_vcpu’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:47: warning: implicit declaration of function ‘cpu_x86_cpuid’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_has_msr_star’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:159: error: ‘MSR_STAR’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:159: error: (Each undeclared identifier is reported only once
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:159: error: for each function it appears in.)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘set_seg’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:219: error: ‘DESC_TYPE_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:220: error: ‘DESC_P_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:222: error: ‘DESC_B_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:223: error: ‘DESC_S_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:224: error: ‘DESC_L_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:225: error: ‘DESC_G_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:226: error: ‘DESC_AVL_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘get_seg’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:236: error: ‘DESC_TYPE_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:237: error: ‘DESC_P_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:238: error: ‘DESC_DPL_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:239: error: ‘DESC_B_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:240: error: ‘DESC_S_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:241: error: ‘DESC_L_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:242: error: ‘DESC_G_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:243: error: ‘DESC_AVL_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_getput_regs’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:265: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:265: error: ‘R_EAX’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:266: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:266: error: ‘R_EBX’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:267: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:267: error: ‘R_ECX’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:268: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:268: error: ‘R_EDX’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:269: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:269: error: ‘R_ESI’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:270: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:270: error: ‘R_EDI’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:271: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:271: error: ‘R_ESP’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:272: error: ‘CPUX86State’ has no member named ‘regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:272: error: ‘R_EBP’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:284: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:285: error: ‘CPUX86State’ has no member named ‘eip’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_put_fpu’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:299: error: ‘CPUX86State’ has no member named ‘fpus’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:300: error: ‘CPUX86State’ has no member named ‘fpstt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:301: error: ‘CPUX86State’ has no member named ‘fpuc’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:303: error: ‘CPUX86State’ has no member named ‘fptags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:304: error: ‘CPUX86State’ has no member named ‘fpregs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:304: error: ‘CPUX86State’ has no member named ‘fpregs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:305: error: ‘CPUX86State’ has no member named ‘xmm_regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:305: error: ‘CPUX86State’ has no member named ‘xmm_regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:306: error: ‘CPUX86State’ has no member named ‘mxcsr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_put_sregs’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:316: error: ‘CPUX86State’ has no member named ‘interrupt_bitmap’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:319: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:319: error: ‘VM_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:320: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:320: error: ‘R_CS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:321: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:321: error: ‘R_DS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:322: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:322: error: ‘R_ES’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:323: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:323: error: ‘R_FS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:324: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:324: error: ‘R_GS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:325: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:325: error: ‘R_SS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:327: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:328: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:329: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:330: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:331: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:332: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:334: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:334: error: ‘CR0_PE_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:342: error: ‘CPUX86State’ has no member named ‘tr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:343: error: ‘CPUX86State’ has no member named ‘ldt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:345: error: ‘CPUX86State’ has no member named ‘idt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:346: error: ‘CPUX86State’ has no member named ‘idt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:347: error: ‘CPUX86State’ has no member named ‘gdt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:348: error: ‘CPUX86State’ has no member named ‘gdt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:350: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:351: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:352: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:353: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:355: warning: implicit declaration of function ‘cpu_get_apic_tpr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:356: warning: implicit declaration of function ‘cpu_get_apic_base’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:358: error: ‘CPUX86State’ has no member named ‘efer’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_put_msrs’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:379: error: ‘MSR_IA32_SYSENTER_CS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:379: error: ‘CPUX86State’ has no member named ‘sysenter_cs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:380: error: ‘MSR_IA32_SYSENTER_ESP’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:380: error: ‘CPUX86State’ has no member named ‘sysenter_esp’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:381: error: ‘MSR_IA32_SYSENTER_EIP’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:381: error: ‘CPUX86State’ has no member named ‘sysenter_eip’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:383: error: ‘MSR_STAR’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:383: error: ‘CPUX86State’ has no member named ‘star’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:384: error: ‘MSR_IA32_TSC’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:384: error: ‘CPUX86State’ has no member named ‘tsc’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_get_fpu’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:408: error: ‘CPUX86State’ has no member named ‘fpstt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:409: error: ‘CPUX86State’ has no member named ‘fpus’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:410: error: ‘CPUX86State’ has no member named ‘fpuc’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:412: error: ‘CPUX86State’ has no member named ‘fptags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:413: error: ‘CPUX86State’ has no member named ‘fpregs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:413: error: ‘CPUX86State’ has no member named ‘fpregs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:414: error: ‘CPUX86State’ has no member named ‘xmm_regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:414: error: ‘CPUX86State’ has no member named ‘xmm_regs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:415: error: ‘CPUX86State’ has no member named ‘mxcsr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_get_sregs’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:430: error: ‘CPUX86State’ has no member named ‘interrupt_bitmap’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:434: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:434: error: ‘R_CS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:435: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:435: error: ‘R_DS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:436: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:436: error: ‘R_ES’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:437: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:437: error: ‘R_FS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:438: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:438: error: ‘R_GS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:439: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:439: error: ‘R_SS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:441: error: ‘CPUX86State’ has no member named ‘tr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:442: error: ‘CPUX86State’ has no member named ‘ldt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:444: error: ‘CPUX86State’ has no member named ‘idt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:445: error: ‘CPUX86State’ has no member named ‘idt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:446: error: ‘CPUX86State’ has no member named ‘gdt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:447: error: ‘CPUX86State’ has no member named ‘gdt’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:449: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:450: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:451: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:452: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:454: warning: implicit declaration of function ‘cpu_set_apic_base’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:456: error: ‘CPUX86State’ has no member named ‘efer’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:467: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:467: error: ‘DESC_DPL_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:467: error: ‘HF_CPL_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:468: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:468: error: ‘CR0_PE_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:468: error: ‘HF_PE_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:468: error: ‘CR0_PE_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:469: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:469: error: ‘HF_MP_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:469: error: ‘CR0_MP_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:470: error: ‘HF_MP_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:470: error: ‘HF_EM_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:470: error: ‘HF_TS_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:471: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:471: error: ‘HF_TF_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:471: error: ‘HF_VM_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:471: error: ‘HF_IOPL_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:472: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:472: error: ‘CR4_OSFXSR_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:473: error: ‘HF_OSFXSR_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:473: error: ‘CR4_OSFXSR_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:475: error: ‘CPUX86State’ has no member named ‘efer’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:475: error: ‘MSR_EFER_LMA’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:476: error: ‘HF_LMA_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:479: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:479: error: ‘DESC_L_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:480: error: ‘HF_CS32_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:480: error: ‘HF_SS32_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:480: error: ‘HF_CS64_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:482: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:482: error: ‘DESC_B_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:483: error: ‘DESC_B_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:483: error: ‘HF_CS32_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:484: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:485: error: ‘HF_SS32_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:486: error: ‘CPUX86State’ has no member named ‘cr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:487: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:487: error: ‘VM_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:489: error: ‘HF_ADDSEG_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:491: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:492: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:493: error: ‘CPUX86State’ has no member named ‘segs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:494: error: ‘HF_ADDSEG_SHIFT’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:497: error: ‘CPUX86State’ has no member named ‘hflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:497: error: ‘CPUX86State’ has no member named ‘hflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:497: error: ‘HF_PE_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:497: error: ‘HF_OSFXSR_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_get_msrs’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:512: error: ‘MSR_IA32_SYSENTER_CS’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:513: error: ‘MSR_IA32_SYSENTER_ESP’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:514: error: ‘MSR_IA32_SYSENTER_EIP’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:516: error: ‘MSR_STAR’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:517: error: ‘MSR_IA32_TSC’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:533: error: ‘CPUX86State’ has no member named ‘sysenter_cs’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:536: error: ‘CPUX86State’ has no member named ‘sysenter_esp’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:539: error: ‘CPUX86State’ has no member named ‘sysenter_eip’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:542: error: ‘CPUX86State’ has no member named ‘star’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:559: error: ‘CPUX86State’ has no member named ‘tsc’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_arch_pre_run’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:618: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:618: error: ‘IF_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_arch_post_run’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:650: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:650: error: ‘IF_MASK’ undeclared (first use in this function)
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:652: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:654: warning: implicit declaration of function ‘cpu_set_apic_tpr’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c: In function ‘kvm_handle_halt’:
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:663: error: ‘CPUX86State’ has no member named ‘eflags’
/usr/src/xen-4.0.1/tools/ioemu-dir/target-i386/kvm.c:663: error: ‘IF_MASK’ undeclared (first use in this function)
make[5]: *** [kvm.o] Error 1
make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/ioemu-qemu-xen/i386-dm'
make[4]: *** [subdir-i386-dm] Error 2
make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/ioemu-qemu-xen'
make[3]: *** [subdir-install-ioemu-dir] Error 2
make[3]: Leaving directory `/usr/src/xen-4.0.1/tools'
make[2]: *** [subdirs-install] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'
make[1]: *** [install-tools] Error 2
make[1]: Leaving directory `/usr/src/xen-4.0.1'
make: *** [world] Error 2
I am right now looking an answer for above ones.

log4j:ERROR Could not parse url [file:/usr/share/tomcat6/lib/log4j.xml]

I encountered this problem while working with an LMS known as OLAT

when I do a restart of tomcat server as /etc/init.d/tomcat6 restart

then in catalina.out I see following
log4j:ERROR Could not parse url [file:/usr/share/tomcat6/lib/log4j.xml].
org.xml.sax.SAXParseException: The markup in the document following
the root element must be well-formed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)
at 
org.apache.log4j.xml.DOMConfigurator$2.parse(DOMConfigurator.java:612)
at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:711)
at 
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
at 
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:743)
at 
org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:69)
at 
org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:151)
at 
org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

As a remedy to this problem the only work around I observed working is
I delete /usr/share/tomcat6/lib/log4j.xml
and create it again as mentioned here
https://lists.uzh.ch/lists.olat.org/sympa/arc/olat-users/2010-11/msg00054.html
and then restart tomcat6 then the above error goes and I am able to
get olat back.

Tuesday, February 22, 2011

Getting IP in X-Forwarded-For field logged in

If you run a cluster of servers in a reverse proxy situation then you must have encountered this where you want to log the actual IP of request coming in forwarded via the Reverse Proxy server.This IP is in X-Forwarded-For field of header.




You can define some custom log with your apache vhost configuration
LogFormat "%{X-Forwarded-For}i %a %D %>s %B" resp
CustomLog /var/log/apache2/resp.log resp
To be able to record or observe your desired format of logs.


On one of my machines I had done this mistake apache2.conf where I have commented out the wrong line

LogFormat " %{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
#LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

one line with keyword combined at the end is hashed.That was a mistake having a CustoLog Format with keyword combined at 2 lines had created problem.I am not sure why it had not worked the time when I was writing.Since I am already running 12-13 websites on this one which is a part of a larger cluster so mentioning it (keyword combined ) in 2 different lines
was causing trouble in other vhosts.Only one place is sufficient to log in apache2.conf.
How ever you should define some thing in your vhost files also.
You can do some thing similar in the vhost file
<virtualhost *:80>
        ServerAdmin webmaster@localhost

        ServerName 
        ProxyRequests off
       <Proxy * >
       Order deny,allow
        Allow from all
       </Proxy>

        DocumentRoot /var/www
        <directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
  ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn


        CustomLog /var/log/apache2/access.log combined
        CustomLog /var/log/apache2/resp.log resp

</VirtualHost>
Now note the combined keyword here at the end.The log format in apache2.conf corresponding to keyword combined and resp gets mapped here.


<virtualhost *:80>
        ServerAdmin webmaster@localhost

        ServerName 
        ProxyRequests off
       <Proxy * >
       Order deny,allow
        Allow from all
       </Proxy>

        DocumentRoot /var/www
        <directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
  ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn


        CustomLog /var/log/apache2/access.log combined
        CustomLog /var/log/apache2/resp.log resp

        CustomLog /var/log/apache2/access.log myformat
        LogFormat "%{X-Forwarded-For}i  %D %t %T %v %O %b %A %B" myformat
</VirtualHost>

Now note the last 2 lines this way you can have your formats if you do not want to mess with apache2.conf.

Some useful information which you can capture in logs is
%{X-Forwarded-For}i IP of user coming behind a proxy
%v server name for which request is coming if you have multiple websites this helps
%T time taken to serve requests in seconds and if you want in microseconds then use
%D
%{User-agent}i user-agent refers to client browser
%t the time at which server recieved request (English Date Format)

Someuseful links
1) http://ubuntuforums.org/showpost.php?p=9394344&postcount=9
2) http://httpd.apache.org/docs/2.0/mod/mod_log_config.html

Wednesday, February 16, 2011

Installing Xen 4.0 on Ubuntu 9.04

Your boss pointed gun at your head and gave you two hours to make things work (I have had the privilege of working with one such person)
and to save your life you are searching various places on internet
You posted on a lot of forums and rather than getting any solution to your original problem what you were said to read is Eric Stevens non sensical guide
http://www.catb.org/~esr/faqs/smart-questions.html
and because of people like Eric Stevens using Linux or what ever becomes a real pain when most of the time on a forum the people who will give you some rant actually do not understand the issue.


Coming to real point

You downloaded Xen 4.0 on Ubuntu and now realized
the instructions here
https://help.ubuntu.com/community/Xen
are shit.
Then you are at the correct place.
What they don't tell you is to install dpkg-dev bridge-utils libncurses5-dev debhelper fakeroot
build-dep

typed
make world KERNELS="linux-2.6-xen0 linux-2.6-xenU"
as normal user you will get some thing similar.

select-repository: Searching `.:..' for linux-2.6.18-xen.hg
select-repository: Ignoring `.'
Unable to determine path to Linux source tree.
Falling back to linux-2.6.18-xen Mercurial repository.
Cloning http://xenbits.xensource.com/linux-2.6.18-xen.hg to linux-2.6.18-xen.hg.
/bin/sh: hg: not found
make[3]: *** [linux-2.6.18-xen.hg/.valid-src] Error 127
make[3]: Leaving directory `/home/tapas/xen-4.0.1'
make[2]: *** [linux-2.6-xen0-install] Error 2
make[2]: Leaving directory `/home/tapas/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/home/tapas/xen-4.0.1'
make: *** [world] Error 2

Solution of above problem

install the mercurial tool hg that is why you got above error.
sudo apt-get install mercurial







After this you some how started the process again

# configuration written to .config
#
make[4]: Leaving directory `/home/tapas/xen-4.0.1/linux-2.6.18-xen.hg'
make -C build-linux-2.6.18-xen0_x86_32 ARCH=$(sh buildconfigs/select-linux-arch linux-2.6.18-xen.hg) prepare
select-linux-arch: i386
make[4]: Entering directory `/home/tapas/xen-4.0.1/build-linux-2.6.18-xen0_x86_32'
make -C /home/tapas/xen-4.0.1/linux-2.6.18-xen.hg O=/home/tapas/xen-4.0.1/build-linux-2.6.18-xen0_x86_32 prepare
GEN     /home/tapas/xen-4.0.1/build-linux-2.6.18-xen0_x86_32/Makefile
scripts/kconfig/conf -s arch/i386/Kconfig
Using /home/tapas/xen-4.0.1/linux-2.6.18-xen.hg as source for kernel
GEN     /home/tapas/xen-4.0.1/build-linux-2.6.18-xen0_x86_32/Makefile
CHK     include/linux/version.h
UPD     include/linux/version.h
CHK     include/linux/utsrelease.h
UPD     include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-i386
awk: line 2: function gensub never defined
/home/tapas/xen-4.0.1/linux-2.6.18-xen.hg/scripts/Makefile.build:74: *** 'Your awk program does not define gensub.  Use gawk or another awk with gensub'.  Stop.
make[6]: *** [scripts_basic] Error 2
make[5]: *** [prepare] Error 2
make[4]: *** [prepare] Error 2
make[4]: Leaving directory `/home/tapas/xen-4.0.1/build-linux-2.6.18-xen0_x86_32'
make[3]: *** [build-linux-2.6.18-xen0_x86_32/include/linux/autoconf.h] Error 2
make[3]: Leaving directory `/home/tapas/xen-4.0.1'
make[2]: *** [linux-2.6-xen0-install] Error 2
make[2]: Leaving directory `/home/tapas/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/home/tapas/xen-4.0.1'
make: *** [world] Error 2

What your screwed up boss did not knew is to have following
apt-get build-dep xen-3.3
tapas@tapas:~/xen-4.0.1$
tapas@tapas:~/xen-4.0.1$ sudo apt-get build-dep xen-3.3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libcurl4-openssl-dev instead of libcurl3-dev
Note, selecting libpci-dev instead of pciutils-dev
The following NEW packages will be installed:
  comerr-dev diffstat dvipdfmx gawk graphviz lacheck latex-beamer latex-xcolor
  libaa1-dev libasound2-dev libaudio-dev libaudio2 libaudiofile-dev
  libcaca-dev libcurl3 libcurl4-openssl-dev libdirectfb-dev libdirectfb-extra
  libesd0-dev libfreetype6-dev libgl1-mesa-dev libglu1-mesa-dev libidn11-dev
  libjpeg62-dev libkadm55 libkrb5-dev libldap2-dev libnetpbm10 libpci-dev
  libpng12-dev libsdl1.2-dev libslang2-dev libsysfs-dev libvncserver-dev
  libvncserver0 libxext-dev lmodern mesa-common-dev netpbm pgf prosper ps2eps
  python-all python-all-dev python2.5 python2.5-dev python2.5-minimal quilt
  tex-common texlive-base texlive-base-bin texlive-base-bin-doc texlive-common
  texlive-doc-base texlive-extra-utils texlive-fonts-recommended
  texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base
  texlive-latex-base-doc texlive-latex-recommended
  texlive-latex-recommended-doc texlive-pstricks texlive-pstricks-doc tipa
  transfig ttf-liberation x11proto-xext-dev
0 upgraded, 68 newly installed, 0 to remove and 0 not upgraded.
Need to get 147MB of archives.
After this operation, 321MB of additional disk space will be used.
Do you want to continue [Y/n]? Y

Now for your good health when you are doing circus with source codes it is always good to have them in /usr/src

make xen
make tools
make stubdom
make install-xen
make install-tools
make install-stubdom
and then compile dom0 kernel following
http://wiki.xensource.com/xenwiki/XenParavirtOps.
or perhaps a "make world" (without anything after that) might do
all the steps, but I prefer doing it one by one

mkdir linux-2.6-pvops.git.tmp
+ rmdir linux-2.6-pvops.git.tmp
+ git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp
/bin/sh: git: not found
make[3]: *** [linux-2.6-pvops.git/.valid-src] Error 127
make[3]: Leaving directory `/usr/src/xen-4.0.1'
make[2]: *** [linux-2.6-pvops-install] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/usr/src/xen-4.0.1'
make: *** [world] Error 2
root@tapas:/usr/src/xen-4.0.1# aptitude install git
Reading package lists... Done

Solution for your stupid boss

aptitude install git-core

Then after this a circus which lasted for about 4 hours or more I got following
elif make -C linux-2.6-pvops.git ARCH=$(sh buildconfigs/select-linux-arch linux-2.6-pvops.git) defconfig O=$(/bin/pwd)/build-linux-2.6-pvops_x86_32 ; then \
   echo "Configured build-linux-2.6-pvops_x86_32 using defconfig" ; \
 else \
          echo "No configuration method found for this kernel" ; \
 fi
sed: can't read linux-2.6-pvops.git/Makefile: No such file or directory
make[3]: *** [build-linux-2.6-pvops_x86_32/include/linux/autoconf.h] Error 2
make[3]: Leaving directory `/usr/src/xen-4.0.1'
make[2]: *** [linux-2.6-pvops-install] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/usr/src/xen-4.0.1'
make: *** [world] Error 2


My internet connection keeps disconnection so my make world stops

+ git clone -o xen -n git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-pvops.git.tmp
Initialized empty Git repository in /usr/src/xen-4.0.1/linux-2.6-pvops.git.tmp/.git/
fatal: Unable to look up git.kernel.org (port 9418) (Name or service not known)
make[3]: *** [linux-2.6-pvops.git/.valid-src] Error 128
make[3]: Leaving directory `/usr/src/xen-4.0.1'
make[2]: *** [linux-2.6-pvops-install] Error 2
make[2]: Leaving directory `/usr/src/xen-4.0.1'
make[1]: *** [install-kernels] Error 1
make[1]: Leaving directory `/usr/src/xen-4.0.1'
make: *** [world] Error 2