All of lore.kernel.org
 help / color / mirror / Atom feed
* The linux-headers-2.6.26-2-xen-686 can not compile successful
@ 2011-06-16 12:28 Yogi Huang
  2011-06-21 11:38 ` Ian Campbell
  0 siblings, 1 reply; 4+ messages in thread
From: Yogi Huang @ 2011-06-16 12:28 UTC (permalink / raw)
  To: xen-devel


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


Hi all,
I want to get the page table entry by kernel function, and there are only standard headers of my system,then I  install the package "linux-headers-2.6.26-2-xen-686;  linux-headers-2.6.26-2-common-xen " by Synapic.But the gcc compile fail (error: there is no such file), so I use symbolic link (ln -s) to build path under the "/usr/include/...".After add the symbolic link, there are still others problems as following:***/usr/include/linux/memory_hotplug.h:202:32: error: unknown type name ‘u64’/usr/include/linux/gfp.h:182:54: error: unknown type name ‘gfp_t’/usr/include/linux/gfp.h:215:39: error: unknown type name ‘gfp_t’/usr/include/linux/gfp.h:216:38: error: unknown type name ‘gfp_t’In file included from /usr/include/linux/percpu.h:5:0,                 from /usr/include/asm/local.h:4,                 from /usr/include/linux/module.h:19,                 from 0616_3.c:4:/usr/include/linux/slab.h:99:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘krealloc’In file included from /usr/include/linux/slab.h:127:0,                 from /usr/include/linux/percpu.h:5,                 from /usr/include/asm/local.h:4,                 from /usr/include/linux/module.h:19,                 from 0616_3.c:4:...
/usr/include/asm/module.h: At top level:/usr/include/asm/module.h:70:2: error: #error unknown processor familyIn file included from 0616_3.c:7:0:/usr/include/asm/pgtable.h:165:29: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:170:29: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:175:29: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:180:28: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:185:28: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:190:30: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:195:28: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:200:31: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:205:29: error: unknown type name ‘pmd_t’/usr/include/asm/pgtable.h:211:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:211:33: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:216:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:216:31: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:221:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:221:35: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:226:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:226:32: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:231:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:231:33: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:236:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:236:33: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:241:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:241:33: error: unknown type name ‘pte_t’.../usr/include/asm/pgtable.h:271:1: error: unknown type name ‘pteval_t’/usr/include/asm/pgtable.h:273:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:273:52: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:279:1: error: unknown type name ‘pmd_t’/usr/include/asm/pgtable.h:279:52: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:285:1: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:285:32: error: unknown type name ‘pte_t’/usr/include/asm/pgtable.h:285:43: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:301:1: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:301:38: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:301:56: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:315:1: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:316:51: error: unknown type name ‘pgprot_t’/usr/include/asm/pgtable.h:318:51: error: unknown type name ‘pgprot_t’In file included from /usr/include/asm/pgtable.h:359:0,                 from 0616_3.c:7:/usr/include/pgtable_64.h:16:1: error: unknown type name ‘pud_t’/usr/include/pgtable_64.h:17:1: error: unknown type name ‘pud_t’/usr/include/pgtable_64.h:18:1: error: unknown type name ‘pmd_t’/usr/include/pgtable_64.h:19:1: error: unknown type name ‘pgd_t’/usr/include/pgtable_64.h:74:9: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:79:35: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:79:48: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:84:42: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:84:55: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:89:1: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:89:47: error: unknown type name ‘pte_t’/usr/include/pgtable_64.h:102:35: error: unknown type name ‘pmd_t’/usr/include/pgtable_64.h:102:48: error: unknown type name ‘pmd_t’/usr/include/pgtable_64.h:107:37: error: unknown type name ‘pmd_t’/usr/include/pgtable_64.h:112:35: error: unknown type name ‘pud_t’/usr/include/pgtable_64.h:112:48: error: unknown type name ‘pud_t’/usr/include/pgtable_64.h:117:37: error: unknown type name ‘pud_t’/usr/include/pgtable_64.h:122:35: error: unknown type name ‘pgd_t’/usr/include/pgtable_64.h:122:48: error: unknown type name ‘pgd_t’/usr/include/pgtable_64.h:127:37: error: unknown type name ‘pgd_t’/usr/include/pgtable_64.h:154:27: error: unknown type name ‘pgd_t’/usr/include/pgtable_64.h:159:27: error: unknown type name ‘pud_t’/usr/include/pgtable_64.h:164:27: error: unknown type name ‘pmd_t’/usr/include/pgtable_64.h:197:29: error: unknown type name ‘pgd_t’/usr/include/pgtable_64.h:210:29: error: unknown type name ‘pud_t’...***can anyone help?

# uname -aLinux yogi-pc1 2.6.26-2-xen-686 #1 SMP Thu May 13 03:15:21 UTC 2010 i686 GNU/Linux# dpkg -l |grep headerii  comerr-dev                                                2.1-1.41.3-1               common error description library - headers and static lii  libssh2-1-dev                                             0.18-1                     SSH2 client-side library (development headers)ii  libssl-dev                                                   0.9.8g-15+lenny6           SSL development libraries, header files and documentatiii  linux-headers-2.6.26-2-common-xen         2.6.26-26lenny2            Common header files for Linux 2.6.26-2-xenii  linux-headers-2.6.26-2-xen-686                2.6.26-26lenny2            Header files for Linux 2.6.26-2-xen-686ii  linux-libc-dev                                             2.6.26-21lenny4            Linux support headers for userspace development  # ls /usr/ bin  games  include  lib  local  sbin  share  src  X11R6# ls /usr/src/glibc     linux-headers-2.6.26-2-common-xen       linux-headers-2.6.26-2-xen-686        linux-kbuild-2.6.26  rpm

Thanks,Yogi  Huang 
  -chi7396@hotmail.com
                                                                                                                 		 	   		  

--
View this message in context: http://xen.1045712.n5.nabble.com/The-linux-headers-2-6-26-2-xen-686-can-not-compile-successful-tp4494865p4494865.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

[-- Attachment #1.2: Type: text/html, Size: 12168 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] 4+ messages in thread

* Re: The linux-headers-2.6.26-2-xen-686 can not compile successful
  2011-06-16 12:28 The linux-headers-2.6.26-2-xen-686 can not compile successful Yogi Huang
@ 2011-06-21 11:38 ` Ian Campbell
  2011-06-21 12:19   ` Yogi Huang
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2011-06-21 11:38 UTC (permalink / raw)
  To: Yogi Huang; +Cc: xen-devel

On Thu, 2011-06-16 at 13:28 +0100, Yogi Huang wrote:
> Hi all,
> 
> 
> I want to get the page table entry by kernel function, and there are
> only standard headers of my system,
> then I  install the package "linux-headers-2.6.26-2-xen-686;
>  linux-headers-2.6.26-2-common-xen " by Synapic.
> But the gcc compile fail (error: there is no such file), so I use
> symbolic link (ln -s) to build path under the "/usr/include/...".

These headers are provided for the purpose of compiling 3rd party
modules against a specific kernel build. Building a 3rd party module
requires specific build infrastructure scaffolding which you don't seem
to have (presumably because you are not building a kernel module?).

These headers are not for general consumption and you should not expect
to be able to use them apart from building modules for the
2.6.26-2-xen-686 kernel binary.

What are you actually trying to achieve? If you lets us know your goal
perhaps we can offer some advice.

Ian.

> 
> After add the symbolic link, there are still others problems as
> following:
> ***
> /usr/include/linux/memory_hotplug.h:202:32: error: unknown type name
> ‘u64’
> /usr/include/linux/gfp.h:182:54: error: unknown type name ‘gfp_t’
> /usr/include/linux/gfp.h:215:39: error: unknown type name ‘gfp_t’
> /usr/include/linux/gfp.h:216:38: error: unknown type name ‘gfp_t’
> In file included from /usr/include/linux/percpu.h:5:0,
>                  from /usr/include/asm/local.h:4,
>                  from /usr/include/linux/module.h:19,
>                  from 0616_3.c:4:
> /usr/include/linux/slab.h:99:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
> or ‘__attribute__’ before ‘krealloc’
> In file included from /usr/include/linux/slab.h:127:0,
>                  from /usr/include/linux/percpu.h:5,
>                  from /usr/include/asm/local.h:4,
>                  from /usr/include/linux/module.h:19,
>                  from 0616_3.c:4:
> ...
> 
> 
> /usr/include/asm/module.h: At top level:
> /usr/include/asm/module.h:70:2: error: #error unknown processor family
> In file included from 0616_3.c:7:0:
> /usr/include/asm/pgtable.h:165:29: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:170:29: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:175:29: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:180:28: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:185:28: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:190:30: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:195:28: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:200:31: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:205:29: error: unknown type name ‘pmd_t’
> /usr/include/asm/pgtable.h:211:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:211:33: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:216:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:216:31: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:221:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:221:35: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:226:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:226:32: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:231:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:231:33: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:236:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:236:33: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:241:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:241:33: error: unknown type name ‘pte_t’
> ...
> /usr/include/asm/pgtable.h:271:1: error: unknown type name ‘pteval_t’
> /usr/include/asm/pgtable.h:273:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:273:52: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:279:1: error: unknown type name ‘pmd_t’
> /usr/include/asm/pgtable.h:279:52: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:285:1: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:285:32: error: unknown type name ‘pte_t’
> /usr/include/asm/pgtable.h:285:43: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:301:1: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:301:38: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:301:56: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:315:1: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:316:51: error: unknown type name ‘pgprot_t’
> /usr/include/asm/pgtable.h:318:51: error: unknown type name ‘pgprot_t’
> In file included from /usr/include/asm/pgtable.h:359:0,
>                  from 0616_3.c:7:
> /usr/include/pgtable_64.h:16:1: error: unknown type name ‘pud_t’
> /usr/include/pgtable_64.h:17:1: error: unknown type name ‘pud_t’
> /usr/include/pgtable_64.h:18:1: error: unknown type name ‘pmd_t’
> /usr/include/pgtable_64.h:19:1: error: unknown type name ‘pgd_t’
> /usr/include/pgtable_64.h:74:9: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:79:35: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:79:48: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:84:42: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:84:55: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:89:1: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:89:47: error: unknown type name ‘pte_t’
> /usr/include/pgtable_64.h:102:35: error: unknown type name ‘pmd_t’
> /usr/include/pgtable_64.h:102:48: error: unknown type name ‘pmd_t’
> /usr/include/pgtable_64.h:107:37: error: unknown type name ‘pmd_t’
> /usr/include/pgtable_64.h:112:35: error: unknown type name ‘pud_t’
> /usr/include/pgtable_64.h:112:48: error: unknown type name ‘pud_t’
> /usr/include/pgtable_64.h:117:37: error: unknown type name ‘pud_t’
> /usr/include/pgtable_64.h:122:35: error: unknown type name ‘pgd_t’
> /usr/include/pgtable_64.h:122:48: error: unknown type name ‘pgd_t’
> /usr/include/pgtable_64.h:127:37: error: unknown type name ‘pgd_t’
> /usr/include/pgtable_64.h:154:27: error: unknown type name ‘pgd_t’
> /usr/include/pgtable_64.h:159:27: error: unknown type name ‘pud_t’
> /usr/include/pgtable_64.h:164:27: error: unknown type name ‘pmd_t’
> /usr/include/pgtable_64.h:197:29: error: unknown type name ‘pgd_t’
> /usr/include/pgtable_64.h:210:29: error: unknown type name ‘pud_t’
> ...
> ***
> can anyone help?
> 
> 
> 
> 
> # uname -a
> Linux yogi-pc1 2.6.26-2-xen-686 #1 SMP Thu May 13 03:15:21 UTC 2010
> i686 GNU/Linux
> # dpkg -l |grep header
> ii  comerr-dev
>  2.1-1.41.3-1               common error description library - headers
> and static l
> ii  libssh2-1-dev                                             0.18-1
> SSH2 client-side library (development headers)
> ii  libssl-dev
> 0.9.8g-15+lenny6           SSL development libraries, header files and
> documentati
> ii  linux-headers-2.6.26-2-common-xen         2.6.26-26lenny2
>    Common header files for Linux 2.6.26-2-xen
> ii  linux-headers-2.6.26-2-xen-686                2.6.26-26lenny2
>        Header files for Linux 2.6.26-2-xen-686
> ii  linux-libc-dev
> 2.6.26-21lenny4            Linux support headers for userspace
> development
>   
> # ls /usr/ 
> bin  games  include  lib  local  sbin  share  src  X11R6
> # ls /usr/src/
> glibc     linux-headers-2.6.26-2-common-xen
> linux-headers-2.6.26-2-xen-686        linux-kbuild-2.6.26  rpm
> 
> 
> Thanks,
> Yogi  Huang 
> 
>   -[hidden email]
> 
> 
> 
>                                                                                                   
> 
> 
> 
> 
> ______________________________________________________________________
> View this message in context: The linux-headers-2.6.26-2-xen-686 can
> not compile successful
> Sent from the Xen - Dev mailing list archive at Nabble.com.

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

* Re: The linux-headers-2.6.26-2-xen-686 can not compile successful
  2011-06-21 11:38 ` Ian Campbell
