|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [Xen-users] xen pae build is broken on ubuntu dapper
Hi,
I know, this issue looks like, if I'm totally noob.
I usually build kernels and software as an unprivileged user. And this works
fine in my sarge chroot, but not on dapper!
Take a xen unstable snapshot, and run these commands:
XEN_TARGET_X86_PAE=y make kernels XEN_TARGET_X86_PAE=y
cd linux-2.6.16.13-xen
sudo make modules_install
This is the way, I usually did it.
Am Montag, 21. August 2006 18:14 schrieb Tim Post:
> On Sun, 2006-08-20 at 13:59 +0200, Hans-Christian Armingeon wrote:
> > Hi,
> >
> > I cannot build xen for pae on ubuntu dapper with XEN_TARGET_X86_PAE=y make
> > kernels xen tools XEN_TARGET_X86_PAE=y
> >
> > Can anybody tell me, where the problem is?
> >
> > Johnny
>
> I'd look into this first:
> mkdir: cannot create directory `//lib/modules/2.6.16.13-xen': Read-only
Between the two //, there should be a variable (the installation path), which
is correctly evaluated, if I'm inside the sarge chroot.
When I ahvent set XEN_TARGET_X86_PAE=y, and I run make xen tools as an
unprivileged user, the files get installed in $PWD/dist/install/usr/lib .
make xen tools as an unprivileged user:
[...]
gcc -O2 -fomit-frame-pointer -DNDEBUG -m32 -march=i686 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement
-D__XEN_INTERFACE_VERSION__=0x00030101 -DUSE_SSE2=1 -msse2 -g
-fno-strict-aliasing -o qemu-dm vl.o exec.o monitor.o osdep.o block.o
readline.o pci.o console.o block-cow.o block-qcow.o block-vmdk.o block-cloop.o
aes.o ide.o ne2000.o pckbd.o vga.o dma.o fdc.o mc146818rtc.o serial.o
i8259_stub.o i8254.o pc.o port-e9.o cirrus_vga.o pcnet.o sb16.o audio.o
noaudio.o wavaudio.o sdlaudio.o ossaudio.o mixeng.o sdl.o libqemu.a -lm
-L../../libxc -lxenctrl -lxenguest -L../../xenstore -lxenstore -lz -L/usr/lib
-lSDL -lpthread -lutil -lpthread
make[4]: Leaving directory
`/usr/src/xen/xen-3.0-testing.hg-20060819/tools/ioemu/target-i386-dm'
mkdir -p "/usr/bin"
mkdir -p
"/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install//usr/share/xen/qemu"
mkdir -p
"/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install//usr/share/xen/qemu/keymaps"
install -m 644 keymaps/da keymaps/en-gb keymaps/et keymaps/fr keymaps/fr-ch
keymaps/is keymaps/lt keymaps/modifiers keymaps/no keymaps/pt-br keymaps/sv
keymaps/ar keymaps/de keymaps/en-us keymaps/fi keymaps/fr-be keymaps/hr
keymaps/it keymaps/lv keymaps/nl keymaps/pl keymaps/ru keymaps/th
keymaps/common keymaps/de-ch keymaps/es keymaps/fo keymaps/fr-ca keymaps/hu
keymaps/ja keymaps/mk keymaps/nl-be keymaps/pt keymaps/sl keymaps/tr
"/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install//usr/share/xen/qemu/keymaps"
for d in target-i386-dm; do \
make -C $d install || exit 1 ; \
done
make[4]: Entering directory
`/usr/src/xen/xen-3.0-testing.hg-20060819/tools/ioemu/target-i386-dm'
if [ ! -d /usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/usr/lib/xen/bin
];then mkdir -p
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/usr/lib/xen/bin;fi
if [ ! -d /usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/etc/xen ];then
mkdir -p /usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/etc/xen;fi
install -m 755 -s qemu-dm qemu-dm
"/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/usr/lib/xen/bin"
install -m 755 qemu-dm.debug
"/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/usr/lib/xen/bin"
install -m 755 qemu-ifup
"/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/etc/xen"
make[4]: Leaving directory
`/usr/src/xen/xen-3.0-testing.hg-20060819/tools/ioemu/target-i386-dm'
make[3]: Leaving directory
`/usr/src/xen/xen-3.0-testing.hg-20060819/tools/ioemu'
make[2]: Leaving directory `/usr/src/xen/xen-3.0-testing.hg-20060819/tools'
install -d -m0755 -p
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/var/xen/dump
make[1]: Leaving directory `/usr/src/xen/xen-3.0-testing.hg-20060819/tools'
and if you run XEN_TARGET_X86_PAE=y make xen toole XEN_TARGET_X86_PAE=y
[...]
ld -m elf_i386 -T xen.lds -N \
boot/x86_32.o
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/common/built_in.o
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/drivers/built_in.o
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/arch/x86/built_in.o
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms.o -o
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms
rm -f /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms.S
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms.o
gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
-Wdeclaration-after-statement -o boot/mkelf32 boot/mkelf32.c
./boot/mkelf32 /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen 0x100000 \
`nm /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms | sort | tail
-n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'`
make[3]: Leaving directory
`/usr/src/xen/xen-3.0-testing.hg-20060819/xen/arch/x86'
gzip -f -9 < /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen >
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz.new
mv /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz.new
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz
[ -d //boot ] || install -d -m0755 //boot
install -m0644 /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz
//boot/xen-3.0.2-3.gz
install: cannot remove `//boot/xen-3.0.2-3.gz': Permission denied
make[2]: *** [_install] Error 1
make[2]: Leaving directory `/usr/src/xen/xen-3.0-testing.hg-20060819/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/src/xen/xen-3.0-testing.hg-20060819/xen'
make: *** [install-xen] Error 2
You see the double slash?
And here is teh "correct" version, where install copys thxen.gz into the
correct location.
[...]
rm -f /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms.S
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms.o
gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
-Wdeclaration-after-statement -o boot/mkelf32 boot/mkelf32.c
./boot/mkelf32 /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen 0x100000 \
`nm /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms | sort | tail
-n 1 | sed -e 's/^\([^ ]*\).*/0x\1/'`
make[3]: Leaving directory
`/usr/src/xen/xen-3.0-testing.hg-20060819/xen/arch/x86'
gzip -f -9 < /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen >
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz.new
mv /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz.new
/usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz
[ -d /usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot ] || install -d
-m0755 /usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot
install -m0644 /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen.gz
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot/xen-3.0.2-3.gz
ln -f -s xen-3.0.2-3.gz
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot/xen-3.0.gz
ln -f -s xen-3.0.2-3.gz
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot/xen-3.gz
ln -f -s xen-3.0.2-3.gz
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot/xen.gz
install -m0644 /usr/src/xen/xen-3.0-testing.hg-20060819/xen/xen-syms
/usr/src/xen/xen-3.0-testing.hg-20060819/dist/install/boot/xen-syms-3.0.2-3
[...]
I stated in a previous post, that I think that the newer version of make on
dapper is the culprit.
I dont feel offended by the two answers I got, that might look like I'm too
stupid, to build xen. ;-)
Johnny
> file system
>
> Err, got root?
>
> HTH
> -Tim
>
> >
> > CC sound/usb/snd-usb-lib.mod.o
> > LD [M] sound/usb/snd-usb-lib.ko
> > CC sound/usb/usx2y/snd-usb-usx2y.mod.o
> > LD [M] sound/usb/usx2y/snd-usb-usx2y.ko
> > make[3]: Leaving directory
> > `/usr/src/xen/xen-3.0-testing.hg-20060819-pae/linux-2.6.16.13-xen'
> > make[3]: Entering directory
> > `/usr/src/xen/xen-3.0-testing.hg-20060819-pae/linux-2.6.16.13-xen'
> > mkdir: cannot create directory `//lib/modules/2.6.16.13-xen': Read-only
> > file system
> > make[3]: *** [_modinst_] Error 1
> > make[3]: Leaving directory
> > `/usr/src/xen/xen-3.0-testing.hg-20060819-pae/linux-2.6.16.13-xen'
> > make[2]: *** [build] Error 2
> > make[2]: Leaving directory `/usr/src/xen/xen-3.0-testing.hg-20060819-pae'
> > make[1]: *** [linux-2.6-xen-install] Error 2
> > make[1]: Leaving directory `/usr/src/xen/xen-3.0-testing.hg-20060819-pae'
> > make: *** [install-kernels] Error 1
> >
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|