Jithendra Bethur
2008-Jul-09 23:08 UTC
[Xen-users] ''make dist'' fails at end of build while copying (cp) vmlinuz from .../arch/i386/boot/ directory
PS: A similar issue has been partially discussed in [Xen-devel] but solution is not given or not clear. http://lists.xensource.com/archives/html/xen-devel/2007-09/msg00568.html I am building Xen-3.2.0 (from source) with a ''working, known good'' xenified linux kernel from Fedora Core 8 (kernel-xen-2.6.21.7-3.fc8xen). Here is the build failure I get when I run: # make prep-kernels KERNELS="linux-2.6-xen0 linux-2.6-xenU" which succeeds. # make dist KERNELS="linux-2.6-xen0 linux-2.6-xenU" which almost completes the build but at the end result in the below build error: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ....... WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem_low from .text between ''xen_machine_kexec_setup_resources'' (at offset 0xc1151646) and ''xen_machine_kexec_load'' OBJCOPY vmlinux-stripped BFD: vmlinux-stripped: warning: allocated section `.notes'' not in segment GZIP vmlinuz make[3]: Leaving directory `/root/rpmbuild/BUILD/kernel-2.6.21/xen-3.2.0/build-linux-2.6.18-xen0_x86_32'' mkdir -p /root/rpmbuild/BUILD/kernel-2.6.21/xen-3.2.0/dist/install/boot cp build-linux-2.6.18-xen0_x86_32/arch/i386/boot/vmlinuz /root/rpmbuild/BUILD/kernel-2.6.21/xen-3.2.0/dist/install/boot/vmlinuz-2.6.21.7-3.fc8xen-xen0 cp: cannot stat `build-linux-2.6.18-xen0_x86_32/arch/i386/boot/vmlinuz'': No such file or directory make[2]: *** [build] Error 1 make[2]: Leaving directory `/root/rpmbuild/BUILD/kernel-2.6.21/xen-3.2.0'' make[1]: *** [linux-2.6-xen0-install] Error 2 make[1]: Leaving directory `/root/rpmbuild/BUILD/kernel-2.6.21/xen-3.2.0'' make: *** [install-kernels] Error 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Now, according to that other discussion thread, (back in Sept-2007) the solution was to get the latest linux-2.6.18 from the mercurial repository (although the root cause or fix was not clearly discussed). Since I am using a xenified Fedora core kernel-xen source tree of my own, I would like to know the cause and possible fix for this. My guess: It seems like the target linux bulid directory build-linux-2.6.18-xen0_x86_32, the sub-directory /arch/i386/boot/ is not getting created for some reason. Should the ''make dist'' also specify XEN_TARGET_ARCH=x86_32 ? Note: I am able to successfully build the linux kernel from the original kernel source directory without any such errors. Only ''make dist'' fails. -regards, Jithendra B _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Apparently Analagous Threads
- Still un-answered: How-To build Xen (3.2) to override XenSource''s linux-kernel (2.6.18) with a xenified kernel (your own or distribution)
- Doubt
- xen wont start on fedora 8 :-(
- Para virtualized guest on Xen
- xen on fedora-core8(host) with fc8 as dom0 hangs after "starting atd"