请教uclinux编译错误
make lib_only完成后,出错,
出现错误:
Finally finished compiling... make: Leaving directory `/mnt/sdb/uClinux-dist/uClibc' make: Entering directory `/mnt/sdb/uClinux-dist/lib' Making symlinks in lib/ make: Leaving directory `/mnt/sdb/uClinux-dist/lib' make: Entering directory `/mnt/sdb/uClinux-dist/include' find . -depth -type l -a ! -name Makefile | xargs rm > /dev/null 2>&1 || exit 0 find . -depth -type d | xargs rmdir > /dev/null 2>&1 || exit 0 Making symlinks in include/ /bin/sh: line 1: ucfront-gcc: command not found Making include/c++ symlink to compiler c++ includes make: Leaving directory `/mnt/sdb/uClinux-dist/include' make: Entering directory `/mnt/sdb/uClinux-dist/lib' Making symlinks in lib/ make: Leaving directory `/mnt/sdb/uClinux-dist/lib' make: Entering directory `/mnt/sdb/uClinux-dist/lib/libg' for i in gtermcap ; do make -C $i || exit gtermcap ; done make: Entering directory `/mnt/sdb/uClinux-dist/lib/libg/gtermcap' ucfront-gcc arm-elf-gcc-O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -c -o termcap.o termcap.c make: ucfront-gcc: Command not found make: *** Error 127 make: Leaving directory `/mnt/sdb/uClinux-dist/lib/libg/gtermcap' /bin/sh: line 1: exit: gtermcap: numeric argument required make: *** Error 255 make: Leaving directory `/mnt/sdb/uClinux-dist/lib/libg' make: *** Error 2 make: Leaving directory `/mnt/sdb/uClinux-dist/lib' make: *** Error 2
请问如何解决? Your problem is in the following command:
"ucfront-gcc arm-elf-gcc -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall -DEMBED -Dlinux -D__linux__ -Dunix -D__uClinux__ -c -o ter\mcap.o termcap.c"
I suggust you should modifyMakefile or other thing in /mnt/sdb/uClinux-dist/lib/libg/gtermcap/ directory how to modify ?can you say more clearly? i also wnan see more details 步骤如下:
$ cd ../uClinux-dist/tools/ucfront
$ make
将会生成ucfront可执行文件
$ mv ucfront ucfront-gcc
$ cp ucfront-gcc /usr/local/bin
$ cd uClinux-dist
$ make lib_only
这样就好了!!! 我也遇到这样的问题, 虽然ucfront的问题解决了 但是出现另一个问题
我在编译uclinux的时候进入uclinux-dist目录之后 make xconfig 和 make dep都成功了,
但就是在make lib_only的时候有提示说 arm-elf-gcc no such file or directory 什么意思阿该怎么搞呢?
对了 , 我的usr/local目录下有 arm-elf-tools 20030314.sh然后在该目录下还有一个arm-elf 文件夹
usr/local/uclinux-dist 目录下面没有该怎么创建这个文件呢 文件类型是什么呢?
页:
[1]