WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Install xen 3.4.0 and build from source

To: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] Install xen 3.4.0 and build from source
From: Donglai Zhang <dlzhangster@xxxxxxxxx>
Date: Sun, 31 May 2009 16:22:43 +0930
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 30 May 2009 23:53:35 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jeW+VF0nAZmHDq1RjNmdlV+48glr6WYYmOF/6NxjDQ8=; b=UTzyVdMchnh8dWw2OTiYEQ8h7hTGb0EqWUR3NTyXkLDRiZEnEEh8hgpzXy9mUQbYcS wURy7JqtSn4kYy39hViAl7MjyOEtAavuX7Nv2AoWXS1Fcxs639KD/vxLdMFk6NlK2WWP fYyUJWS+ICkrgAuj2Z3VMDnaWOqFjcr6VRKPs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=yFm77o7wxjXqplnjsQ6PUI/23tJBUoLR22yP4RDYgM2uCPV8AdFdTmSt5hRNdcv4ry pGnFb/TIdEgLg6A23pj9iEnIEqdQNYZuevQ0tjmpNLxYtptAccuJ1NIOAc9Sv8yOmjyD bcR+dHWVwsKg6Bl+2SEN38uq1H/m1SZkMkSoY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <642667.62570.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <642667.62570.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

I followed the following steps and after #make world, everything seems fine.

In #make install:

I got the error information:
....
include2/asm/byteorder.h:5:28: error: linux/compiler.h: No such file or directory

  //Donglai : after paused for a while,  it continued.


  Building modules, stage 2.
  MODPOST
.......


Then I got following error:

.....
gcc   -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .build.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -DNDEBUG -Werror -fno-stack-protector -fno-builtin -msoft-float -I. -I.. -I../../../../tools/include -c -o build.o build.c
build.c: In function ‘construct_secondary_tables’:
build.c:184: error: ‘AmlCode_PM’ undeclared (first use in this function)
build.c:184: error: (Each undeclared identifier is reported only once
build.c:184: error: for each function it appears in.)
make[8]: *** [build.o] Error 1

Any idea what is the problem?

Thanks!

Donglai


On Tue, May 26, 2009 at 4:42 PM, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:
The very first time do :-

# hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
# cd xen-3.4-testing.hg
# make world

Next step will install standard 2.6.18.8-xen on your system

# make install
 


I've never customized 2.6.18.8-xen. Per README :-

5. To rebuild a kernel with a modified config:

    # make linux-2.6-xen-config CONFIGMODE=menuconfig     (or xconfig)
    # make linux-2.6-xen-build
    # make linux-2.6-xen-install

So, i would try just to do it afterwards .
Different option ( i understand, that it would build kernel twice) :-
  
     # make world
     # make install-xen
     # make install-tools
     # make install-stubdom

      Rebuild and install customized kernel

     # make linux-2.6-xen-config CONFIGMODE=menuconfig     (or xconfig)
     # make linux-2.6-xen-build
     # make linux-2.6-xen-install
     

Boris.

--- On Tue, 5/26/09, Donglai Zhang <dlzhangster@xxxxxxxxx> wrote:

From: Donglai Zhang <dlzhangster@xxxxxxxxx>
Subject: [Xen-users] Install xen 3.4.0 and build from source
To: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, May 26, 2009, 12:47 AM


Hi,

I am new to Xen and trying to install xen 3.4.0 on a Linux
box.
I followed the user manual packaged in the tar ball and in
section 2.4.2,
"To customize the set of kernels built you need to edit the
top-level Makefile. Look for the line:
KERNELS ? + linux-2.6-xen0 linux-2.6-xenU
..."

Unfortunately, I did not find that, is the manual out of
date?


Best regards,

Donglai

-----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




--
Donglai Zhang

Ph.D Candidate
School of Computer Science
University of Adelaide,
SA, Australia  5083

Tel: 0061 8 83036166



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users