cly@ubuntu:~桌面beep$makemake-CutuLinux2.6.24utu-Linux2.6.24_for_utu2440_2009-07-18LANGCKB
cly@ubuntu:~/桌面/beep$ make
make -C /utuLinux2.6.24/utu-Linux2.6.24_for_utu2440_2009-07-18 LANG=C KBUILD_VERBOSE=1 SUBDIRS=`pwd` modules
make[1]: 正在进入目录 `/utuLinux2.6.24/utu-Linux2.6.24_for_utu2440_2009-07-18'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/cly/桌面/beep/.tmp_versions ; rm -f /home/cly/桌面/beep/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/cly/桌面/beep
arm-linux-gcc -Wp,-MD,/home/cly/桌面/beep/.beep.o.d -nostdinc -isystem /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -marm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mapcs-32 -mno-thumb-interwork -D__LINUX_ARM_ARCH__=4 -march=armv4t -mtune=arm9tdmi -malignment-traps -msoft-float -Uarm -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(beep)" -D"KBUILD_MODNAME=KBUILD_STR(beep)" -c -o /home/cly/桌面/beep/beep.o /home/cly/桌面/beep/beep.c
In file included from include/asm/system.h:6,
from include/linux/list.h:9,
from include/linux/module.h:9,
from include/linux/miscdevice.h:3,
from /home/cly/桌面/beep/beep.c:11:
include/asm/memory.h:27:29: asm/arch/memory.h: No such file or directory
In file included from include/asm/system.h:6,
from include/linux/list.h:9,
from include/linux/module.h:9,
from include/linux/miscdevice.h:3,
from /home/cly/桌面/beep/beep.c:11:
include/asm/memory.h: In function `virt_to_phys':
include/asm/memory.h:170: error: `PHYS_OFFSET' undeclared (first use in this function)
include/asm/memory.h:170: error: (Each undeclared identifier is reported only once
include/asm/memory.h:170: error: for each function it appears in.)
include/asm/memory.h: In function `phys_to_virt':
include/asm/memory.h:175: error: `PHYS_OFFSET' undeclared (first use in this function)
include/asm/memory.h: In function `virt_to_bus':
include/asm/memory.h:193: error: implicit declaration of function `__virt_to_bus'
include/asm/memory.h: In function `bus_to_virt':
include/asm/memory.h:198: error: implicit declaration of function `__bus_to_virt'
In file included from include/linux/timex.h:188,
from include/linux/jiffies.h:8,
from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/slub_def.h:11,
from include/linux/slab.h:118,
from include/linux/percpu.h:5,
from include/asm-generic/local.h:4,
from include/asm/local.h:1,
from include/linux/module.h:19,
from include/linux/miscdevice.h:3,
from /home/cly/桌面/beep/beep.c:11:
include/asm/timex.h:15:28: asm/arch/timex.h: No such file or directory
In file included from include/linux/ktime.h:25,
from include/linux/timer.h:5,
from include/linux/workqueue.h:8,
from include/linux/slub_def.h:11,
from include/linux/slab.h:118,
from include/linux/percpu.h:5,
from include/asm-generic/local.h:4,
from include/asm/local.h:1,
from include/linux/module.h:19,
from include/linux/miscdevice.h:3,
from /home/cly/桌面/beep/beep.c:11:
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: warning: "CLOCK_TICK_RATE" is not defined
include/linux/jiffies.h:225:31: division by zero in #if
include/linux/jiffies.h:225:31: division by zero in #if
In file included from include/asm/hardirq.h:6,
from include/linux/hardirq.h:7,
from include/asm-generic/local.h:5,
from include/asm/local.h:1,
from include/linux/module.h:19,
from include/linux/miscdevice.h:3,
from /home/cly/桌面/beep/beep.c:11:
include/asm/irq.h:4:27: asm/arch/irqs.h: No such file or directory
In file included from /home/cly/桌面/beep/beep.c:25:
include/asm/io.h:85:25: asm/arch/io.h: No such file or directory
/home/cly/桌面/beep/beep.c:27:32: asm/arch/regs-gpio.h: No such file or directory
/home/cly/桌面/beep/beep.c: In function `beep_ioctl':
/home/cly/桌面/beep/beep.c:50: error: implicit declaration of function `s3c2410_gpio_setpin'
/home/cly/桌面/beep/beep.c:50: error: implicit declaration of function `S3C2410_GPB'
/home/cly/桌面/beep/beep.c: At top level:
/home/cly/桌面/beep/beep.c:58: warning: initialization from incompatible pointer type
make[2]: *** [/home/cly/桌面/beep/beep.o] Error 1
make[1]: *** [_module_/home/cly/桌面/beep] 错误 2
make[1]:正在离开目录 `/utuLinux2.6.24/utu-Linux2.6.24_for_utu2440_2009-07-18'
make: *** [default] 错误 2
cly@ubuntu:~/桌面/beep$
在线跪求答案。。。
2 个解决方案