error unknown processor family

Andrew Carter acarter at syrres.com
Fri Jun 16 17:37:26 CEST 2006


Hi,

I am new to RTAI.  I finally got the latency test to run correctly and tried to compile a simple hello world program.  The compiler seems to have a problem with the line #include <linux/module.h>.  I am running rtai-3-3-cv on a 2.6.11.4 kernel.  Here is the program I am trying and the errors I get:

/* simple.c */

#define __KERNEL__
#define MODULE
#include <linux/kernel.h>
#include <linux/module.h>

int init_module(void)
{
  printk("hello, world!\n"); /* printk = kernel printf, to the console */

  return 0;
}

void cleanup_module(void)
{
  printk("goodbye, world!\n");

  return;
}

/* end of simple.c */

When I compile I get:

Compiling file: simple.c ...
gcc    -c "simple.c" -o "simple.o"
in file included from /usr/include/linux/list.h:7,
            from /usr/include/linux/wait.h:23,
            from /usr/include/asm/semaphore.h:41,
            from /usr/include/linux/sched.h:18,
            from /usr/include/linux/module.h:9,
            from simple.c:6:
/usr/include/linux/prefetch.h: In function 'prefetch_range':
/usr/include/linux/prefetch.h:64: error: 'CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
/usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
/usr/include/linux/prefetch.h:64: error: for each function it appears in.)
In file included from /usr/include/linux/module.h:22,
            from simple.c:
/usr/include/asm/module.h:56:2: #unknown processor family
Completed ... unsuccesful

I can't figure out what is going on.  Any information on how I might remedy this problem would be greatly appreciated.

Thanks in advance,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.rtai.org/pipermail/rtai/attachments/20060616/3c6ea7d3/attachment.htm 


More information about the Rtai mailing list