error unknown processor family

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


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 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");


/* 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,
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Rtai mailing list