From: Ian Campbell Subject: Re: problems compiling Xen 3.1.3 after making changes to the config Date: Thu, 03 Apr 2008 11:01:24 +0100 Message-ID: <1207216884.24799.101.camel@zakaz.uk.xensource.com> References: <2122f0920804021317x491446aar170ff6554bb5deb3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <2122f0920804021317x491446aar170ff6554bb5deb3@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Girish V Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, 2008-04-02 at 16:17 -0400, Girish V wrote: > Hello, > > I am trying to compile and boot Xen 3.1.3 with linux-2.6.18.8-xen on a > FC5 machine (gcc 4.1.0). > > I modified the default linux-2.6.18.8-xen/.config file by doing the > following > > 1) cd xen-3.1.3/linux-2.6.18.8-xen/ This should be xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 then the rest of your commands should work OK. You will need to run "make mrproper" in xen-3.1.3/linux-2.6.18.8-xen to undo what you did already. The issues is that the Xen build system uses out of tree builds (the O= in the output below) so source is in linux-2.6.18.8-xen and objects are in build-* (this saves having multiple copies of the source). You have caused the source tree to be used as an object tree which leads to the error you have observed. > 2) make menuconfig (marked ide drivers to be compiled in instead of as > modules) > 3) cd ../ > 4) make > > Make fails with the following message > ------------------------------------------------------------------------------------------------------- > > > > make[3]: Entering directory > `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32' > make -C /root/xen-3.1.3/linux-2.6.18.8-xen > O=/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32 vmlinuz > Using /root/xen-3.1.3/linux-2.6.18.8-xen as source for kernel > /root/xen-3.1.3/linux-2.6.18.8-xen is not clean, please run 'make > mrproper' > in the '/root/xen-3.1.3/linux-2.6.18.8-xen' directory. > make[5]: *** [prepare3] Error 1 > make[4]: *** [vmlinuz] Error 2 > make[3]: *** [vmlinuz] Error 2 > make[3]: Leaving directory > `/root/xen-3.1.3/build-linux-2.6.18.8-xen_x86_32' > make[2]: *** [build] Error 2 > make[2]: Leaving directory `/root/xen-3.1.3' > make[1]: *** [linux-2.6-xen-install] Error 2 > make[1]: Leaving directory `/root/xen-3.1.3' > make: *** [install-kernels] Error 1 > > ------------------------------------------------------------------------------------------------------- > > > Any help is appreciated. > > > Thanks, > Girish > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel