当前位置: 技术问答>linux和unix
编译ucLinux, 在make lib_only就出错了
来源: 互联网 发布时间:2016-01-17
本文导语: 我的环境是FC3, arm-elf-gcc已安装, 第一次编译uclinux. 按照文档的介绍, make menuconfig make dep make clean make lib_only时候就出现error. 内容如下: [root@ASBjfu uClinux-dist]# make lib_only [ ! -d "lib" ] || make ARCH=armnommu CROSS_COMPIL...
我的环境是FC3, arm-elf-gcc已安装, 第一次编译uclinux.
按照文档的介绍,
make menuconfig
make dep
make clean
make lib_only时候就出现error. 内容如下:
[root@ASBjfu uClinux-dist]# make lib_only
[ ! -d "lib" ] || make ARCH=armnommu CROSS_COMPILE=arm-elf- -C lib
make[1]: Entering directory `/usr/local/uClinux-dist/lib'
for i in libc libnet libcrypt_old libm libpcap ; do [ ! -d $i ] || make -C $i || exit ; done
make[2]: Entering directory `/usr/local/uClinux-dist/lib/libc'
if [ ! -L "include/asm" ]; then
ln -s ../../../linux-2.4.x/include/asm include/asm ;
fi
if [ ! -L "include/linux" ]; then
ln -s ../../../linux-2.4.x/include/linux include/linux ;
fi
if [ ! -L "include/machine" ]; then
ln -s arm include/machine ;
fi
if [ ! -L "stdio2/stdio.h" ]; then
ln -s ../include/stdio.h stdio2/stdio.h ;
fi
if [ ! -L "include/netinet/in_system.h" ]; then
ln -s in_systm.h include/netinet/in_system.h ;
fi
for i in error gtermcap misc stdio2 time getent regexp string termios sysdeps malloc net rpc arm serial math; do make -C $i all || exit 1; done
make[3]: Entering directory `/usr/local/uClinux-dist/lib/libc/error'
#@rm -f error.o perror.o sys_siglist.o __assert.o
make[3]: Leaving directory `/usr/local/uClinux-dist/lib/libc/error'
make[3]: Entering directory `/usr/local/uClinux-dist/lib/libc/gtermcap'
arm-elf-gcc -O1 -g -fno-builtin -DEMBED -I/usr/local/uClinux-dist/lib/libc/include -I/usr/local/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/local/uClinux-dist/linux-2.4.x/include -c -o termcap.o termcap.c
In file included from /usr/local/uClinux-dist/lib/libc/include/stdio.h:9,
from termcap.c:51:
/usr/local/uClinux-dist/lib/libc/include/stdarg.h:3: parse error before `
按照文档的介绍,
make menuconfig
make dep
make clean
make lib_only时候就出现error. 内容如下:
[root@ASBjfu uClinux-dist]# make lib_only
[ ! -d "lib" ] || make ARCH=armnommu CROSS_COMPILE=arm-elf- -C lib
make[1]: Entering directory `/usr/local/uClinux-dist/lib'
for i in libc libnet libcrypt_old libm libpcap ; do [ ! -d $i ] || make -C $i || exit ; done
make[2]: Entering directory `/usr/local/uClinux-dist/lib/libc'
if [ ! -L "include/asm" ]; then
ln -s ../../../linux-2.4.x/include/asm include/asm ;
fi
if [ ! -L "include/linux" ]; then
ln -s ../../../linux-2.4.x/include/linux include/linux ;
fi
if [ ! -L "include/machine" ]; then
ln -s arm include/machine ;
fi
if [ ! -L "stdio2/stdio.h" ]; then
ln -s ../include/stdio.h stdio2/stdio.h ;
fi
if [ ! -L "include/netinet/in_system.h" ]; then
ln -s in_systm.h include/netinet/in_system.h ;
fi
for i in error gtermcap misc stdio2 time getent regexp string termios sysdeps malloc net rpc arm serial math; do make -C $i all || exit 1; done
make[3]: Entering directory `/usr/local/uClinux-dist/lib/libc/error'
#@rm -f error.o perror.o sys_siglist.o __assert.o
make[3]: Leaving directory `/usr/local/uClinux-dist/lib/libc/error'
make[3]: Entering directory `/usr/local/uClinux-dist/lib/libc/gtermcap'
arm-elf-gcc -O1 -g -fno-builtin -DEMBED -I/usr/local/uClinux-dist/lib/libc/include -I/usr/local/uClinux-dist -Dlinux -D__linux__ -D__uClinux__ -Dunix -I/usr/local/uClinux-dist/linux-2.4.x/include -c -o termcap.o termcap.c
In file included from /usr/local/uClinux-dist/lib/libc/include/stdio.h:9,
from termcap.c:51:
/usr/local/uClinux-dist/lib/libc/include/stdarg.h:3: parse error before `