James Rhett Aultman
2005-Dec-04 17:59 UTC
[Xen-devel] Trouble with dom0 and domU compilation
Xen developers, I''ve been trying to compile the source for xen Linux dom0 and domU kernel images from source, and I''m getting a compile time error I don''t know how to fix: arch/i386/kernel/process.c: In function `cpu_idle'': arch/i386/kernel/process.c:195: error: `cpu'' undeclared (first use in this function) this is for the xen0 and xenU of linux-2.6.12 Advice appreciated -- Rhett. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 4 Dec 2005, at 17:59, James Rhett Aultman wrote:> I''ve been trying to compile the source for xen Linux dom0 and domU > kernel images from source, and I''m getting a compile time error I don''t > know how to fix: > > arch/i386/kernel/process.c: In function `cpu_idle'': > arch/i386/kernel/process.c:195: error: `cpu'' undeclared (first use in > this function) > > this is for the xen0 and xenU of linux-2.6.12 > > Advice appreciatedSpecify ARCH=xen (ARCH=xen make <target>). -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
James Rhett Aultman
2005-Dec-04 21:04 UTC
Re: [Xen-devel] Trouble with dom0 and domU compilation
Keir Fraser wrote:> > On 4 Dec 2005, at 17:59, James Rhett Aultman wrote: > >> I''ve been trying to compile the source for xen Linux dom0 and domU >> kernel images from source, and I''m getting a compile time error I don''t >> know how to fix: >> >> arch/i386/kernel/process.c: In function `cpu_idle'': >> arch/i386/kernel/process.c:195: error: `cpu'' undeclared (first use in >> this function) >> >> this is for the xen0 and xenU of linux-2.6.12 >> >> Advice appreciated > > > Specify ARCH=xen (ARCH=xen make <target>).Hm...that gets around one problem, but now I seem to have another build failure: /bin/sh: line 1: arch//kernel/asm-offsets.s: No such file or directory UPD include/asm-xen/asm_offsets.h Mv: cannot stat `include/asm-xen/asm_offsets.h.tmp'': No such file or directory make: *** [include/asm-xen/asm_offsets.h.tmp] Error 1 -- Rhett. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Did you do a make config of some sort? On 12/4/05, James Rhett Aultman <jaultman@cise.ufl.edu> wrote:> > Keir Fraser wrote: > > > > > On 4 Dec 2005, at 17:59, James Rhett Aultman wrote: > > > >> I've been trying to compile the source for xen Linux dom0 and domU > >> kernel images from source, and I'm getting a compile time error I don't > >> know how to fix: > >> > >> arch/i386/kernel/process.c: In function `cpu_idle': > >> arch/i386/kernel/process.c:195: error: `cpu' undeclared (first use in > >> this function) > >> > >> this is for the xen0 and xenU of linux-2.6.12 > >> > >> Advice appreciated > > > > > > Specify ARCH=xen (ARCH=xen make <target>). > > > Hm...that gets around one problem, but now I seem to have another build > failure: > > /bin/sh: line 1: arch//kernel/asm-offsets.s: No such file or directory > UPD include/asm-xen/asm_offsets.h > Mv: cannot stat `include/asm-xen/asm_offsets.h.tmp': No such file or > directory > make: *** [include/asm-xen/asm_offsets.h.tmp] Error 1 > > -- > Rhett. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
James Rhett Aultman
2005-Dec-04 22:23 UTC
Re: [Xen-devel] Trouble with dom0 and domU compilation
Actually, yes. When I saw the build error over "cpu", I ran a make menuconfig to remove SMP support. Kip Macy wrote:> Did you do a make config of some sort? > > On 12/4/05, *James Rhett Aultman* <jaultman@cise.ufl.edu > <mailto:jaultman@cise.ufl.edu>> wrote: > > Keir Fraser wrote: > > > > > On 4 Dec 2005, at 17:59, James Rhett Aultman wrote: > > > >> I''ve been trying to compile the source for xen Linux dom0 and domU > >> kernel images from source, and I''m getting a compile time error > I don''t > >> know how to fix: > >> > >> arch/i386/kernel/process.c: In function `cpu_idle'': > >> arch/i386/kernel/process.c:195: error: `cpu'' undeclared (first > use in > >> this function) > >> > >> this is for the xen0 and xenU of linux-2.6.12 > >> > >> Advice appreciated > > > > > > Specify ARCH=xen (ARCH=xen make <target>). > > > Hm...that gets around one problem, but now I seem to have another > build > failure: > > /bin/sh: line 1: arch//kernel/asm-offsets.s: No such file or > directory > UPD include/asm-xen/asm_offsets.h > Mv: cannot stat `include/asm-xen/asm_offsets.h.tmp'': No such file or > directory > make: *** [include/asm-xen/asm_offsets.h.tmp] Error 1 > > -- > Rhett. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com <mailto:Xen-devel@lists.xensource.com> > http://lists.xensource.com/xen-devel > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I would just start over with a fresh "make world". If you have local options you want add them to the defconfig in the sparse tree beforehand. -Kip On 12/4/05, James Rhett Aultman <jaultman@cise.ufl.edu> wrote:> > Actually, yes. When I saw the build error over "cpu", I ran a make > menuconfig to remove SMP support. > > Kip Macy wrote: > > > Did you do a make config of some sort? > > > > On 12/4/05, *James Rhett Aultman* <jaultman@cise.ufl.edu > > <mailto:jaultman@cise.ufl.edu>> wrote: > > > > Keir Fraser wrote: > > > > > > > > On 4 Dec 2005, at 17:59, James Rhett Aultman wrote: > > > > > >> I've been trying to compile the source for xen Linux dom0 and > domU > > >> kernel images from source, and I'm getting a compile time error > > I don't > > >> know how to fix: > > >> > > >> arch/i386/kernel/process.c: In function `cpu_idle': > > >> arch/i386/kernel/process.c:195: error: `cpu' undeclared (first > > use in > > >> this function) > > >> > > >> this is for the xen0 and xenU of linux-2.6.12 > > >> > > >> Advice appreciated > > > > > > > > > Specify ARCH=xen (ARCH=xen make <target>). > > > > > > Hm...that gets around one problem, but now I seem to have another > > build > > failure: > > > > /bin/sh: line 1: arch//kernel/asm-offsets.s: No such file or > > directory > > UPD include/asm-xen/asm_offsets.h > > Mv: cannot stat `include/asm-xen/asm_offsets.h.tmp': No such file or > > directory > > make: *** [include/asm-xen/asm_offsets.h.tmp] Error 1 > > > > -- > > Rhett. > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com <mailto:Xen-devel@lists.xensource.com> > > http://lists.xensource.com/xen-devel > > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Kip Macy <kip.macy@gmail.com> wrote:> [-- multipart/alternative, encoding 7bit, 2 lines --] > > [-- text/plain, encoding base64, charset: UTF-8, 33 lines --] > > I would just start over with a fresh "make world". If you have local options > you want add them to the defconfig in the sparse tree beforehand.I saw similar problems after accidently runing make with the prevailing arch (i386) instead of ARCH=xen. Blowing everything away and running make world resolved the problem as you suggest. I lost interest in trying to track down how the build might be made less fragile. -- Horms _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel