Xen-3.4-testing build failure
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello,
Forwarding to xen-devel..
Quoted 28 lines · Kashmira. K.
Hello Xen users
I am trying to do a Xen cable linux build and am seeing a build failures.
I did
- hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
- cd xen-3.4-testing
- make worldDuring the "make world" I see the following compile error.
LDdrivers/xen/pcifront/built-in.o
CCdrivers/xen/privcmd/privcmd.o/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 37: error: expected declaration specifiers or �?...�?? before �?pgtable_t�??/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: In function �?enforce_singleshot_mapping�??:/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 48: warning: passing argument 4 of �?apply_to_page_range�?? from incompatible point er type make[9]: *** [drivers/xen/privcmd/privcmd.o] Error 1
make[8]: *** [drivers/xen/privcmd] Error 2
make[7]: *** [drivers/xen] Error 2
make[6]: *** [drivers] Error 2
make[5]: *** [vmlinuz] Error 2
make[4]: *** [vmlinuz] Error 2Any pointer on how to fix this.
Thanks in advance.
Kashmira
Quoted 9 lines · Kashmira. K.
Hello Xen users
I am trying to do a Xen cable linux build and am seeing a build failures.
I did
- hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
- cd xen-3.4-testing
- make world
Quoted 4 lines
During the "make world" I see the following compile error.
LDdrivers/xen/pcifront/built-in.o
CCdrivers/xen/privcmd/privcmd.o/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 37: error: expected declaration
specifiers or �?...�?? before �?pgtable_t�??
Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: In function
�?enforce_singleshot_mapping�??:
Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c: 48: warning: passing argument 4 of
�?apply_to_page_range�?? from incompatible point er type
Quoted 8 lines
make[9]: *** [
drivers/xen/privcmd/privcmd.o] Error 1 make[8]: *** [drivers/xen/privcmd] Error 2 make[7]: *** [drivers/xen] Error 2
make[6]: *** [drivers] Error 2
make[5]: *** [vmlinuz] Error 2
make[4]: *** [vmlinuz] Error 2Any pointer on how to fix this.
Patch below - pgtable_t apparently didn't exist in 2.6.18 yet.
Jan
Subject: privcmd: fix build
drivers/xen/privcmd/privcmd.c +1 -1
@@ -34,7 +34,7 @@ static struct proc_dir_entry *capabilitistatic struct proc_dir_entry *capabilities_intf;#ifndef HAVE_ARCH_PRIVCMD_MMAP -static int enforce_singleshot_mapping_fn (pte_t *pte,pgtable_t token, +static int enforce_singleshot_mapping_fn (pte_t *pte,struct page *pmd_page,unsigned long addr,void *data) {return pte_none (*pte) ?0 : -EBUSY ;
Hi Jan,
I patch this change manually and restart "make world". It does not work. "make world" pulls the 2.6.18 tree again overwriting the changes.
Thanks
Kashmira
Quoted 77 lines · Jan Beulich
From: Jan Beulich <[email protected]>
Subject: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
To: "Pasi Kärkkäinen" <[email protected]>, "Kashmira. K." <[email protected]>
Cc: [email protected], [email protected]
Date: Thursday, January 7, 2010, 12:15 AMQuoted 3 lines · Kashmira. K.
Hello Xen users
I am trying to do a Xen cable linux build and am
seeing a build failures.
Quoted 7 lines
I did
- hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
- cd xen-3.4-testing
- make worldDuring the "make world" I see the following
compile error.
Quoted 1 line
LD
drivers/xen/pcifront/built-in.oQuoted 1 line
CC
drivers/xen/privcmd/privcmd.oQuoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
37: error: expected declaration
specifiers or �?...�?? before
�?pgtable_t�??Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
In function
�?enforce_singleshot_mapping�??:Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
48: warning: passing argument 4 of
�?apply_to_page_range�?? from incompatible point
er typeQuoted 8 lines
make[9]: *** [
drivers/xen/privcmd/privcmd.o] Error 1 make[8]: *** [drivers/xen/privcmd] Error 2 make[7]: *** [drivers/xen] Error 2
make[6]: *** [drivers] Error 2
make[5]: *** [vmlinuz] Error 2
make[4]: *** [vmlinuz] Error 2Any pointer on how to fix this.
Patch below -
pgtable_tapparently didn't exist in 2.6.18 yet.Jan
Subject: privcmd: fix build
Signed-off-by Jan Beulich <[email protected]>---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c2010-01-04 13:32:08.000000000 +0100 +++ head-2010-01-04/drivers/xen/privcmd/privcmd.c 2010-01-05 11:21:42.000000000 +0100(quoted diff) +1
-1@@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti static struct proc_dir_entry *capabilities_intf; #ifndef HAVE_ARCH_PRIVCMD_MMAP -static int enforce_singleshot_mapping_fn(pte_t *pte, pgtable_t token, +static int enforce_singleshot_mapping_fn(pte_t *pte, struct page *pmd_page,unsigned
long addr, void *data)
{
returnpte_none(*pte)? 0 :-EBUSY;
Quoted 4 lines · Kashmira. K.
Hi Jan,
I patch this change manually and restart "make world". It does not work. "make world" pulls the 2.6.18 tree again overwriting the changes.
You can always pull the 2.6.18-xen tree manually, and compile it separately from Xen.
hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg
-- Pasi
Quoted 85 lines
Thanks
KashmiraQuoted 77 lines · Jan Beulich
From: Jan Beulich <[email protected]>
Subject: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
To: "Pasi Kärkkäinen" <[email protected]>, "Kashmira. K." <[email protected]>
Cc: [email protected], [email protected]
Date: Thursday, January 7, 2010, 12:15 AMQuoted 3 lines · Kashmira. K.
Hello Xen users
I am trying to do a Xen cable linux build and am
seeing a build failures.
Quoted 7 lines
I did
- hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
- cd xen-3.4-testing
- make worldDuring the "make world" I see the following
compile error.
Quoted 1 line
LD
drivers/xen/pcifront/built-in.oQuoted 1 line
CC
drivers/xen/privcmd/privcmd.oQuoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
37: error: expected declaration
specifiers or �?...�?? before
�?pgtable_t�??Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
In function
�?enforce_singleshot_mapping�??:Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
48: warning: passing argument 4 of
�?apply_to_page_range�?? from incompatible point
er typeQuoted 8 lines
make[9]: *** [
drivers/xen/privcmd/privcmd.o] Error 1 make[8]: *** [drivers/xen/privcmd] Error 2 make[7]: *** [drivers/xen] Error 2
make[6]: *** [drivers] Error 2
make[5]: *** [vmlinuz] Error 2
make[4]: *** [vmlinuz] Error 2Any pointer on how to fix this.
Patch below -
pgtable_tapparently didn't exist in 2.6.18 yet.Jan
Subject: privcmd: fix build
Signed-off-by Jan Beulich <[email protected]>---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c2010-01-04 13:32:08.000000000 +0100 +++ head-2010-01-04/drivers/xen/privcmd/privcmd.c 2010-01-05 11:21:42.000000000 +0100(quoted diff) +1
-1@@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti static struct proc_dir_entry *capabilities_intf; #ifndef HAVE_ARCH_PRIVCMD_MMAP -static int enforce_singleshot_mapping_fn(pte_t *pte, pgtable_t token, +static int enforce_singleshot_mapping_fn(pte_t *pte, struct page *pmd_page,unsigned
long addr, void *data)
{
returnpte_none(*pte)? 0 :-EBUSY;
Thanks Pasi,
That worked for me. I could apply the patch and build linux, and then separately built xen.
-Kashmira
Quoted 126 lines · Pasi Kärkkäinen
From: Pasi Kärkkäinen <[email protected]>
Subject: Re: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
To: "Kashmira. K." <[email protected]>
Cc: "Jan Beulich" <[email protected]>, [email protected], [email protected]
Date: Thursday, January 7, 2010, 1:00 PMQuoted 3 lines · Kashmira. K.
Hi Jan,
I patch this change manually and restart "make world".
It does not work. "make world" pulls the 2.6.18 tree again overwriting the changes.
Quoted 1 line
You can always pull the 2.6.18-xen tree manually, and compile it
separately from Xen.hg clone http://xenbits.xen.org/linux-2.6.18-xen.hg
-- Pasi
Quoted 4 lines
Thanks
Kashmira--- On Thu, 1/7/10, Jan Beulich <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
From: Jan Beulich <[email protected]>
Subject: [Xen-devel] Re: [Xen-users]Xen-3.4-testing build failure
Quoted 1 line
Quoted 1 line
To: "Pasi Kärkkäinen" <[email protected]>,
"Kashmira. K." <[email protected]>
Quoted 1 line
Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Date: Thursday, January 7, 2010, 12:15 AM
Quoted 3 lines · Kashmira. K.
Hello Xen users
I am trying to do a Xen cable linux build
and am
Quoted 8 lines
Quoted 8 lines
seeing a build failures.
Quoted 7 lines
I did
- hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
- cd xen-3.4-testing
- make worldDuring the "make world" I see the
following
Quoted 7 lines
Quoted 7 lines
compile error.
Quoted 1 line
LD
drivers/xen/pcifront/built-in.oQuoted 1 line
CC
drivers/xen/privcmd/privcmd.oQuoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:Quoted 5 lines
Quoted 5 lines
37: error: expected declaration specifiers or �?...�?? before �?pgtable_t�??
Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:Quoted 4 lines
Quoted 4 lines
In function �?enforce_singleshot_mapping�??:
Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:Quoted 2 lines
Quoted 2 lines
48: warning: passing argument 4 of �?apply_to_page_range�?? from
incompatible point
Quoted 2 lines
Quoted 2 lines
er type
Quoted 1 line
make[9]: *** [
drivers/xen/privcmd/privcmd.o]Error 1
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines
make[8]: *** [
drivers/xen/privcmd] Error 2 make[7]: *** [drivers/xen] Error 2 make[6]: *** [drivers] Error 2 make[5]: *** [vmlinuz] Error 2 make[4]: *** [vmlinuz] Error 2Any pointer on how to fix this.
Patch below -
pgtable_tapparently didn't existin 2.6.18
Quoted 10 lines
Quoted 10 lines
yet.
Jan
Subject: privcmd: fix build
Signed-off-by Jan Beulich <[email protected]>---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.cQuoted 3 lines
Quoted 3 lines
2010-01-04 13:32:08.000000000 +0100+++
head-2010-01-04/drivers/xen/privcmd/privcmd.cQuoted 2 lines
Review static struct proc_dir_entry
Quoted 2 lines
2010-01-05 11:21:42.000000000 +0100(quoted diff) +0
-0@@ -34,7 +34,7 @@ static struct proc_dir_entry*capabiliti
Quoted 1 line
Quoted 1 line
static struct
proc_dir_entry
*capabilities_intf;Quoted 3 lines
Quoted 3 lines
#ifndefHAVE_ARCH_PRIVCMD_MMAP
-static int enforce_singleshot_mapping_fn(pte_t*pte,
Quoted 2 lines
Quoted 2 lines
pgtable_ttoken,
+static int enforce_singleshot_mapping_fn(pte_t*pte,
Quoted 12 lines
Quoted 9 lines
struct page
*pmd_page,
unsigned
long addr, void *data)
{
returnpte_none(*pte)? 0 :-EBUSY;
Hello Kashmira.,
There are other build targets, you could use "make linux-2.6-xen-build" and "make linux-2.6-xen-install" for example to only rebuild and install a the xen 2.6.18 kernel (usable as dom0 and domU) It uses the source in your local copy "linux-2.6.18-xen.hg" or if not available create that one first.
--
Sander
Quoted 89 lines · you
Hi Jan,
I patch this change manually and restart "make world". It does not work. "make world" pulls the 2.6.18 tree again overwriting the changes.
Thanks
KashmiraQuoted 77 lines · Jan Beulich
From: Jan Beulich <[email protected]>
Subject: [Xen-devel] Re: [Xen-users] Xen-3.4-testing build failure
To: "Pasi Kärkkäinen" <[email protected]>, "Kashmira. K." <[email protected]>
Cc: [email protected], [email protected]
Date: Thursday, January 7, 2010, 12:15 AMQuoted 3 lines · Kashmira. K.
Hello Xen users
I am trying to do a Xen cable linux build and am
seeing a build failures.
Quoted 7 lines
I did
- hg clone http://xenbits.xensource.com/xen-3.4-testing.hg
- cd xen-3.4-testing
- make worldDuring the "make world" I see the following
compile error.
Quoted 1 line
LD
drivers/xen/pcifront/built-in.oQuoted 1 line
CC
drivers/xen/privcmd/privcmd.oQuoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
37: error: expected declaration
specifiers or �?...�?? before
�?pgtable_t�??Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
In function
�?enforce_singleshot_mapping�??:Quoted 1 line
/root/work/xen-3.4-testing.hg/linux-2.6.18-xen.hg/drivers/xen/privcmd/privcmd.c:
48: warning: passing argument 4 of
�?apply_to_page_range�?? from incompatible point
er typeQuoted 8 lines
make[9]: *** [
drivers/xen/privcmd/privcmd.o] Error 1 make[8]: *** [drivers/xen/privcmd] Error 2 make[7]: *** [drivers/xen] Error 2
make[6]: *** [drivers] Error 2
make[5]: *** [vmlinuz] Error 2
make[4]: *** [vmlinuz] Error 2Any pointer on how to fix this.
Patch below -
pgtable_tapparently didn't exist in 2.6.18 yet.Jan
Subject: privcmd: fix build
Signed-off-by Jan Beulich <[email protected]>---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c2010-01-04 13:32:08.000000000 +0100 +++ head-2010-01-04/drivers/xen/privcmd/privcmd.c 2010-01-05 11:21:42.000000000 +0100(quoted diff) +1
-1@@ -34,7 +34,7 @@ static struct proc_dir_entry *capabiliti static struct proc_dir_entry *capabilities_intf; #ifndef HAVE_ARCH_PRIVCMD_MMAP -static int enforce_singleshot_mapping_fn(pte_t *pte, pgtable_t token, +static int enforce_singleshot_mapping_fn(pte_t *pte, struct page *pmd_page,unsigned
long addr, void *data)
{
returnpte_none(*pte)? 0 :-EBUSY;
Signature · 2 lines
Best regards, Sander mailto:[email protected]