Shahzad Chohan
2005-Jul-20 09:27 UTC
[Xen-users] Unstable kernel build fails - please help
Hi I''m hoping one of you pro''s can help me. Basically I tried compiling the xen unstable kernel by doing the following: 1) Download xen-unstable 2) Untar xen-unstabel 3) cd xen-unstable 4) Copy kernel config from redhat kernel: cp /usr/src/redhat/SOURCES/kernel-2.6.9-i686.config /root/xen/xen-unstable/linux-2.6-xen-sparse/.config 5) KERNELS=*2.4* make dist Then I get the following error: make[5]: Entering directory `/root/xen/xen-unstable/linux-2.4.30-xenU/crypto'' gcc -D__KERNEL__ -I/root/xen/xen-unstable/linux-2.4.30-xenU/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-unit-at-a-time -nostdinc -iwithprefix include -E -D__GENKSYMS__ api.c | /sbin/genksyms -k 2.4.30 > /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp /bin/sh: /sbin/genksyms: No such file or directory mv /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver gcc -D__KERNEL__ -I/root/xen/xen-unstable/linux-2.4.30-xenU/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-unit-at-a-time -nostdinc -iwithprefix include -E -D__GENKSYMS__ hmac.c | /sbin/genksyms -k 2.4.30 > /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/hmac.ver.tmp /bin/sh: /sbin/genksyms: No such file or directory In file included from /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/spinlock.h:6, from /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/module.h:12, from /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/crypto.h:19, from hmac.c:17: /root/xen/xen-unstable/linux-2.4.30-xenU/include/asm/system.h:8:30: asm/synch_bitops.h: No such file or directory mv /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/hmac.ver.tmp /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/hmac.ver /root/xen/xen-unstable/linux-2.4.30-xenU/scripts/mkdep -D__KERNEL__ -I/root/xen/xen-unstable/linux-2.4.30-xenU/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-unit-at-a-time -nostdinc -iwithprefix include -- aes.c anubis.c api.c arc4.c autoload.c blowfish.c cast5.c cast6.c cipher.c compress.c crypto_null.c deflate.c des.c digest.c hmac.c internal.h khazad.c md4.c md5.c michael_mic.c proc.c scatterwalk.c scatterwalk.h serpent.c sha1.c sha256.c sha512.c tcrypt.c tcrypt.h tea.c twofish.c wp512.c > .depend make[5]: Leaving directory `/root/xen/xen-unstable/linux-2.4.30-xenU/crypto'' make -C arch/xen/kernel fastdep make[5]: Entering directory `/root/xen/xen-unstable/linux-2.4.30-xenU/arch/xen/kernel'' gcc -D__KERNEL__ -I/root/xen/xen-unstable/linux-2.4.30-xenU/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -fno-unit-at-a-time -nostdinc -iwithprefix include -E -D__GENKSYMS__ i386_ksyms.c | /sbin/genksyms -k 2.4.30 > /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/i386_ksyms.ver.tmp In file included from /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/spinlock.h:6, from /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/module.h:12, from i386_ksyms.c:2: /root/xen/xen-unstable/linux-2.4.30-xenU/include/asm/system.h:8:30: asm/synch_bitops.h: No such file or directory /bin/sh: /sbin/genksyms: No such file or directory /root/xen/xen-unstable/linux-2.4.30-xenU/include/asm/system.h:10:28: asm/hypervisor.h: No such file or directory /root/xen/xen-unstable/linux-2.4.30-xenU/include/asm/system.h:11:24: asm/evtchn.h: No such file or directory mv /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/i386_ksyms.ver.tmp /root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/i386_ksyms.ver make[5]: *** No rule to make target `gnttab.c'', needed by `/root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/gnttab.ver''. Stop. make[5]: Leaving directory `/root/xen/xen-unstable/linux-2.4.30-xenU/arch/xen/kernel'' make[4]: *** [_sfdep_arch/xen/kernel] Error 2 make[4]: Leaving directory `/root/xen/xen-unstable/linux-2.4.30-xenU'' make[3]: *** [dep-files] Error 2 make[3]: Leaving directory `/root/xen/xen-unstable/linux-2.4.30-xenU'' make[2]: *** [linux-2.4.30-xenU/include/linux/autoconf.h] Error 2 make[2]: Leaving directory `/root/xen/xen-unstable'' make[1]: *** [linux-2.4-xenU-build] Error 2 make[1]: Leaving directory `/root/xen/xen-unstable'' make: *** [kernels] Error 1 Anyone Have any ideas how I can fix this? Thanks in advance Shaz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote:> Hi > > I''m hoping one of you pro''s can help me. > > Basically I tried compiling the xen unstable kernel by doing the following: > > 1) Download xen-unstable > 2) Untar xen-unstabel > 3) cd xen-unstable > 4) Copy kernel config from redhat kernel: cp > /usr/src/redhat/SOURCES/kernel-2.6.9-i686.config > /root/xen/xen-unstable/linux-2.6-xen-sparse/.config > 5) KERNELS=*2.4* make disti dont see why you copy 2.6 kernel config, then compile 2.4 kernel ?>| /sbin/genksyms -k 2.4.30 > >/root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp >/bin/sh: /sbin/genksyms: No such file or directoryinstall /sbin/genksyms first, then try again regards, aq _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Shahzad Chohan
2005-Jul-20 10:44 UTC
Re: [Xen-users] Unstable kernel build fails - please help
On 7/20/05, aq <aquynh@gmail.com> wrote:> On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote: > > Hi > > > > I''m hoping one of you pro''s can help me. > > > > Basically I tried compiling the xen unstable kernel by doing the following: > > > > 1) Download xen-unstable > > 2) Untar xen-unstabel > > 3) cd xen-unstable > > 4) Copy kernel config from redhat kernel: cp > > /usr/src/redhat/SOURCES/kernel-2.6.9-i686.config > > /root/xen/xen-unstable/linux-2.6-xen-sparse/.config > > 5) KERNELS=*2.4* make dist > > i dont see why you copy 2.6 kernel config, then compile 2.4 kernel ? > > >| /sbin/genksyms -k 2.4.30 > > >/root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp > >/bin/sh: /sbin/genksyms: No such file or directory > > install /sbin/genksyms first, then try again > > > regards, > aq >Hi Thanks for the reply. Basically I wanted the 2.6 xen kernel to have all of the options that the redhat has. Redhat don''t supply the genksyms package, they stopped packaging it in fedora core 3. How can I get round this? Thanks Shaz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote:> On 7/20/05, aq <aquynh@gmail.com> wrote: > > On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote: > > > Hi > > > > > > I''m hoping one of you pro''s can help me. > > > > > > Basically I tried compiling the xen unstable kernel by doing the following: > > > > > > 1) Download xen-unstable > > > 2) Untar xen-unstabel > > > 3) cd xen-unstable > > > 4) Copy kernel config from redhat kernel: cp > > > /usr/src/redhat/SOURCES/kernel-2.6.9-i686.config > > > /root/xen/xen-unstable/linux-2.6-xen-sparse/.config > > > 5) KERNELS=*2.4* make dist > > > > i dont see why you copy 2.6 kernel config, then compile 2.4 kernel ? > > > > >| /sbin/genksyms -k 2.4.30 > > > >/root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp > > >/bin/sh: /sbin/genksyms: No such file or directory > > > > install /sbin/genksyms first, then try again > > > > > > regards, > > aq > > > > Hi Thanks for the reply. Basically I wanted the 2.6 xen kernel to have > all of the options that the redhat has. >then just "make dist". by default, xen will compile 2.6 linux kernel only. so you dont need "KERNEL = ..." when running make.> Redhat don''t supply the genksyms package, they stopped packaging it in > fedora core 3. How can I get round this? >genksyms is for 2.4 kernel based system only. so if you run 2.6, you dont need that. regards, aq _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Shahzad Chohan
2005-Jul-20 11:05 UTC
Re: [Xen-users] Unstable kernel build fails - please help
On 7/20/05, aq <aquynh@gmail.com> wrote:> On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote: > > On 7/20/05, aq <aquynh@gmail.com> wrote: > > > On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote: > > > > Hi > > > > > > > > I''m hoping one of you pro''s can help me. > > > > > > > > Basically I tried compiling the xen unstable kernel by doing the following: > > > > > > > > 1) Download xen-unstable > > > > 2) Untar xen-unstabel > > > > 3) cd xen-unstable > > > > 4) Copy kernel config from redhat kernel: cp > > > > /usr/src/redhat/SOURCES/kernel-2.6.9-i686.config > > > > /root/xen/xen-unstable/linux-2.6-xen-sparse/.config > > > > 5) KERNELS=*2.4* make dist > > > > > > i dont see why you copy 2.6 kernel config, then compile 2.4 kernel ? > > > > > > >| /sbin/genksyms -k 2.4.30 > > > > >/root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp > > > >/bin/sh: /sbin/genksyms: No such file or directory > > > > > > install /sbin/genksyms first, then try again > > > > > > > > > regards, > > > aq > > > > > > > Hi Thanks for the reply. Basically I wanted the 2.6 xen kernel to have > > all of the options that the redhat has. > > > > then just "make dist". by default, xen will compile 2.6 linux kernel > only. so you dont need "KERNEL = ..." when running make. > > > Redhat don''t supply the genksyms package, they stopped packaging it in > > fedora core 3. How can I get round this? > > > > genksyms is for 2.4 kernel based system only. so if you run 2.6, you > dont need that.Hi Would I need to copy the xen-unstable directory to fedora core 1. Then do KERNEL=*2.4* make dist ? Do I need to run "make world" before I do this on fedora core 1? Appreciate your help. Thanks Shaz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote:> On 7/20/05, aq <aquynh@gmail.com> wrote: > > On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote: > > > On 7/20/05, aq <aquynh@gmail.com> wrote: > > > > On 7/20/05, Shahzad Chohan <shahzad.chohan@gmail.com> wrote: > > > > > Hi > > > > > > > > > > I''m hoping one of you pro''s can help me. > > > > > > > > > > Basically I tried compiling the xen unstable kernel by doing the following: > > > > > > > > > > 1) Download xen-unstable > > > > > 2) Untar xen-unstabel > > > > > 3) cd xen-unstable > > > > > 4) Copy kernel config from redhat kernel: cp > > > > > /usr/src/redhat/SOURCES/kernel-2.6.9-i686.config > > > > > /root/xen/xen-unstable/linux-2.6-xen-sparse/.config > > > > > 5) KERNELS=*2.4* make dist > > > > > > > > i dont see why you copy 2.6 kernel config, then compile 2.4 kernel ? > > > > > > > > >| /sbin/genksyms -k 2.4.30 > > > > > >/root/xen/xen-unstable/linux-2.4.30-xenU/include/linux/modules/api.ver.tmp > > > > >/bin/sh: /sbin/genksyms: No such file or directory > > > > > > > > install /sbin/genksyms first, then try again > > > > > > > > > > > > regards, > > > > aq > > > > > > > > > > Hi Thanks for the reply. Basically I wanted the 2.6 xen kernel to have > > > all of the options that the redhat has. > > > > > > > then just "make dist". by default, xen will compile 2.6 linux kernel > > only. so you dont need "KERNEL = ..." when running make. > > > > > Redhat don''t supply the genksyms package, they stopped packaging it in > > > fedora core 3. How can I get round this? > > > > > > > genksyms is for 2.4 kernel based system only. so if you run 2.6, you > > dont need that. > > Hi > > Would I need to copy the xen-unstable directory to fedora core 1. Then > do KERNEL=*2.4* make dist ? Do I need to run "make world" before I do > this on fedora core 1? >FC 1run 2.6 kernel (but you should use the later FC, like FC3 or FC4). so everything you need to do is to *closely follow* the guide in "user manual" found at the homepage of Xen. then you will be OK. regards, aq _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users