All of lore.kernel.org
 help / color / mirror / Atom feed
* Trouble with dom0 and domU compilation
@ 2005-12-04 17:59 James Rhett Aultman
  2005-12-04 20:04 ` Keir Fraser
  0 siblings, 1 reply; 7+ messages in thread
From: James Rhett Aultman @ 2005-12-04 17:59 UTC (permalink / raw)
  To: xen-devel

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with dom0 and domU compilation
  2005-12-04 17:59 Trouble with dom0 and domU compilation James Rhett Aultman
@ 2005-12-04 20:04 ` Keir Fraser
  2005-12-04 21:04   ` James Rhett Aultman
  0 siblings, 1 reply; 7+ messages in thread
From: Keir Fraser @ 2005-12-04 20:04 UTC (permalink / raw)
  To: James Rhett Aultman; +Cc: 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 appreciated

Specify ARCH=xen (ARCH=xen make <target>).

  -- Keir

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with dom0 and domU compilation
  2005-12-04 20:04 ` Keir Fraser
@ 2005-12-04 21:04   ` James Rhett Aultman
  2005-12-04 22:09     ` Kip Macy
  0 siblings, 1 reply; 7+ messages in thread
From: James Rhett Aultman @ 2005-12-04 21:04 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with dom0 and domU compilation
  2005-12-04 21:04   ` James Rhett Aultman
@ 2005-12-04 22:09     ` Kip Macy
  2005-12-04 22:23       ` James Rhett Aultman
  0 siblings, 1 reply; 7+ messages in thread
From: Kip Macy @ 2005-12-04 22:09 UTC (permalink / raw)
  To: James Rhett Aultman; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1169 bytes --]

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
>

[-- Attachment #1.2: Type: text/html, Size: 1704 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with dom0 and domU compilation
  2005-12-04 22:09     ` Kip Macy
@ 2005-12-04 22:23       ` James Rhett Aultman
  2005-12-04 23:45         ` Kip Macy
  0 siblings, 1 reply; 7+ messages in thread
From: James Rhett Aultman @ 2005-12-04 22:23 UTC (permalink / raw)
  To: Kip Macy; +Cc: xen-devel

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
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with dom0 and domU compilation
  2005-12-04 22:23       ` James Rhett Aultman
@ 2005-12-04 23:45         ` Kip Macy
  2005-12-05  1:44           ` Horms
  0 siblings, 1 reply; 7+ messages in thread
From: Kip Macy @ 2005-12-04 23:45 UTC (permalink / raw)
  To: James Rhett Aultman; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1855 bytes --]

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
> >
> >
>
>

[-- Attachment #1.2: Type: text/html, Size: 3497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Trouble with dom0 and domU compilation
  2005-12-04 23:45         ` Kip Macy
@ 2005-12-05  1:44           ` Horms
  0 siblings, 0 replies; 7+ messages in thread
From: Horms @ 2005-12-05  1:44 UTC (permalink / raw)
  To: 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-12-05  1:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-04 17:59 Trouble with dom0 and domU compilation James Rhett Aultman
2005-12-04 20:04 ` Keir Fraser
2005-12-04 21:04   ` James Rhett Aultman
2005-12-04 22:09     ` Kip Macy
2005-12-04 22:23       ` James Rhett Aultman
2005-12-04 23:45         ` Kip Macy
2005-12-05  1:44           ` Horms

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.