[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] 'make dist' fails at end of build while copying (cp) vmlinuz from .../arch/i386/boot/ directory


  • To: xensource mailinglist <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: Jithendra Bethur <bcj01@xxxxxxxxx>
  • Date: Wed, 9 Jul 2008 16:08:38 -0700 (PDT)
  • Delivery-date: Wed, 09 Jul 2008 16:09:23 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=rrpH0m4KF2F0B0YIBP3PK3oYBidkC1Vfb33HGuV5VN8UnRt9UY1zThTdZJNuvF0ppfOWQpxeM+uY5ERZQyEO0f1xXGAb53uJKD7ODWIUuxBxMTypSfP+4aKdt4AuR9hEx/JHqhwSjMAdYLjysU9EKN7nm6BBm7+GhcIMOR80rvI=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.