Matus Harvan
2005-Sep-28 13:46 UTC
[Xen-users] how to compile a xen kernel (on debian testing)?
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@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Sep-28 14:10 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
On 2005-09-28 15:58, Luca Sacchi wrote:> hi, > > You must go inside the kernel directory and the type > > make ARCH=xen menuconfig > make ARCH=xen makeI have tried also the above, but I''m still getting the same compile errors. But "make kernels" should do the same, right? Except for also packaging the xen.gz for booting the dom0.> > have a nice XEN :) > > (rtfm)Actually, I did. The README in xen stable says both gcc-3.2 and gcc-3.3 are supported, so I''m not sure what''s going wrong. Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Anand Kumria
2005-Sep-28 23:00 UTC
[Xen-users] Re: how to compile a xen kernel (on debian testing)?
On Wed, 28 Sep 2005 15:46:06 +0200, Matus Harvan wrote: Hi Matus,> 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.You can generally find copies of old Debian packages at snapshot.debian.net. HTH, Anand _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Sep-30 08:22 UTC
Re: [Xen-users] Re: how to compile a xen kernel (on debian testing)?
On 2005-09-29 01:00, Anand Kumria wrote:> On Wed, 28 Sep 2005 15:46:06 +0200, Matus Harvan wrote: > > Hi Matus, > > >>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. > > > You can generally find copies of old Debian packages at > snapshot.debian.net.from snapshot.debian.net: 2005/06/19: may lost 2004/02/27 - 2005/03/12 One of their disks died and seems to have taken a lot of packages with it. Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ralph Passgang
2005-Sep-30 10:58 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
Hi, it seems so that xen 2.0.7 (don''t know about xen-testing or xen-unstable) doesn''t compile on debian UNSTABLE (sid) with the errors you saw. Some weeks earlier the same xen version compiled without a problem. I can compile xen 2.0.7 on debian testing (etch) and debian stable (sarge) without a problem (same source package). Because I build my packages with some scripts on a special build-host I have a build-log from xen 2.0.7 on debian unstable: http://packages.debianbase.de/sid/i386/xen/xen_2.0.7-2.error --Ralph Am Mittwoch, 28. September 2005 16:10 schrieb Matus Harvan:> On 2005-09-28 15:58, Luca Sacchi wrote: > > hi, > > > > You must go inside the kernel directory and the type > > > > make ARCH=xen menuconfig > > make ARCH=xen make > > I have tried also the above, but I''m still getting the same compile errors. > > But "make kernels" should do the same, right? Except for also packaging > the xen.gz for booting the dom0. > > > have a nice XEN :) > > > > (rtfm) > > Actually, I did. The README in xen stable says both gcc-3.2 and gcc-3.3 > are supported, so I''m not sure what''s going wrong. > > Matus > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Sep-30 11:45 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
On 2005-09-30 12:58, Ralph Passgang wrote:> Hi, > > it seems so that xen 2.0.7 (don''t know about xen-testing or xen-unstable) > doesn''t compile on debian UNSTABLE (sid) with the errors you saw. Some weeks > earlier the same xen version compiled without a problem. > > I can compile xen 2.0.7 on debian testing (etch) and debian stable (sarge) > without a problem (same source package).Well, I''m getting the same errors on debian testing. Could it be that you have not updated your debian testing recently or not yet removed some old packages? At the moment I don''t have a debian stable installation available.> > Because I build my packages with some scripts on a special build-host I have a > build-log from xen 2.0.7 on debian unstable: > > http://packages.debianbase.de/sid/i386/xen/xen_2.0.7-2.errorI''m getting the same compile errors.>From the build-log, it seems you have the debian 2.6.11 kernel packages,but only locally. You''re getting them from packages.debianbase.de, rather than ftp.debian.de: Get:1 http://packages.debianbase.de ./ kernel-patch-debian-2.6.11 2.6.11-7 [374kB] Get:2 http://packages.debianbase.de ./ kernel-source-2.6.11 2.6.11-7 [36.4MB] I have thought the debian kernel patch somehow patched the 2.6.11 kernel to compile with gcc-3.4. I have just downloaded the 2.6.11 kenel-source and debian patch from you. Will try to build the official debian xen package (2.0.6) from source again. Someone on the list said xen testing (2.0.8) should use kernel 2.6.12. I have just tried and vanilla 2.6.12 compiles on my debian testing. So the next thing to try out will be this one. I have seen you have already a debian package for xen 2.0.7. I guess you have done it yourself, as the official debian package seems to be still at xen version 2.0.6, right? Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Sep-30 12:10 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
On 2005-09-30 12:58, Ralph Passgang wrote:> Hi, > > it seems so that xen 2.0.7 (don''t know about xen-testing or xen-unstable) > doesn''t compile on debian UNSTABLE (sid) with the errors you saw. Some weeks > earlier the same xen version compiled without a problem. > > I can compile xen 2.0.7 on debian testing (etch) and debian stable (sarge) > without a problem (same source package).Well, I''m getting the same errors on debian testing. Could it be that you have not updated your debian testing recently or not yet removed some old packages? At the moment I don''t have a debian stable installation available.> > Because I build my packages with some scripts on a special build-host I have a > build-log from xen 2.0.7 on debian unstable: > > http://packages.debianbase.de/sid/i386/xen/xen_2.0.7-2.errorI''m getting the same compile errors.>From the build-log, it seems you have the debian 2.6.11 kernel packages,but only locally. You''re getting them from packages.debianbase.de, rather than ftp.debian.de: Get:1 http://packages.debianbase.de ./ kernel-patch-debian-2.6.11 2.6.11-7 [374kB] Get:2 http://packages.debianbase.de ./ kernel-source-2.6.11 2.6.11-7 [36.4MB] I have thought the debian kernel patch somehow patched the 2.6.11 kernel to compile with gcc-3.4. I have just downloaded the 2.6.11 kenel-source and debian patch from you. Will try to build the official debian xen package (2.0.6) from source again. Someone on the list said xen testing (2.0.8) should use kernel 2.6.12. I have just tried and vanilla 2.6.12 compiles on my debian testing. So the next thing to try out will be this one. I have seen you have already a debian package for xen 2.0.7. I guess you have done it yourself, as the official debian package seems to be still at xen version 2.0.6, right? Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Sep-30 12:39 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
On 2005-09-30 14:10, Matus Harvan wrote:> I have thought the debian kernel patch somehow patched the 2.6.11 kernel > to compile with gcc-3.4. I have just downloaded the 2.6.11 kenel-source > and debian patch from you. Will try to build the official debian xen > package (2.0.6) from source again.The debian patch does not seem to help. Same error again. Actually, the debian patches don''t seem to modify the file i8259.c, in which this error shows up. I guess I just ran out of ideas how to get this one to compile on debian testing. Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ralph Passgang
2005-Sep-30 14:08 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
Am Freitag, 30. September 2005 14:10 schrieb Matus Harvan:> On 2005-09-30 12:58, Ralph Passgang wrote: > > Hi, > > > > it seems so that xen 2.0.7 (don''t know about xen-testing or xen-unstable) > > doesn''t compile on debian UNSTABLE (sid) with the errors you saw. Some > > weeks earlier the same xen version compiled without a problem. > > > > I can compile xen 2.0.7 on debian testing (etch) and debian stable > > (sarge) without a problem (same source package). > > Well, I''m getting the same errors on debian testing. Could it be that > you have not updated your debian testing recently or not yet removed > some old packages?No, I don''t believe so. I am running a small but fine build-host with pbuilder and some script to automaticly update & build debian source packages for multiple releases. Each release (woody, sarge, etch, sid) has it''s own build pbuilder image (minimal debian installation), which is automaticly updated once a night. Every build process always starts in a fresh and clean build enviorment. If you want I can also mail you the build log from last night where my xen-2.0.7-2 package was compiled on etch (testing).> At the moment I don''t have a debian stable installation available. > > > Because I build my packages with some scripts on a special build-host I > > have a build-log from xen 2.0.7 on debian unstable: > > > > http://packages.debianbase.de/sid/i386/xen/xen_2.0.7-2.error > > I''m getting the same compile errors. > > >From the build-log, it seems you have the debian 2.6.11 kernel packages, > > but only locally. You''re getting them from packages.debianbase.de, > rather than ftp.debian.de: > Get:1 http://packages.debianbase.de ./ kernel-patch-debian-2.6.11 > 2.6.11-7 [374kB] > Get:2 http://packages.debianbase.de ./ kernel-source-2.6.11 2.6.11-7 > [36.4MB]Yes, the official debian mirrors doesn''t provide any kernel-source-2.6.11 for sarge, etch or sid anymore. I just put an older copy of this kernel in my build-system because the debian xen package still needs this image to correctly compile xen (I haven''t fixed that in the debian package yet). Later in the build process the build script downloads the 2.6.11 kernel from ftp.de.kernel.org and uses this kernel to build xen. So the debian kernel is irrelevant.> I have thought the debian kernel patch somehow patched the 2.6.11 kernel > to compile with gcc-3.4. I have just downloaded the 2.6.11 kenel-source > and debian patch from you. Will try to build the official debian xen > package (2.0.6) from source again. > > Someone on the list said xen testing (2.0.8) should use kernel 2.6.12. I > have just tried and vanilla 2.6.12 compiles on my debian testing. So the > next thing to try out will be this one. > > I have seen you have already a debian package for xen 2.0.7. I guess you > have done it yourself, as the official debian package seems to be still > at xen version 2.0.6, right?Yes, you can use it if you want. For testing use this line in your /etc/apt/sources.list: deb http://packages.debianbase.de/etch/i386/xen ./ It is a normal xen 2.0.7 with two small patches: - a patch for a xm save/restore problem (patch by Ian Pratt (included already in xen-testing) - a oatch which enables the build of sv (xensv) There are NO xen kernel images in these packages, so you have to compile a kernel for dom0 (any maybe domU''s) on yourself. if you want to compile the package yourself (and want to check if this works on your testing host) use this line in your sources.list: deb-src http://packages.debianbase.de/sources/xen ./ (you must have installed the debian kernel-source and kernel-patch-debian for 2.6.11 before compiling) feedback appreciated :) --Ralph> Matus > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Matus Harvan
2005-Sep-30 14:20 UTC
Re: [Xen-users] how to compile a xen kernel (on debian testing)?
On 2005-09-30 16:08, Ralph Passgang wrote:> No, I don''t believe so. I am running a small but fine build-host with pbuilder > and some script to automaticly update & build debian source packages for > multiple releases.Actually, you''re right. I have screwed up /etc/apt/preferences and got a lot of unstable packages. Just trying to downgrade it back to testing. Once this is done, I will try compiling xen again.> Yes, you can use it if you want. > > For testing use this line in your /etc/apt/sources.list: > > deb http://packages.debianbase.de/etch/i386/xen ./ > > It is a normal xen 2.0.7 with two small patches: > - a patch for a xm save/restore problem (patch by Ian Pratt (included already > in xen-testing) > - a oatch which enables the build of sv (xensv) > > There are NO xen kernel images in these packages, so you have to compile a > kernel for dom0 (any maybe domU''s) on yourself. > > if you want to compile the package yourself (and want to check if this works > on your testing host) use this line in your sources.list: > > deb-src http://packages.debianbase.de/sources/xen ./ > (you must have installed the debian kernel-source and kernel-patch-debian for > 2.6.11 before compiling) > > feedback appreciated :)Thanks, will try to compile it myself and give feedback as soon as I''m back at testing. Matus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Badiane Ka
2005-Oct-04 17:14 UTC
re: [Xen-users] how to compile a xen kernel (on debian testing)?
I had a similar problem this morning: {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''m using debian testing, pristine kernel 2.6.11 acquired by doing mkpatches from xen''s source dir. I first relinked gcc to gcc-3.3 from 3.4 since I thought that might have been the problem but the error persisted. So it occured to me to check my version of binutils. I was using Version: 2.16.1cvs20050902-1 so I figured that since it''s newer it might have certain things that have changed, so I downgraded by doing a apt-get -f --reinstall install binutils=2.16.1-2 (as shown by a apt-cache show binutils | more ). After the downgrading I reran the compilation command as per http://wiki.blitzed.org/User:grifferz/Xen and it is still compiling as I''m writing this. I hope that this helps the others who might be having this problem. Badiane HOMO HOMINI LUPUS. __________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users