Joel Heenan
2006-Jan-21 03:01 UTC
[Xen-users] Xen kernel compilation fails - no such file or directory features.h (but its there)
Hello, The 2.6.12-xenU kernel does not seem to have smbfs support. I couldn''t find the config files for it so maybe I''m missing something obvious, but I read that you need to compile your own kernel to get smbfs support. I''m trying to follow the guide at http://www.debian-administration.org/articles/320 I''ve done exactly as the guide says, except I''ve gone into the Xen menu and turned off Priviledged host and turned off Host access drivers. And I built Ext3 support into the kernel. If I don''t build Ext3 support in the kernel, it compiles fine but I can''t boot. If I try to compile it in, I get the following kernel image I''ve install build-essential and libc6-dev. Features.h definitely exists in /usr/include/ I''m using gcc-3.3 but I''ve also tried gcc-4.0. Obviously I''m missing something obvious, any help would be appreciated. Thanks muchly. Joel exec debian/rules DEBIAN_REVISION=2.6.12.6-xen-smbfs-10.00.Custom APPEND_TO_VERSION=.6-xen-smbfs KPKG_ARCH=xen kernel_image In file included from include/linux/posix_types.h:47, from include/linux/types.h:13, from include/linux/capability.h:16, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/asm/posix_types.h:13:22: features.h: No such file or directory /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/asm/posix_types.h:14:35: no include path in which to find asm/posix_types.h In file included from include/linux/capability.h:16, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/types.h:14:23: asm/types.h: No such file or directory In file included from include/linux/capability.h:16, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/linux/types.h:18: error: syntax error before "__kernel_dev_t" include/linux/types.h:18: warning: type defaults to `int'' in declaration of `__kernel_dev_t'' include/linux/types.h:18: warning: data definition has no type or storage class include/linux/types.h:21: error: syntax error before "dev_t" include/linux/types.h:21: warning: type defaults to `int'' in declaration of `dev_t'' include/linux/types.h:21: warning: data definition has no type or storage class include/linux/types.h:22: error: syntax error before "ino_t" include/linux/types.h:22: warning: type defaults to `int'' in declaration of `ino_t'' include/linux/types.h:22: warning: data definition has no type or storage class include/linux/types.h:23: error: syntax error before "mode_t" include/linux/types.h:23: warning: type defaults to `int'' in declaration of `mode_t'' include/linux/types.h:23: warning: data definition has no type or storage class include/linux/types.h:24: error: syntax error before "nlink_t" include/linux/types.h:24: warning: type defaults to `int'' in declaration of `nlink_t'' include/linux/types.h:24: warning: data definition has no type or storage class include/linux/types.h:25: error: syntax error before "off_t" include/linux/types.h:25: warning: type defaults to `int'' in declaration of `off_t'' include/linux/types.h:25: warning: data definition has no type or storage class include/linux/types.h:26: error: syntax error before "pid_t" include/linux/types.h:26: warning: type defaults to `int'' in declaration of `pid_t'' include/linux/types.h:26: warning: data definition has no type or storage class include/linux/types.h:27: error: syntax error before "daddr_t" include/linux/types.h:27: warning: type defaults to `int'' in declaration of `daddr_t'' include/linux/types.h:27: warning: data definition has no type or storage class include/linux/types.h:29: error: syntax error before "suseconds_t" include/linux/types.h:29: warning: type defaults to `int'' in declaration of `suseconds_t'' include/linux/types.h:29: warning: data definition has no type or storage class include/linux/types.h:30: error: syntax error before "timer_t" include/linux/types.h:30: warning: type defaults to `int'' in declaration of `timer_t'' include/linux/types.h:30: warning: data definition has no type or storage class include/linux/types.h:31: error: syntax error before "clockid_t" include/linux/types.h:31: warning: type defaults to `int'' in declaration of `clockid_t'' include/linux/types.h:31: warning: data definition has no type or storage class include/linux/types.h:35: error: syntax error before "uid_t" include/linux/types.h:35: warning: type defaults to `int'' in declaration of `uid_t'' include/linux/types.h:35: warning: data definition has no type or storage class include/linux/types.h:36: error: syntax error before "gid_t" include/linux/types.h:36: warning: type defaults to `int'' in declaration of `gid_t'' include/linux/types.h:36: warning: data definition has no type or storage class include/linux/types.h:37: error: syntax error before "uid16_t" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ernst Bachmann
2006-Jan-23 13:59 UTC
Re: [Xen-users] Xen kernel compilation fails - no such file or directory features.h (but its there)
On Saturday 21 January 2006 04:01, Joel Heenan wrote:> Hello, > > The 2.6.12-xenU kernel does not seem to have smbfs support. I couldn''t find > the config files for it so maybe I''m missing something obvious, but I read > that you need to compile your own kernel to get smbfs support. > > I''m trying to follow the guide at > > http://www.debian-administration.org/articles/320 > > I''ve done exactly as the guide says, except I''ve gone into the Xen menu and > turned off Priviledged host and turned off Host access drivers. And I built > Ext3 support into the kernel. > > If I don''t build Ext3 support in the kernel, it compiles fine but I can''t > boot. If I try to compile it in, I get the following kernel image > > I''ve install build-essential and libc6-dev. Features.h definitely exists in > /usr/include/ I''m using gcc-3.3 but I''ve also tried gcc-4.0. Obviously I''m > missing something obvious, any help would be appreciated. > > exec debian/rules DEBIAN_REVISION=2.6.12.6-xen-smbfs-10.00.Custom > APPEND_TO_VERSION=.6-xen-smbfs KPKG_ARCH=xen kernel_image > In file included from include/linux/posix_types.h:47, > from include/linux/types.h:13, > from include/linux/capability.h:16, > from include/linux/sched.h:7, > from arch/i386/kernel/asm-offsets.c:7:I don''t know the debian kernel-build system, but seeing ''arch/i386'' there makes me think it completely ignored your KPKG_ARCH=xen setting. /Ernst _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Anand
2006-Jan-25 15:33 UTC
Re: [Xen-users] Xen kernel compilation fails - no such file or directory features.h (but its there)
Not sure about the debian howto, however did you try to just use the following to compile a kernel ? Download xen3.0 and extract it. make install-kernels If you want to compile the xen kernel which packs in more drivers then you need to edit the Makefile. Edit Makefile Change KERNELS ?= linux-2.6-xen0 linux-2.6-xenU to KERNELS ?= linux-2.6-xen make install-kernels This above will help compile the xen kernel and install it for you. Hope this helps. -- regards, Anand _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maybe Matching Threads
- Eicon Diva - problems building new v3 melware driver
- __kernel_timer_t missing
- Zaptel compiling broken: error: conflicting types for '__kernel_dev_t'
- [klibc:time64] time: Use clock_* system calls for time-of-day and sleep
- ARM/Thumb updates and some other minor tweaks