LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 560|回复: 0

求助:FFT的7202嵌入式Linux内核编译问题

[复制链接]
发表于 2006-10-15 10:18:24 | 显示全部楼层 |阅读模式
问题:

a.FFT交叉编译环境建好后,不进行任何改动,直接make没有错误,但无法在当前目录下看到新生成的内核文件?

b. 怀疑是没有进行make dep, 但进行了dep后,make就出现了错误?此时make dep还可以正常执行!

c. 有使用make menuconfig, 调出菜单后,不进行任何更改,只是推出时选择保存,但再进行编译时

make 和make dep都出现了错误!!!!!!!!!!!!!!!!!!!!



具体的编译信息如下:

[root@localhost /]# ls
bin   dev  home    lib         media  mnt      opt   root  selinux  sys       tmp  var
boot  etc  initrd  lost+found  misc   my_data  proc  sbin  srv      tftpboot  usr
[root@localhost /]# chroot /home/HLDK /x86/sbin/login

localhost.localdomain login: hms720
Password:

Welcome to HEI720 ARM7 Linux Development Kit
Hyundai Electronics Ltd.

hms720[1]# ls
Application/  CrossTools/  LinuxHEI720/  myHello.c*
hms720[2]# cd LinuxHEI720
hms720[3]# ls
Boot/  linux/  src/
hms720[4]# cd linux
hms720[5]# ls
COPYING*        MAINTAINERS*   README*          arch/     include/  kernel/  net/
CREDITS*        Makefile*      REPORTING-BUGS*  drivers/  init/     lib/     scripts/
Documentation/  Makefile.org*  Rules.make*      fs/       ipc/      mm/
hms720[6]# make dep
rm -f include/asm-arm/arch include/asm-arm/proc
(cd include/asm-arm; ln -sf arch-h7202 arch; ln -sf proc-armv proc)
make[1]: Entering directory `/home/hms720/LinuxHEI720/linux/arch/arm/tools'
/home/hms720/LinuxHEI720/linux/scripts/mkdep -D__KERNEL__ -I/home/hms720/LinuxHEI720/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float  -- getconstants.c |\
sed s,getconstants.o,constants.h, > .depend
make all
make[2]: Entering directory `/home/hms720/LinuxHEI720/linux/arch/arm/tools'
arm-linux-gcc -D__KERNEL__ -I/home/hms720/LinuxHEI720/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float -S -o constants.h.tmp.1 getconstants.c
In file included from /home/hms720/LinuxHEI720/linux/include/asm/semaphore.h:10,
                 from /home/hms720/LinuxHEI720/linux/include/linux/fs.h:200,
                 from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:25: asm/rwsem.h: No such file or directory
In file included from /home/hms720/LinuxHEI720/linux/include/asm/semaphore.h:10,
                 from /home/hms720/LinuxHEI720/linux/include/linux/fs.h:200,
                 from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `down_read':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:44: warning: implicit declaration of function `__down_read'
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `down_write':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:54: warning: implicit declaration of function `__down_write'
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `up_read':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:64: warning: implicit declaration of function `__up_read'
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `up_write':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:74: warning: implicit declaration of function `__up_write'In file included from /home/hms720/LinuxHEI720/linux/include/linux/fs.h:293,
                 from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/hms720/LinuxHEI720/linux/include/linux/ext3_fs_i.h: At top level:
/home/hms720/LinuxHEI720/linux/include/linux/ext3_fs_i.h:75: field `truncate_sem' has incomplete type
In file included from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from getconstants.c:11:
/home/hms720/LinuxHEI720/linux/include/linux/fs.h:713: field `s_umount' has incomplete type
In file included from getconstants.c:11:
/home/hms720/LinuxHEI720/linux/include/linux/sched.h:212: field `mmap_sem' has incomplete type
make[2]: *** [constants.h] Error 1
make[2]: Leaving directory `/home/hms720/LinuxHEI720/linux/arch/arm/tools'
make[1]: *** [dep] Error 2
make[1]: Leaving directory `/home/hms720/LinuxHEI720/linux/arch/arm/tools'
make: *** [archdep] Error 2
hms720[7]# make
arm-linux-gcc -D__KERNEL__ -I/home/hms720/LinuxHEI720/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2  -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm7tdmi -mshort-load-bytes -msoft-float   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /home/hms720/LinuxHEI720/linux/include/asm/semaphore.h:10,
                 from /home/hms720/LinuxHEI720/linux/include/linux/fs.h:200,
                 from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from /home/hms720/LinuxHEI720/linux/include/linux/mm.h:4,
                 from /home/hms720/LinuxHEI720/linux/include/linux/slab.h:14,
                 from /home/hms720/LinuxHEI720/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:25: asm/rwsem.h: No such file or directory
In file included from /home/hms720/LinuxHEI720/linux/include/asm/semaphore.h:10,
                 from /home/hms720/LinuxHEI720/linux/include/linux/fs.h:200,
                 from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from /home/hms720/LinuxHEI720/linux/include/linux/mm.h:4,
                 from /home/hms720/LinuxHEI720/linux/include/linux/slab.h:14,
                 from /home/hms720/LinuxHEI720/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `down_read':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:44: warning: implicit declaration of function `__down_read'
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `down_write':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:54: warning: implicit declaration of function `__down_write'
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `up_read':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:64: warning: implicit declaration of function `__up_read'
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h: In function `up_write':
/home/hms720/LinuxHEI720/linux/include/linux/rwsem.h:74: warning: implicit declaration of function `__up_write'In file included from /home/hms720/LinuxHEI720/linux/include/linux/fs.h:293,
                 from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from /home/hms720/LinuxHEI720/linux/include/linux/mm.h:4,
                 from /home/hms720/LinuxHEI720/linux/include/linux/slab.h:14,
                 from /home/hms720/LinuxHEI720/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/home/hms720/LinuxHEI720/linux/include/linux/ext3_fs_i.h: At top level:
/home/hms720/LinuxHEI720/linux/include/linux/ext3_fs_i.h:75: field `truncate_sem' has incomplete type
In file included from /home/hms720/LinuxHEI720/linux/include/linux/capability.h:17,
                 from /home/hms720/LinuxHEI720/linux/include/linux/binfmts.h:5,
                 from /home/hms720/LinuxHEI720/linux/include/linux/sched.h:9,
                 from /home/hms720/LinuxHEI720/linux/include/linux/mm.h:4,
                 from /home/hms720/LinuxHEI720/linux/include/linux/slab.h:14,
                 from /home/hms720/LinuxHEI720/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/home/hms720/LinuxHEI720/linux/include/linux/fs.h:713: field `s_umount' has incomplete type
In file included from /home/hms720/LinuxHEI720/linux/include/linux/mm.h:4,
                 from /home/hms720/LinuxHEI720/linux/include/linux/slab.h:14,
                 from /home/hms720/LinuxHEI720/linux/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/home/hms720/LinuxHEI720/linux/include/linux/sched.h:212: field `mmap_sem' has incomplete type
make: *** [init/main.o] Error 1
hms720[8]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表