QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2807|回复: 5

[再次求救]uClinux编译不通过!跪求解法~~

[复制链接]
发表于 2006-9-29 10:40:49 | 显示全部楼层 |阅读模式
哪位大哥救救俺哪,万谢了!
情况说明:skyeye安装成功,arm-elf-tools也安装完毕,编译uClinux时,make xconfig后显示:
***End of linux kenel configuration.
***Check the top-level Makefile for additional configuration.
***Next,you must run"make dep"
于是make dep;make 报错!
make ARCH=arm CROSS_COMPILE=arm-linux-  ARCH=arm CROSS_COMPILE=arm-linux- -C linux-2.6.x dep
make[1]: arm-linux-gcc: Command not found
make[1]: Entering directory `/root/uClinux-dist/linux-2.6.x'
cho  '                  Install using (your) ~/bin/installkernel or'
  echo  '                  (distribution) /sbin/installkernel or'
  echo  ?*** Warning: make dep is unnecessary now.
make[1]: Leaving directory `/root/uClinux-dist/linux-2.6.x'
关键是Image下只有一个文件!boot.rom有人告诉我说是Makefile错误,我的skyeye在root下,而arm-elf-tools在usr/local下,可能是链接错误,但是打开uClinux-dist下makefile,不知道怎么改,各位高手,救救我啊!
 楼主| 发表于 2006-9-29 14:49:10 | 显示全部楼层
make dep 成功
make 失败
arm-linux-gcc,command not found
安装的arm-elf-gcc,文件中根本没有arm-linux-gcc,如何修改?
回复

使用道具 举报

 楼主| 发表于 2006-10-9 17:11:33 | 显示全部楼层
安装arm-linux-gcc后,make依旧失败:
如下:
[root@dklinux uClinux-dist]# make
make -C tools/ucfront
make[1]: Entering directory `/root/uClinux-dist/tools/ucfront'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/uClinux-dist/tools/ucfront'
ln -sf /root/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc
ln -sf /root/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++
ln -sf /root/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld
make -C tools/sg-cksum
make[1]: Entering directory `/root/uClinux-dist/tools/sg-cksum'
make[1]: `cksum' is up to date.
make[1]: Leaving directory `/root/uClinux-dist/tools/sg-cksum'
ln -sf /root/uClinux-dist/tools/sg-cksum/cksum tools/cksum
make ARCH=armnommu CROSS_COMPILE=arm-linux-  ARCH=armnommu CROSS_COMPILE=arm-linux- -j1 -C linux-2.4.x  || exit 1
make[1]: Entering directory `/root/uClinux-dist/linux-2.4.x'
. scripts/mkversion > .tmpversion
arm-linux-gcc -D__KERNEL__ -I/root/uClinux-dist/linux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -g -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi  -msoft-float  -DUTS_MACHINE='"armnommu"' -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
make[2]: Entering directory `/root/uClinux-dist/linux-2.4.x/arch/armnommu/tools'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/uClinux-dist/linux-2.4.x/arch/armnommu/tools'
make CFLAGS="-D__KERNEL__ -I/root/uClinux-dist/linux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -g -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi  -msoft-float " -C  kernel
make[2]: Entering directory `/root/uClinux-dist/linux-2.4.x/kernel'
make all_targets
make[3]: Entering directory `/root/uClinux-dist/linux-2.4.x/kernel'
arm-linux-gcc -D__KERNEL__ -I/root/uClinux-dist/linux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-common -pipe -fno-builtin -D__linux__ -g -DNO_MM -mapcs-32 -march=armv4 -mtune=arm7tdmi  -msoft-float   -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o sched.c
In file included from /root/uClinux-dist/linux-2.4.x/include/linux/wait.h:13,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/fs.h:12,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/capability.h:17,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/binfmts.h:4,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/sched.h:9,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/mm.h:4,
                 from sched.c:23:
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:10:20: stdarg.h:没有那个文件或目录 In file included from /root/uClinux-dist/linux-2.4.x/include/linux/wait.h:13,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/fs.h:12,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/capability.h:17,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/binfmts.h:4,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/sched.h:9,
                 from /root/uClinux-dist/linux-2.4.x/include/linux/mm.h:4,
                 from sched.c:23:
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:76: error: parse error before "va_list"
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:77: warning: function declaration isn't a prototype
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:80: error: parse error before "va_list"
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:81: warning: function declaration isn't a prototype
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:85: error: parse error before "va_list"
/root/uClinux-dist/linux-2.4.x/include/linux/kernel.h:86: warning: function declaration isn't a prototype
make[3]: *** [sched.o] Error 1
make[3]: Leaving directory `/root/uClinux-dist/linux-2.4.x/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/root/uClinux-dist/linux-2.4.x/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory `/root/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1
各位大虾,救救俺吧!!!!!!!!!!
回复

使用道具 举报

发表于 2006-10-9 20:36:04 | 显示全部楼层
我也是!明明arm-elf-gcc找得到的,是不是那里还要设置路径什么的
回复

使用道具 举报

发表于 2006-10-10 19:32:46 | 显示全部楼层
换一个安装路径,今天稀里糊涂的就搞定了,不知道怎么回事
回复

使用道具 举报

发表于 2006-12-27 09:42:50 | 显示全部楼层
LZ问题解决了吗?教教我,怎么解决的啊?aocus,
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 05:39 , Processed in 0.041311 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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