LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compile error: #error unknown processor family (http://www.linuxquestions.org/questions/linux-newbie-8/compile-error-error-unknown-processor-family-146024/)

kmack2001 02-14-2004 11:52 AM

compile error: #error unknown processor family
 
I am compiling a "hello world" external kernal module on Suse 9.0 kernal 2.4. I am getting the following error:

#error unknown processor family

the following is my make file:

TARGET := hello-1
WARN := -W -Wall
KERNELDIR := /lib/modules/$(shell uname -r)/build
CFLAGS = -D__KERNEL__ -DMODULE -isystem $(KERNELDIR)/include -O2 ${WARN}
CC := gcc

${TARGET}.o: ${TARGET}.c

.PHONY: clean

clean:
rm -rf {TARGET}.o


All times are GMT -5. The time now is 12:32 PM.