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

Re: [Xen-users] Compiling Xen-3.2.0



Hi Ian,

On Mon, Jan 28, 2008 at 02:43:07PM -0000, Ian Tobin wrote:
> Hi,
>
> I tried that method but I still get this error
>
> make[3]: Entering directory
> `/usr/src/xen-3.2.0/build-linux-2.6.18-xen_x86_64'
> make -C /usr/src/linux-2.6.18-xen.hg
> O=/usr/src/xen-3.2.0/build-linux-2.6.18-xen_x86_64 modules
>   GEN     /usr/src/xen-3.2.0/build-linux-2.6.18-xen_x86_64/Makefile
> scripts/kconfig/conf -s arch/x86_64/Kconfig
>   Using /usr/src/linux-2.6.18-xen.hg as source for kernel
>   /usr/src/linux-2.6.18-xen.hg is not clean, please run 'make mrproper'
>   in the '/usr/src/linux-2.6.18-xen.hg' directory.
> make[5]: *** [prepare3] Error 1
> make[4]: *** [modules] Error 2
> make[3]: *** [modules] Error 2
> make[3]: Leaving directory
> `/usr/src/xen-3.2.0/build-linux-2.6.18-xen_x86_64'
> make[2]: *** [build] Error 1
> make[2]: Leaving directory `/usr/src/xen-3.2.0'
> make[1]: *** [linux-2.6-xen-install] Error 2
> make[1]: Leaving directory `/usr/src/xen-3.2.0'
> make: *** [install-kernels] Error 1
> triggertest:/usr/src/xen-3.2.0#
>
> Im sure im not the only one who is getting this?

As said in my small HOWTO:

% It is necessary, at least from my own understanding, to "make
% prep-kernels" in order to create the kernel build directory.  Indeed
% if you put your .config file directory into the kernel tree, the
% kernel's build system will complain about its cleanliness and will ask
% you to run "make mrproper".  The reason is that the kernel is not
% built directly in the source tree -- as most of people used to do --
% but instead uses a separate directory to store produced object files,
% thus the assumption about the cleanliness.

I admit this could be stated in better english, though :).

To make it short: "make prep-kernels" create a build directory for the
kernel ***where you can copy your .config file***.  DO NOT CREATE A
.config FILE IN THE KERNEL SOURCE TREE.

Concretly:
% xentest:~/build/xen-3.2.0# make prep-kernels
% [...]
% make[3]: Leaving directory 
`/root/build/xen-3.2.0/build-linux-2.6.18-xen_x86_32'
% make[2]: Leaving directory `/root/build/xen-3.2.0'
% make[1]: Leaving directory `/root/build/xen-3.2.0'
%
% xentest:~/build/xen-3.2.0# cp /path/to/your/.config 
build-linux-2.6.18-xen_x86_32/.config
%
% xentest:~/build/xen-3.2.0# make dist
% [...]

I hope this will be clearer now.

Regards,
-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

_______________________________________________
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®.