Feb 23, 2013

get xen-syms from building source on ubuntu

Step 1. 
apt-get source xen-hypervisor-4.1-amd64

Step 2. 
cd xen-4.1.3

Step 3. 
make world
If you did not install any required packages. You may have a painful experience as I had.

Before looking into problems, here is the summary of required packages from experiencing problems below:
apt-get install libx11-dev uuid-dev bin86 bcc gcc-multilib ipxe iasl libaio-dev python-dev texinfo

Here are the problems.

Problem
 *** check_x11_devel FAILED: can't find X11 headers
Solution
apt-get install libx11-dev

Problem
 *** check_uuid_devel FAILED: missing uuid headers (package uuid-dev)
Solution
apt-get install uuid-dev

Problem
Require dev86 rpm or bin86 & bcc debs version >= 0.16.14 to build firmware!
Solution
apt-get install bin86 bcc

Problem
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directory

Solution
apt-get install gcc-multilib

Problem
*** No rule to make target `/usr/lib/ipxe/rtl8139.rom', needed by `eb-roms.h'.  Stop.
Solution
apt-get install ipxe

Problem
ACPI ASL compiler (iasl) is needed
Solution
apt-get install iasl

Problem
tapdisk-queue.h:32:20: fatal error: libaio.h: No such file or directory
Solution
apt-get install libaio-dev

Problem
xen/lowlevel/xc/xc.c:7:20: fatal error: Python.h: No such file or directory
Solution
apt-get install python-dev

Problem
*** [standards.info] Error 1
Solution
apt-get install texinfo

Problem
/bin/sh: 4: ./xen-setup-stubdom: not found
Solution
xen-setup-stubdom is in ./stubdom/qemu not in ./stubdom.
stubdom's Makefile seems to miss QEMU_ROOT. 
Manually setup QEMU_ROOT.

Finally, we pass make world.
Now, we have the symbol file in ./dist/install/boot/xen-syms-4.1.3

References:
http://ashwinvasani.wordpress.com/2010/12/29/general-errors-and-solutions-while-installing-xen-4-0-1-on-ubuntu/
http://locatrix.com/build-and-install-xen-4-2-1-from-source-on-ubuntu-12-10/

Ending picture:
Tiger: I want my dinner! (National Zoo, Washington, DC) [courtesy of my dear wife - Claire Huang]



No comments:

Post a Comment