Skip to contentSkip to conversation

Xen-3.4-testing build failure

Xen-users Pasi Kärkkäinen 4 participants 6 messages Jan 7, 2010 – Jan 11, 2010 1 message not in the archive Xen hypervisor interface

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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 world

During the "make world" I see the following compile error.
LD drivers/xen/pcifront/built-in.o
CC drivers/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 2

Any pointer on how to fix this.

Thanks in advance.

Kashmira

#2 lore raw
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.
LD drivers/xen/pcifront/built-in.o
CC drivers/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 2

Any 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 *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)
 {
 	return pte_none(*pte) ? 0 : -EBUSY;
#3 lore raw

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 AM

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

During the  "make world" I see the following

compile error.

Quoted 1 line

   LD

drivers/xen/pcifront/built-in.o

Quoted 1 line

   CC

drivers/xen/privcmd/privcmd.o

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

Any pointer on how to fix this.

Patch below - pgtable_t apparently didn't exist in 2.6.18 yet.

Jan

Subject: privcmd: fix build

---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c

2010-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)
{
    return pte_none(*pte) ? 0 : -EBUSY;

#4 lore raw
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
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 AM

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

During the  "make world" I see the following

compile error.

Quoted 1 line

   LD

drivers/xen/pcifront/built-in.o

Quoted 1 line

   CC

drivers/xen/privcmd/privcmd.o

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

Any pointer on how to fix this.

Patch below - pgtable_t apparently didn't exist in 2.6.18 yet.

Jan

Subject: privcmd: fix build

---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c

2010-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)
{
    return pte_none(*pte) ? 0 : -EBUSY;

#5 lore raw

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 PM

Quoted 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

[email protected]

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 world

During the  "make world" I see the

following

Quoted 7 lines
Quoted 7 lines

compile error.

Quoted 1 line

   LD

drivers/xen/pcifront/built-in.o

Quoted 1 line

   CC

drivers/xen/privcmd/privcmd.o

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

Any pointer on how to fix this.

Patch below - pgtable_t apparently didn't exist

in 2.6.18

Quoted 10 lines
Quoted 10 lines

yet.

Jan

Subject: privcmd: fix build

---

head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c

Quoted 3 lines
Quoted 3 lines
2010-01-04 13:32:08.000000000 +0100

+++

head-2010-01-04/drivers/xen/privcmd/privcmd.c

Quoted 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


  #ifndef HAVE_ARCH_PRIVCMD_MMAP
-static int enforce_singleshot_mapping_fn(pte_t

*pte,

Quoted 2 lines
Quoted 2 lines

pgtable_t token,
+static int enforce_singleshot_mapping_fn(pte_t

*pte,

Quoted 12 lines
Quoted 9 lines

struct page *pmd_page,

         unsigned
long addr, void *data)
  {
      return pte_none(*pte) ? 0 : -EBUSY;

#6 lore raw
In reply to Kashmira. K.

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

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

During the  "make world" I see the following

compile error.

Quoted 1 line

   LD

drivers/xen/pcifront/built-in.o

Quoted 1 line

   CC

drivers/xen/privcmd/privcmd.o

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

Any pointer on how to fix this.

Patch below - pgtable_t apparently didn't exist in 2.6.18 yet.

Jan

Subject: privcmd: fix build

---
head-2010-01-04.orig/drivers/xen/privcmd/privcmd.c

2010-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)
{
    return pte_none(*pte) ? 0 : -EBUSY;

Signature · 2 lines
Best regards,
 Sander                            mailto:[email protected]