求解uClinux make lib_only失败

dennis_huang 发布于 2012/05/09 20:15
阅读 745
收藏 0
进行uClinux编译,没有运行make config(我得到的脚本就是这样,可能是没有必要的运行项,但是无论运行make config,make xconfig,make menuconfig均会出现错误,但是不知道和以下的错误有没有联系),脚本如下:
ln -s "`pwd`/uClibc" "`pwd`/lib/uClibc"
chmod 777 user/tinylogin/tinylogin.mkll
make dep
make lib_only




错误提示如下:
dennis@dennis-VirtualBox:/home/eoc$ sudo ./makeall
[sudo] password for dennis:  
ln: creating symbolic link `/home/eoc/kernel/uClinux-dist/lib/uClibc/uClibc': File exists
make ARCH=armnommu CROSS_COMPILE=arm-uclinux- -C linux-2.6.x dep
make[1]: Entering directory `/home/eoc/kernel/uClinux-dist/linux-2.6.x'
*** Warning: make dep is unnecessary now.
make[1]: Leaving directory `/home/eoc/kernel/uClinux-dist/linux-2.6.x'
[ ! -d "lib" ] || make ARCH=armnommu CROSS_COMPILE=arm-uclinux- -C lib
make[1]: Entering directory `/home/eoc/kernel/uClinux-dist/lib'
for i in ../include uClibc ../include libnet zlib /home/eoc/kernel/uClinux-dist/prop ; do \
[ ! -d $i ] || make -C $i || exit $? ; \
make make_links || exit ; \
done
make[2]: Entering directory `/home/eoc/kernel/uClinux-dist/include'
Makefile:74: *** commands commence before first target. Stop.
make[2]: Leaving directory `/home/eoc/kernel/uClinux-dist/include'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eoc/kernel/uClinux-dist/lib'
make: *** [lib_only] Error 2



虽然明确指出了错误的位置,但是我仔细检查了这个74行,没有发现任何问题,即使我对该makefile大段的语句进行注释,可还是提示74行有错,实在有点黔驴技穷了!


第74行(是tab,其他也未见异常字符,删除该行,仍然提示74行有错):
$(ROOTDIR)/$(LINUXDIR)/include/mtd,. \
加载中
返回顶部
顶部