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

[Xen-users] how to compile a xen kernel (on debian testing)?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] how to compile a xen kernel (on debian testing)?
From: Matus Harvan <m.harvan@xxxxxxxxxxxx>
Date: Wed, 28 Sep 2005 15:46:06 +0200
Delivery-date: Wed, 28 Sep 2005 13:43:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.2 (X11/20050602)
Hello,

I was wondering how do other people using debian build the xen kernels
form source on a debian testing system?

I am using a Debian testing system. I have installed the xen package and
it works nicely. However, I would like to change some options in the xen
kernels (like adding IPv6) and compile them myself. I have downloaded
the stable xen release
(http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-2.0.7-src.tgz)
and tried:
        make kernels
        make CC=gcc-3.4 kernels
        make CC=gcc-3.3 kernels

and with all I ended up at
[snip]
  CC      arch/xen/i386/kernel/process.o
{standard input}: Assembler messages:
{standard input}:556: Error: suffix or operands invalid for `mov'
{standard input}:557: Error: suffix or operands invalid for `mov'
{standard input}:765: Error: suffix or operands invalid for `mov'
{standard input}:766: Error: suffix or operands invalid for `mov'
{standard input}:845: Error: suffix or operands invalid for `mov'
{standard input}:846: Error: suffix or operands invalid for `mov'
{standard input}:883: Error: suffix or operands invalid for `mov'
{standard input}:884: Error: suffix or operands invalid for `mov'
{standard input}:1138: Error: suffix or operands invalid for `mov'
{standard input}:1150: Error: suffix or operands invalid for `mov'
make[4]: *** [arch/xen/i386/kernel/process.o] Error 1
[snip]

An earlier message on this list says for redhat using gcc-3.2 helped.
But I can't find a gcc-3.2 package for debian. Anybody knows where to
get it?

I have also tried to build the debian xen package from source. AFAIK,
this one uses the 2.0.6 xen release. It sets the Makefile CC to gcc-3.4,
but it also tries to use kenel-source-2.6.11 and
kernel-patch-debian-2.6.11 packages, which again I cannot find anywhere.
Using dpkg-buildpackage -d, I got again hit by the same problem:
[snip]
gcc-3.4 -nostdinc -fno-builtin -fno-common -fno-strict-aliasing
-iwithprefix include -Wall -Werror -pipe
-I/uml/xen/debian/tmp/xen-2.0.6/xen/include -Wno-pointer-arith
-Wredundant-decls -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686
-DNDEBUG -c i8259.c -o i8259.o
{standard input}: Assembler messages:
{standard input}:6: Error: suffix or operands invalid for `mov'
{standard input}:6: Error: suffix or operands invalid for `mov'
{standard input}:6: Error: suffix or operands invalid for `mov'
{standard input}:6: Error: suffix or operands invalid for `mov'
{standard input}:1054: Error: suffix or operands invalid for `mov'
{standard input}:1054: Error: suffix or operands invalid for `mov'
{standard input}:1054: Error: suffix or operands invalid for `mov'
{standard input}:1054: Error: suffix or operands invalid for `mov'
{standard input}:1062: Error: suffix or operands invalid for `mov'
{standard input}:1062: Error: suffix or operands invalid for `mov'
{standard input}:1062: Error: suffix or operands invalid for `mov'
{standard input}:1062: Error: suffix or operands invalid for `mov'
{standard input}:1070: Error: suffix or operands invalid for `mov'
{standard input}:1070: Error: suffix or operands invalid for `mov'
{standard input}:1070: Error: suffix or operands invalid for `mov'
{standard input}:1070: Error: suffix or operands invalid for `mov'
{standard input}:1078: Error: suffix or operands invalid for `mov'
{standard input}:1078: Error: suffix or operands invalid for `mov'
{standard input}:1078: Error: suffix or operands invalid for `mov'
{standard input}:1078: Error: suffix or operands invalid for `mov'
{standard input}:1089: Error: suffix or operands invalid for `mov'
{standard input}:1089: Error: suffix or operands invalid for `mov'
{standard input}:1089: Error: suffix or operands invalid for `mov'
{standard input}:1089: Error: suffix or operands invalid for `mov'
{standard input}:1097: Error: suffix or operands invalid for `mov'
{standard input}:1097: Error: suffix or operands invalid for `mov'
{standard input}:1097: Error: suffix or operands invalid for `mov'
{standard input}:1097: Error: suffix or operands invalid for `mov'
make[3]: *** [i8259.o] Error 1
make[3]: Leaving directory `/uml/xen/debian/tmp/xen-2.0.6/xen/arch/x86'
[snip]

I guess the debian patch for 2.6.11 does some magic so that it compiles
with gcc-3.4, but I'm not sure how to get that patch.

Trying to compile the testing version of xen, I got a similar problem:
$ make CC=gcc-3.4 kernels
[snip]
  CC      arch/xen/i386/kernel/process.o
arch/xen/i386/kernel/process.c: In function `cpu_idle':
arch/xen/i386/kernel/process.c:118: warning: unused variable `cpu'
{standard input}: Assembler messages:
{standard input}:910: Error: suffix or operands invalid for `mov'
{standard input}:911: Error: suffix or operands invalid for `mov'
make[4]: *** [arch/xen/i386/kernel/process.o] Error 1
[snip]

I have also tried the unstable version. This one compiles without
problems and I could also "make install". But then I got various
problems later on the way and in general, I would prefer to run the
stable version.

Thanks,
Matus

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