@ 2011-06-21 12:19   ` Yogi Huang
  2011-06-21 14:29     ` Ian Campbell
  0 siblings, 1 reply; 4+ messages in thread
From: Yogi Huang @ 2011-06-21 12:19 UTC (permalink / raw)
  To: xen-devel

I am trying to access the value of "dirty page" of "each process" (cause the
"/proc/vmstat" doesn't provide the dirty page of per process), and want to
use another way to dump out the page table entry (pte_t) form the
"task_struck -> mm_struck... ", so that I could get the "pte_dirty()" of
each page, and it's necessary to include the source code (such as
<pgtable.h>,...). 



Thank you,
Yogi.
chi7396@hotmail.com


--
View this message in context: http://xen.1045712.n5.nabble.com/The-linux-headers-2-6-26-2-xen-686-can-not-compile-successful-tp4494865p4510379.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

* Re: Re: The linux-headers-2.6.26-2-xen-686 can not compile successful
  2011-06-21 12:19   ` Yogi Huang
@ 2011-06-21 14:29     ` Ian Campbell
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2011-06-21 14:29 UTC (permalink / raw)
  To: Yogi Huang; +Cc: xen-devel

On Tue, 2011-06-21 at 13:19 +0100, Yogi Huang wrote:
> I am trying to access the value of "dirty page" of "each process" (cause the
> "/proc/vmstat" doesn't provide the dirty page of per process), and want to
> use another way to dump out the page table entry (pte_t) form the
> "task_struck -> mm_struck... ", so that I could get the "pte_dirty()" of
> each page, and it's necessary to include the source code (such as
> <pgtable.h>,...). 

You are writing a kernel patch or are you doing this somehow from
userspace?

If you are doing this in the kernel (presumably therefore as a module)
then you should read the stuff under Documentation/kbuild/ to learn how
to correct write a kernel compatible Makefile.

If you are doing it from userspace then I'm afraid you probably need to
simply write your own datastructures/macros/etc, since pgtable.h won't
be usable to you.

Ian.

> 
> 
> 
> Thank you,
> Yogi.
> chi7396@hotmail.com
> 
> 
> --
> View this message in context: http://xen.1045712.n5.nabble.com/The-linux-headers-2-6-26-2-xen-686-can-not-compile-successful-tp4494865p4510379.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

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

end of thread, other threads:[~2011-06-21 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 12:28 The linux-headers-2.6.26-2-xen-686 can not compile successful Yogi Huang
2011-06-21 11:38 ` Ian Campbell
2011-06-21 12:19   ` Yogi Huang
2011-06-21 14:29     ` Ian Campbell

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.