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.
Quoted 11 lines · James Rhett Aultman
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>).
-- Keir
Quoted 11 lines · Keir Fraser
Quoted 8 lines · James Rhett Aultman
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)
Quoted 6 lines
Quoted 3 lines
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.
Did you do a make config of some sort?
Quoted 31 lines · James Rhett Aultman
Quoted 11 lines · Keir Fraser
Quoted 8 lines · James Rhett Aultman
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)Quoted 6 lines
Quoted 3 lines
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
UPDinclude/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
Quoted 8 lines
--
Rhett._______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Actually, yes. When I saw the build error over "cpu", I ran a make menuconfig to remove SMP support.
Quoted 48 lines · Kip Macy
Did you do a make config of some sort?
On 12/4/05, *James Rhett Aultman* <[email protected] <mailto:[email protected]>> 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
UPDinclude/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
[email protected] <mailto:[email protected]>
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
Quoted 11 lines · James Rhett Aultman
Actually, yes. When I saw the build error over "cpu", I ran a make menuconfig to remove SMP support.
Quoted 5 lines · Kip Macy
Did you do a make config of some sort?
On 12/4/05, *James Rhett Aultman* <[email protected] <mailto:[email protected]>> wrote:
Quoted 46 lines
Quoted 6 lines
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 anddomU
Quoted 37 lines
Quoted 1 line
Quoted 1 line
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
UPDinclude/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
[email protected] <mailto:[email protected]>
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 6 lines · Kip Macy
[-- 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.
Signature · 1 line
Horms