I'm trying to build a custom AMI (amazon machine image) taking ideas from Gentoo's Xen Guide and a post on this forum.
I'm stuck building the custom kernel, mainly because xen-tools isn't able to compile.
So, I did an image (dd if=/dev/zero... etc), copied a stage3, portage, and everything else we know. When installing (inside the chroot) xen-tools, it failed:
Code: Select all
>>> Compiling source in /var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1 ...
make -j3 CC=x86_64-pc-linux-gnu-gcc LD=x86_64-pc-linux-gnu-ld -C tools
make: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1/tools'
make[1]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1/tools'
make -C check all
make[2]: Entering directory `/var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1/tools/check'
PYTHON=python LIBXENAPI_BINDINGS=n ACM_SECURITY=n ./chk build
Xen CHECK-BUILD Tue Apr 17 17:16:35 Local time zone must be set--see zic manual page 2012
Checking check_crypto_lib: OK
Checking check_curl: unused, OK
Checking check_openssl_devel: OK
Checking check_python: OK
Checking check_python_devel:
*** check_python_devel FAILED: can't find python devel files
Checking check_uuid_devel: OK
Checking check_xgettext: OK
Checking check_xml2: unused, OK
Checking check_zlib_devel: OK
Checking check_zlib_lib: OK
make[2]: *** [check-build] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1/tools/check'
make[1]: *** [subdir-all-check] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1/tools'
make: *** [subdirs-all] Error 2
make: Leaving directory `/var/tmp/portage/app-emulation/xen-tools-4.1.1-r6/work/xen-4.1.1/tools'
emake failed
* ERROR: app-emulation/xen-tools-4.1.1-r6 failed (compile phase):
* compile failed
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 4921: Called die
* The specific snippet of code:
* emake CC=$(tc-getCC) LD=$(tc-getLD) -C tools ${myopt} || die "compile failed";The image's profile:
Code: Select all
# eselect profile list|grep \*
[8] default/linux/amd64/10.0/server *Other than that, the new system is pretty default (as I previously said, just portage, tweaked some flags, emerged xen-sources, but I wasn't able to install xen-tools.
Just in case, emerge -pv xen-tools:
Code: Select all
[ebuild N ] app-emulation/xen-tools-4.1.1-r6 USE="-api -custom-cflags -debug -doc -flask -hvm -pygrub -qemu -screen -xend" 0 kBAny hint?
Thanks in advance,
Paul.


