MikeW
2006-Nov-27 15:33 UTC
[CentOS] Get error msg if try to use kernel makefile / build kernel
Using the new method for building a standalone kernel module (although seems to happen with the traditional way as well) I get "mach_mpspec.h: No such file or directory" Same result if I try to do a kernel 'make'. Subsequently I get MAX_MP_BUSSES and MAX_IRQ_SOURCES undeclared. This should surely work 'out of the box' with Centos ? Any ideas about what's missing ? Thanks, MikeW
MikeW
2006-Nov-27 16:11 UTC
[CentOS] Re: Get error msg if try to use kernel makefile / build kernel
MikeW <mw_phil at ...> writes:> > Using the new method for building a standalone kernel module > (although seems to happen with the traditional way as well) > I get "mach_mpspec.h: No such file or directory" > > Thanks, > MikeW >PS. version is 2.6.9-42.0.3.EL-i686
MikeW
2006-Nov-27 17:06 UTC
[CentOS] Re: Get error msg if try to use kernel makefile / build kernel - fix
MikeW <mw_phil at ...> writes:> > Using the new method for building a standalone kernel module > (although seems to happen with the traditional way as well) > I get "mach_mpspec.h: No such file or directory" > > Same result if I try to do a kernel 'make'. > > Subsequently I get MAX_MP_BUSSES and MAX_IRQ_SOURCES undeclared. > > This should surely work 'out of the box' with Centos ? > > Any ideas about what's missing ? > > Thanks, > MikeW >Sorted it by adding -I$(KERNELDIR)/include/asm-i386/mach-default to my make CFLAGS. Already had KERNELDIR set to /lib/modules/2.6.9-42.0.3.EL/build Even if this isn't the 'correct' fix, it seems to work ... Mike
Johnny Hughes
2006-Nov-28 01:17 UTC
[CentOS] Get error msg if try to use kernel makefile / build kernel
On Mon, 2006-11-27 at 15:33 +0000, MikeW wrote:> Using the new method for building a standalone kernel module > (although seems to happen with the traditional way as well) > I get "mach_mpspec.h: No such file or directory" > > Same result if I try to do a kernel 'make'. > > Subsequently I get MAX_MP_BUSSES and MAX_IRQ_SOURCES undeclared. > > This should surely work 'out of the box' with Centos ? > > Any ideas about what's missing ?You don't like the kernels I build ? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20061127/e34b646d/attachment-0002.sig>
MikeW
2006-Nov-28 10:32 UTC
[CentOS] Re: Get error msg if try to use kernel makefile / build kernel
Johnny Hughes <mailing-lists at ...> writes:> > On Mon, 2006-11-27 at 15:33 +0000, MikeW wrote: > > Using the new method for building a standalone kernel module > > (although seems to happen with the traditional way as well) > > I get "mach_mpspec.h: No such file or directory" > > > > Same result if I try to do a kernel 'make'. > > > > Subsequently I get MAX_MP_BUSSES and MAX_IRQ_SOURCES undeclared. > > > > This should surely work 'out of the box' with Centos ? > > > > Any ideas about what's missing ? > > You don't like the kernels I build ?I have been out of driver development since late 2.4 and was unfamiliar with the 'new' kernel module build procedure, which uses the kernel build makefile ("make -C $(KERNELDIR) M=$(PWD) modules") rather than just doing a gcc on the module with a few extra flags. Hence did not know why I was getting an error in an apparently 'vanilla' build, which I thought should work with just the kernel dir being specified. I could see the file in question existed in another dir, but thought it was not a true 'fix' to just add that path to the include paths. I imagine I am missing something like an ARCH setting or something, but have not seen anything documented about setting this. I also note from Googling that others have had the same error, (not necessarily with Centos, so it's not a distro problem) but suggestions for them usually involved "install kernel source", obviously not required in my case - in any case the headers should suffice. Thanks, MikeW